Commit 130d6a19 by hzc

修改rank关键字报错问题

parent 5d183613
...@@ -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=",">
......
...@@ -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
...@@ -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.createUser_id = #{createUserId} and sbt.create_user_id = #{createUserId}
</if> </if>
</sql> </sql>
......
...@@ -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=",">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment