Skip to content

Commit

Permalink
Keyword uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshupei committed Oct 27, 2023
1 parent 7a473e5 commit 3db8b4a
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,24 @@
</update>
<select id="selectFailoverJobHistory" resultMap="jobHistoryMap" >
SELECT a.* FROM linkis_ps_job_history_group_history a
where (
WHERE (
a.instances = ''
or a.instances is null
or a.instances not in <foreach collection="instancesMap.keys" open="(" separator="," close=")" item="key">#{key}</foreach>
or EXISTS (
select 1 from
OR a.instances IS NULL
OR a.instances NOT IN <foreach collection="instancesMap.keys" open="(" separator="," close=")" item="key">#{key}</foreach>
OR EXISTS (
SELECT 1 FROM
(
<foreach collection="instancesMap.entrySet()" separator="union all" index="key" item="val">
select #{key} as instances, #{val} as registryTime
SELECT #{key} AS instances, #{val} AS registryTime
</foreach>
) b
where a.instances = b.instances and a.created_time <![CDATA[<]]> FROM_UNIXTIME(b.registryTime/1000)
WHERE a.instances = b.instances AND a.created_time <![CDATA[<]]> FROM_UNIXTIME(b.registryTime/1000)
)
)
and
status in <foreach collection="statusList" open="(" separator="," close=")" item="status">#{status}</foreach>
<if test="startTimestamp != null and startTimestamp > 0">and a.created_time >= FROM_UNIXTIME(#{startTimestamp}/1000)</if>
<if test="limit != null and limit > 0">limit #{limit}</if>
AND
status IN <foreach collection="statusList" open="(" separator="," close=")" item="status">#{status}</foreach>
<if test="startTimestamp != null and startTimestamp > 0">AND a.created_time >= FROM_UNIXTIME(#{startTimestamp}/1000)</if>
<if test="limit != null and limit > 0">LIMIT #{limit}</if>

</select>
</mapper>

0 comments on commit 3db8b4a

Please sign in to comment.