Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
Details
Activity
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
zhangkb
indicators
Commits
130d6a19
Commit
130d6a19
authored
Nov 19, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改rank关键字报错问题
parent
5d183613
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
DriveIndCalResultDefMapper.xml
.../resources/mybatis/mapping/DriveIndCalResultDefMapper.xml
+5
-5
ParameterDataReportMapper.xml
...n/resources/mybatis/mapping/ParameterDataReportMapper.xml
+2
-1
ShortboardTaskMapper.xml
src/main/resources/mybatis/mapping/ShortboardTaskMapper.xml
+1
-1
TestDriveIndCalResultDefMapper.xml
...ources/mybatis/mapping/TestDriveIndCalResultDefMapper.xml
+1
-1
No files found.
src/main/resources/mybatis/mapping/DriveIndCalResultDefMapper.xml
View file @
130d6a19
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
from drive_ind_cal_result_def
from drive_ind_cal_result_def
where
where
ind_id = #{indId} and
ind_id = #{indId} and
date = #{date} order by
rank
asc
date = #{date} order by
`rank`
asc
</select>
</select>
<select
id=
"findByIndIdAndDateAndSortAndActualAverageIsNotNull"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
<select
id=
"findByIndIdAndDateAndSortAndActualAverageIsNotNull"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
where
where
ind_id = #{indId} and
ind_id = #{indId} and
date = #{date} and
date = #{date} and
actual_average is not null order by
rank
asc
actual_average is not null order by
`rank`
asc
</select>
</select>
<select
id=
"findByIndIdAndDateAndCompareIdAndSort"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
<select
id=
"findByIndIdAndDateAndCompareIdAndSort"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
ind_id = #{indId} and
ind_id = #{indId} and
date = #{date} and
date = #{date} and
compare_id = #{compareId} and
compare_id = #{compareId} and
code = #{code} order by
rank
asc
code = #{code} order by
`rank`
asc
</select>
</select>
<select
id=
"findByIndIdAndDateAndCompareId"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
<select
id=
"findByIndIdAndDateAndCompareId"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<foreach
item=
"id"
collection=
"compareObjs"
open=
"("
close=
")"
separator=
","
>
<foreach
item=
"id"
collection=
"compareObjs"
open=
"("
close=
")"
separator=
","
>
#{id}
#{id}
</foreach>
</foreach>
order by
rank
asc
order by
`rank`
asc
</select>
</select>
<select
id=
"findByCompareIdAndDate"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
<select
id=
"findByCompareIdAndDate"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef"
>
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
<insert
id=
"batchSave"
parameterType=
"java.util.List"
>
<insert
id=
"batchSave"
parameterType=
"java.util.List"
>
insert into drive_ind_cal_result_def(
insert into drive_ind_cal_result_def(
compare_id, ind_id, compare_obj, compare_obj_desc, date, value, unit, type,
compare_id, ind_id, compare_obj, compare_obj_desc, date, value, unit, type,
is_right, last_update_time, last_updater, average,
rank, score, improve_score,
is_right, last_update_time, last_updater, average,
`rank`, score, improve_score,
actual_average, code)
actual_average, code)
values
values
<foreach
collection=
"datas"
item=
"val"
separator=
","
>
<foreach
collection=
"datas"
item=
"val"
separator=
","
>
...
...
src/main/resources/mybatis/mapping/ParameterDataReportMapper.xml
View file @
130d6a19
...
@@ -30,6 +30,6 @@
...
@@ -30,6 +30,6 @@
<if
test=
"user!=null"
>
<if
test=
"user!=null"
>
and report_user = #{user}
and report_user = #{user}
</if>
</if>
order by
rank
asc
order by
`rank`
asc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/mapping/ShortboardTaskMapper.xml
View file @
130d6a19
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
and sbt.enter_user_id like concat('%,',#{userId},',%')
and sbt.enter_user_id like concat('%,',#{userId},',%')
</if>
</if>
<if
test=
"createUserId !=null and createUserId!=''"
>
<if
test=
"createUserId !=null and createUserId!=''"
>
and sbt.create
U
ser_id = #{createUserId}
and sbt.create
_u
ser_id = #{createUserId}
</if>
</if>
</sql>
</sql>
...
...
src/main/resources/mybatis/mapping/TestDriveIndCalResultDefMapper.xml
View file @
130d6a19
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<insert
id=
"batchSave"
parameterType=
"java.util.List"
>
<insert
id=
"batchSave"
parameterType=
"java.util.List"
>
insert into test_drive_ind_cal_result_def(
insert into test_drive_ind_cal_result_def(
compare_id, ind_id, compare_obj, compare_obj_desc, date, value, unit, type,
compare_id, ind_id, compare_obj, compare_obj_desc, date, value, unit, type,
is_right, last_update_time, last_updater, average,
rank, score, improve_score,
is_right, last_update_time, last_updater, average,
`rank`, score, improve_score,
actual_average, code)
actual_average, code)
values
values
<foreach
collection=
"datas"
item=
"val"
separator=
","
>
<foreach
collection=
"datas"
item=
"val"
separator=
","
>
...
...
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