Commit 130d6a19 by hzc

修改rank关键字报错问题

parent 5d183613
......@@ -58,7 +58,7 @@
from drive_ind_cal_result_def
where
ind_id = #{indId} and
date = #{date} order by rank asc
date = #{date} order by `rank` asc
</select>
<select id="findByIndIdAndDateAndSortAndActualAverageIsNotNull" resultType="com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef" >
......@@ -67,7 +67,7 @@
where
ind_id = #{indId} and
date = #{date} and
actual_average is not null order by rank asc
actual_average is not null order by `rank` asc
</select>
<select id="findByIndIdAndDateAndCompareIdAndSort" resultType="com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef" >
......@@ -77,7 +77,7 @@
ind_id = #{indId} and
date = #{date} and
compare_id = #{compareId} and
code = #{code} order by rank asc
code = #{code} order by `rank` asc
</select>
<select id="findByIndIdAndDateAndCompareId" resultType="com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef" >
......@@ -132,7 +132,7 @@
<foreach item="id" collection="compareObjs" open="(" close=")" separator=",">
#{id}
</foreach>
order by rank asc
order by `rank` asc
</select>
<select id="findByCompareIdAndDate" resultType="com.keymobile.indicators.model.entity.indicators.DriveIndCalResultDef" >
......@@ -155,7 +155,7 @@
<insert id="batchSave" parameterType="java.util.List">
insert into drive_ind_cal_result_def(
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)
values
<foreach collection="datas" item="val" separator=",">
......
......@@ -30,6 +30,6 @@
<if test="user!=null">
and report_user = #{user}
</if>
order by rank asc
order by `rank` asc
</select>
</mapper>
\ No newline at end of file
......@@ -71,7 +71,7 @@
and sbt.enter_user_id like concat('%,',#{userId},',%')
</if>
<if test="createUserId !=null and createUserId!=''">
and sbt.createUser_id = #{createUserId}
and sbt.create_user_id = #{createUserId}
</if>
</sql>
......
......@@ -34,7 +34,7 @@
<insert id="batchSave" parameterType="java.util.List">
insert into test_drive_ind_cal_result_def(
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)
values
<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