Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuchengjiu
engine-class-work
Commits
225a8bec
Commit
225a8bec
authored
Jul 20, 2023
by
Ryan Loong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 清空点名次数
parent
f0ac346f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
StudentInfoService.java
...xploring/engine/server/db/service/StudentInfoService.java
+16
-0
StudentController.java
.../cn/exploring/engine/server/wx/web/StudentController.java
+6
-0
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/service/StudentInfoService.java
View file @
225a8bec
...
...
@@ -356,4 +356,20 @@ public class StudentInfoService {
.
andIdIn
(
new
ArrayList
<>(
idList
))
.
example
());
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
handleEmptyAllCall
()
{
String
logPrefix
=
StrUtil
.
format
(
"[sessionId:{}]【清空点名次数】"
,
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
));
log
.
info
(
StrUtil
.
format
(
"{} 请求"
));
int
update
=
studentInfoMapper
.
updateByExampleSelective
(
StudentInfo
.
builder
().
callTimes
(
0
).
updateTime
(
LocalDateTime
.
now
()).
build
(),
new
StudentInfoExample
().
createCriteria
().
andDeletedEqualTo
(
StudentInfo
.
NOT_DELETED
).
example
(),
StudentInfo
.
Column
.
callTimes
,
StudentInfo
.
Column
.
updateTime
);
log
.
info
(
StrUtil
.
format
(
"{} 更新成功 条目数量: '{}'"
,
logPrefix
,
update
));
return
null
;
}
}
server-wx-api/src/main/java/cn/exploring/engine/server/wx/web/StudentController.java
View file @
225a8bec
...
...
@@ -56,6 +56,12 @@ public class StudentController {
return
StringUtils
.
isNotBlank
(
err
)
?
ResponseUtil
.
fail
(
301
,
err
)
:
ResponseUtil
.
ok
(
"修改成功"
);
}
@PostMapping
(
"emptyCall/all"
)
public
Object
emptyAllCall
()
{
String
err
=
studentInfoService
.
handleEmptyAllCall
();
return
StringUtils
.
isNotBlank
(
err
)
?
ResponseUtil
.
fail
(
301
,
err
)
:
ResponseUtil
.
ok
(
"修改成功"
);
}
@PostMapping
(
"batchDeleted"
)
public
Object
batchDeleted
(
@RequestBody
List
<
Integer
>
idList
)
{
String
err
=
studentInfoService
.
batchDeleted
(
idList
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment