Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
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
李丛阳
education
Commits
5f04e5fa
Commit
5f04e5fa
authored
Jan 13, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
培训积分筛选
parent
1861d417
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
BReleaseValueRepository.java
...t/business/breleasevalue/dao/BReleaseValueRepository.java
+2
-2
BReleaseValueServiceImpl.java
.../breleasevalue/service/impl/BReleaseValueServiceImpl.java
+10
-0
No files found.
src/main/java/org/rcisoft/business/breleasevalue/dao/BReleaseValueRepository.java
View file @
5f04e5fa
...
...
@@ -117,8 +117,8 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"<if test=\"dto.valueGainEnd!=null and dto.valueGainEnd != ''\"> and CAST(bl.value_gain AS UNSIGNED) <= #{dto.valueGainEnd} </if> "
+
"<if test=\"dto.lessonName!=null and dto.lessonName != ''\"> and bl.lesson_name like concat('%',#{dto.lessonName},'%') </if> "
+
"<if test=\"dto.lecturerName!=null and dto.lecturerName != ''\"> and su.`name` like concat('%',#{dto.lecturerName},'%') </if> "
+
"<if test=\"dto.status!=null and dto.status != ''\"> and bl.release_state in(${dto.status}) </if> "
+
"<if test=\"dto.trainStatus!=null and dto.trainStatus != ''\">
and ( ${dto.trainStatus} )
</if> "
+
//
"<if test=\"dto.status!=null and dto.status != ''\"> and bl.release_state in(${dto.status}) </if> " +
"<if test=\"dto.trainStatus!=null and dto.trainStatus != ''\">
${dto.trainStatus}
</if> "
+
"and bl.corp_id = #{curUser.corpId} "
+
"and bl.lesson_type = #{dto.type} "
+
"ORDER BY bl.corp_id "
+
...
...
src/main/java/org/rcisoft/business/breleasevalue/service/impl/BReleaseValueServiceImpl.java
View file @
5f04e5fa
...
...
@@ -166,6 +166,16 @@ public class BReleaseValueServiceImpl implements BReleaseValueService {
dto
.
setTrainStatus
(
null
);
}
if
(
StringUtils
.
isEmpty
(
dto
.
getStatus
())&&
StringUtils
.
isEmpty
(
dto
.
getTrainStatus
())){
dto
.
setTrainStatus
(
null
);
}
else
if
(
StringUtils
.
isEmpty
(
dto
.
getStatus
())&&
StringUtils
.
isNotEmpty
(
dto
.
getTrainStatus
())){
dto
.
setTrainStatus
(
"and ("
+
dto
.
getTrainStatus
()+
")"
);
}
else
if
(
StringUtils
.
isNotEmpty
(
dto
.
getStatus
())&&
StringUtils
.
isEmpty
(
dto
.
getTrainStatus
())){
dto
.
setTrainStatus
(
"and bl.release_state in("
+
dto
.
getStatus
()+
")"
);
}
else
if
(
StringUtils
.
isNotEmpty
(
dto
.
getStatus
())&&
StringUtils
.
isNotEmpty
(
dto
.
getTrainStatus
())){
dto
.
setTrainStatus
(
"and (bl.release_state in("
+
dto
.
getStatus
()+
") or ("
+
dto
.
getTrainStatus
()+
"))"
);
}
List
<
LessonValueDto
>
list
=
bReleaseValueRepository
.
getLessonValue
(
curUser
,
dto
);
for
(
LessonValueDto
valueDto
:
list
){
...
...
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