Browse Source

事件时间筛选

develop
王兴琳 5 months ago
parent
commit
49937c94aa
  1. 6
      zc-business/src/main/resources/mapper/business/DcEventMapper.xml

6
zc-business/src/main/resources/mapper/business/DcEventMapper.xml

@ -343,7 +343,11 @@
</if>
<if test="direction != null and direction != ''">and direction = #{direction}</if>
<if test="userId != null ">and user_id = #{userId}</if>
<if test="startTime != null ">and start_time BETWEEN #{startTime} and #{endTime}</if>
<if test="eventState == 1 ">and start_time BETWEEN #{startTime} and #{endTime}</if>
<if test="eventState == 0 ">and occurrence_time BETWEEN #{startTime} and #{endTime}</if>
<if test="eventState == 2 ">and end_time BETWEEN #{startTime} and #{endTime}</if>
<if test="estimatedEndTime != null ">and estimated_end_time = #{estimatedEndTime}</if>
<if test="eventLevel != null ">and event_level = #{eventLevel}</if>
<if test="eventType != null ">and event_type = #{eventType}</if>

Loading…
Cancel
Save