Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ca7a449
authored
Apr 27, 2026
by
庞善天
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
排序优化
1 parent
f05291ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopShortCourseTaskDetailService.java
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskDetailMapper.xml
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopShortCourseTaskDetailService.java
View file @
4ca7a44
...
@@ -18,6 +18,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -18,6 +18,7 @@ import org.springframework.transaction.annotation.Transactional;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Objects
;
@Slf4j
@Slf4j
@Service
@Service
...
@@ -80,7 +81,11 @@ public class SopShortCourseTaskDetailService {
...
@@ -80,7 +81,11 @@ public class SopShortCourseTaskDetailService {
if
(
total
>
0
&&
done
>=
total
)
{
if
(
total
>
0
&&
done
>=
total
)
{
updTask
.
setTaskStatus
(
SopCompleteStatusEnum
.
ENDED
.
getValue
());
updTask
.
setTaskStatus
(
SopCompleteStatusEnum
.
ENDED
.
getValue
());
updTask
.
setCompleteTime
(
now
);
updTask
.
setCompleteTime
(
now
);
updTask
.
setPunishStatus
(
SopPunishStatusEnum
.
FINISHED
.
getValue
().
byteValue
());
if
(
Objects
.
equals
(
task
.
getPunishStatus
(),
SopPunishStatusEnum
.
PENALIZING
.
getValue
().
byteValue
()))
{
updTask
.
setPunishStatus
(
SopPunishStatusEnum
.
LIFTED
.
getValue
().
byteValue
());
}
else
{
updTask
.
setPunishStatus
(
SopPunishStatusEnum
.
FINISHED
.
getValue
().
byteValue
());
}
}
}
sopShortCourseTaskMapper
.
updateByPrimaryKeySelective
(
updTask
);
sopShortCourseTaskMapper
.
updateByPrimaryKeySelective
(
updTask
);
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskDetailMapper.xml
View file @
4ca7a44
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
from sop_short_course_task_detail
from sop_short_course_task_detail
where deleted_flag = 'N'
where deleted_flag = 'N'
and short_course_task_id = #{taskId}
and short_course_task_id = #{taskId}
order by
id de
sc
order by
review_status asc, id a
sc
</select>
</select>
</mapper>
</mapper>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment