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
a0c94b55
Commit
a0c94b55
authored
Nov 22, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into zql
parents
2dc23b1f
c22bebfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
BPersonValueRepository.java
...oft/business/bpersonvalue/dao/BPersonValueRepository.java
+4
-4
BReleaseValueRepository.java
...t/business/breleasevalue/dao/BReleaseValueRepository.java
+16
-16
No files found.
src/main/java/org/rcisoft/business/bpersonvalue/dao/BPersonValueRepository.java
View file @
a0c94b55
...
@@ -29,10 +29,10 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
...
@@ -29,10 +29,10 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
"<if test=\"type !=null and type != '' \"> and type = #{type} </if> "
+
"<if test=\"type !=null and type != '' \"> and type = #{type} </if> "
+
" ORDER BY person_id "
+
" ORDER BY person_id "
+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '
0
'.toString() \"> ,type asc,`value` desc </if> "
+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '
1
'.toString() \"> ,type asc,`value` desc </if> "
+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '
1'.toString() \"> ,type desc,`value` a
sc </if> "
+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '
0'.toString() \"> ,type desc,`value` de
sc </if> "
+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '
0
'.toString() \"> ,create_date asc</if> "
+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '
1
'.toString() \"> ,create_date asc</if> "
+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '
1
'.toString() \"> ,create_date desc</if> "
+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '
0
'.toString() \"> ,create_date desc</if> "
+
"</script>"
)
"</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BPersonValue
>
queryBPersonValues
(
PersonValueClientDto
dto
);
List
<
BPersonValue
>
queryBPersonValues
(
PersonValueClientDto
dto
);
...
...
src/main/java/org/rcisoft/business/breleasevalue/dao/BReleaseValueRepository.java
View file @
a0c94b55
...
@@ -32,12 +32,12 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
...
@@ -32,12 +32,12 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and train_value >= #{trainValueStart} </if> "
+
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and train_value >= #{trainValueStart} </if> "
+
"<if test=\"trainValueEnd!=null and trainValueEnd != ''\"> and train_value <= #{trainValueEnd} </if> "
+
"<if test=\"trainValueEnd!=null and trainValueEnd != ''\"> and train_value <= #{trainValueEnd} </if> "
+
" ORDER BY corp_id "
+
" ORDER BY corp_id "
+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '
0
'.toString()\"> ,lesson_value asc </if> "
+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '
1
'.toString()\"> ,lesson_value asc </if> "
+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '
1
'.toString()\"> ,lesson_value desc </if> "
+
"<if test=\"lessonSort!=null and lessonSort != '' and lessonSort == '
0
'.toString()\"> ,lesson_value desc </if> "
+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '
0
'.toString()\"> ,train_value asc </if> "
+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '
1
'.toString()\"> ,train_value asc </if> "
+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '
1
'.toString()\"> ,train_value desc </if> "
+
"<if test=\"trainSort!=null and trainSort != '' and trainSort == '
0
'.toString()\"> ,train_value desc </if> "
+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '
0
'.toString()\"> ,update_date asc </if> "
+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '
1
'.toString()\"> ,update_date asc </if> "
+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '
1
'.toString()\"> ,update_date desc </if> "
+
"<if test=\"timeSort!=null and timeSort != '' and timeSort == '
0
'.toString()\"> ,update_date desc </if> "
+
"</script>"
)
"</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BReleaseValue
>
queryBReleaseValues
(
ReleaseValueResDto
dto
);
List
<
BReleaseValue
>
queryBReleaseValues
(
ReleaseValueResDto
dto
);
...
@@ -119,12 +119,12 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
...
@@ -119,12 +119,12 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"and bl.corp_id = #{curUser.corpId} "
+
"and bl.corp_id = #{curUser.corpId} "
+
"and bl.lesson_type = #{dto.type} "
+
"and bl.lesson_type = #{dto.type} "
+
"ORDER BY bl.corp_id "
+
"ORDER BY bl.corp_id "
+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '
0
'.toString()\"> ,bl.value_consume asc </if> "
+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '
1
'.toString()\"> ,bl.value_consume asc </if> "
+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '
1
'.toString()\"> ,bl.value_consume desc </if> "
+
"<if test=\"dto.valueConsumeSort!=null and dto.valueConsumeSort != '' and dto.valueConsumeSort == '
0
'.toString()\"> ,bl.value_consume desc </if> "
+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '
0
'.toString()\"> ,bl.value_gain asc </if> "
+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '
1
'.toString()\"> ,bl.value_gain asc </if> "
+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '
1
'.toString()\"> ,bl.value_gain desc </if> "
+
"<if test=\"dto.valueGainSort!=null and dto.valueGainSort != '' and dto.valueGainSort == '
0
'.toString()\"> ,bl.value_gain desc </if> "
+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '
0
'.toString()\"> ,bl.value_update_date asc </if> "
+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '
1
'.toString()\"> ,bl.value_update_date asc </if> "
+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '
1
'.toString()\"> ,bl.value_update_date desc </if> "
+
"<if test=\"dto.updateDateSort!=null and dto.updateDateSort != '' and dto.updateDateSort == '
0
'.toString()\"> ,bl.value_update_date desc </if> "
+
"</script>"
)
"</script>"
)
List
<
LessonValueDto
>
getLessonValue
(
@Param
(
"curUser"
)
CurUser
curUser
,
@Param
(
"dto"
)
LessonValueSettingQueryDto
dto
);
List
<
LessonValueDto
>
getLessonValue
(
@Param
(
"curUser"
)
CurUser
curUser
,
@Param
(
"dto"
)
LessonValueSettingQueryDto
dto
);
...
@@ -160,10 +160,10 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
...
@@ -160,10 +160,10 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"<if test=\"dto.gainValueEnd!=null and dto.gainValueEnd != ''\"> "
+
"<if test=\"dto.gainValueEnd!=null and dto.gainValueEnd != ''\"> "
+
" and (select sum(value) from b_person_value where person_id = s_user.business_id and type = 0) <= #{dto.gainValueEnd} </if> "
+
" and (select sum(value) from b_person_value where person_id = s_user.business_id and type = 0) <= #{dto.gainValueEnd} </if> "
+
"ORDER BY corp_id "
+
"ORDER BY corp_id "
+
"<if test=\"dto.nowValueSort!=null and dto.nowValueSort != '' and dto.nowValueSort == '
0
'.toString()\"> ,CAST(`value` AS UNSIGNED) asc </if> "
+
"<if test=\"dto.nowValueSort!=null and dto.nowValueSort != '' and dto.nowValueSort == '
1
'.toString()\"> ,CAST(`value` AS UNSIGNED) asc </if> "
+
"<if test=\"dto.nowValueSort!=null and dto.nowValueSort != '' and dto.nowValueSort == '
1
'.toString()\"> ,CAST(`value` AS UNSIGNED) desc </if> "
+
"<if test=\"dto.nowValueSort!=null and dto.nowValueSort != '' and dto.nowValueSort == '
0
'.toString()\"> ,CAST(`value` AS UNSIGNED) desc </if> "
+
"<if test=\"dto.gainValueSort!=null and dto.gainValueSort != '' and dto.gainValueSort == '
0
'.toString()\"> ,valueGain asc </if> "
+
"<if test=\"dto.gainValueSort!=null and dto.gainValueSort != '' and dto.gainValueSort == '
1
'.toString()\"> ,valueGain asc </if> "
+
"<if test=\"dto.gainValueSort!=null and dto.gainValueSort != '' and dto.gainValueSort == '
1
'.toString()\"> ,valueGain desc </if> "
+
"<if test=\"dto.gainValueSort!=null and dto.gainValueSort != '' and dto.gainValueSort == '
0
'.toString()\"> ,valueGain desc </if> "
+
" </script>"
)
" </script>"
)
// @ResultMap(value = "UserValueDtoMap")
// @ResultMap(value = "UserValueDtoMap")
List
<
UserValueDto
>
getUserValue
(
@Param
(
"dto"
)
UserValueResDto
dto
,
@Param
(
"userList"
)
List
<
String
>
userList
);
List
<
UserValueDto
>
getUserValue
(
@Param
(
"dto"
)
UserValueResDto
dto
,
@Param
(
"userList"
)
List
<
String
>
userList
);
...
...
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