Commit 1e942b7a by guo_minglei@163.com

修改占位符

parent 2936c2ae
......@@ -202,8 +202,8 @@
select
<include refid="Base_Column_List" />
from flow_status_snapshoot
where snapshoot_time &gt;= ${startDate}
and snapshoot_time &lt;= ${endDate}
where snapshoot_time &gt;= #{startDate}
and snapshoot_time &lt;= #{endDate}
</select>
<delete id="deleteOutSnapShoot" parameterType="java.lang.Long">
delete from flow_status_snapshoot
......
......@@ -127,8 +127,8 @@
sum(case when run_code = '2' or run_code = '4' or run_code = '6' then 1 else 0 end) as fail,
sum(case when run_code = '5' then 1 else 0 end) as 'kill'
from job_task_run_log
where start_time &gt;= ${startDate}
and end_time &lt;= ${endDate}
where start_time &gt;= #{startDate}
and end_time &lt;= #{endDate}
<if test="flowIdList != null">
and flow_id in (
<foreach collection="flowIdList" item="flowId" separator=",">
......
......@@ -120,14 +120,14 @@
<if test="scheduleStatusList != null">
and flow_status in (
<foreach collection="scheduleStatusList" item="scheduleStatus" separator=",">
${scheduleStatus}
#{scheduleStatus}
</foreach>
)
</if>
<if test="executeStatusList != null">
and flow_run_result in (
<foreach collection="executeStatusList" item="executeStatus" separator=",">
${executeStatus}
#{executeStatus}
</foreach>
)
</if>
......@@ -156,8 +156,8 @@
sum(case when flow_status='4' and (flow_run_result = '2' or flow_run_result = '4') then 1 else 0 end ) fail,
sum(case when flow_run_result='5' then 1 else 0 end ) 'kill'
from run_recording
where start_time &gt;= ${startDate}
and end_time &lt;= ${endDate}
where start_time &gt;= #{startDate}
and end_time &lt;= #{endDate}
<if test="flowIdList != null">
and flow_id in (
<foreach collection="flowIdList" item="flowId" separator=",">
......@@ -488,7 +488,7 @@
<update id="killInnerFlow" >
update run_recording set flow_status = '4',flow_run_result = '5'
where run_id = #{runId,jdbcType=VARCHAR}
and flow_name = ${flowName,jdbcType=VARCHAR}
and flow_name = #{flowName,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
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