|
|
@ -16,6 +16,7 @@ |
|
|
|
<select id="selectWarningById" resultType="com.zc.business.domain.DcWarning"> |
|
|
|
SELECT DISTINCT warning.`id`,warning.`stake_mark`, warning.`direction`, |
|
|
|
warning.duration, |
|
|
|
user.user_name,warning.event_cause,warning.end_time, |
|
|
|
mark.longitude,mark.latitude,warning.lane,warning.vehicle_type vehicleType, |
|
|
|
warning.`dept_id`,warning.`warning_state`,warning.`warning_time`, |
|
|
|
warning.`user_id`, warning.`warning_source`,warning.`warning_level`, |
|
|
@ -23,6 +24,7 @@ |
|
|
|
warning.`warning_type`,warning.`warning_subclass`,warning.`warning_title`, |
|
|
|
warning.`other_config` FROM dc_warning AS warning |
|
|
|
LEFT JOIN dc_stake_mark AS mark ON mark.stake_mark=warning.stake_mark and mark.direction=warning.direction |
|
|
|
LEFT JOIN sys_user as user on user.user_id=warning.user_id |
|
|
|
where warning.`id`=#{id} |
|
|
|
</select> |
|
|
|
<select id="selectPerceivedEventsList" resultType="com.zc.business.domain.DcWarning"> |
|
|
@ -40,8 +42,8 @@ |
|
|
|
<if test="warningSource != null and warningSource != ''"> and warning.warning_source = #{warningSource}</if> |
|
|
|
<if test="direction != null and direction != ''"> and warning.direction = #{direction}</if> |
|
|
|
<if test="stakeMark != null and stakeMark != ''"> and warning.stake_mark = #{stakeMark}</if> |
|
|
|
<if test="startTime != null and endTime != null "> |
|
|
|
and warning.warning_time between #{startTime} and #{endTime}</if> |
|
|
|
<if test="startTime != null and completeTime != null "> |
|
|
|
and warning.warning_time between #{startTime} and #{completeTime}</if> |
|
|
|
</where> |
|
|
|
order by warning.warning_time desc |
|
|
|
</select> |
|
|
|