Commit 1e942b7a by guo_minglei@163.com

修改占位符

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