|
@ -15,7 +15,7 @@ |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectWarningById" resultType="com.zc.business.domain.DcWarning"> |
|
|
<select id="selectWarningById" resultType="com.zc.business.domain.DcWarning"> |
|
|
SELECT DISTINCT warning.`id`,warning.`stake_mark`, warning.`direction`, |
|
|
SELECT DISTINCT warning.`id`,warning.`stake_mark`, warning.`direction`, |
|
|
warning.duration, |
|
|
warning.duration,warning.`auditor`,warning.`audit_time`,warning.`audit_flag`, |
|
|
user.user_name,warning.event_cause,warning.end_time, |
|
|
user.user_name,warning.event_cause,warning.end_time, |
|
|
mark.longitude,mark.latitude,warning.lane,warning.vehicle_type vehicleType, |
|
|
mark.longitude,mark.latitude,warning.lane,warning.vehicle_type vehicleType, |
|
|
warning.`dept_id`,warning.`warning_state`,warning.`warning_time`, |
|
|
warning.`dept_id`,warning.`warning_state`,warning.`warning_time`, |
|
@ -45,6 +45,7 @@ |
|
|
<if test="warningSubclass != null and warningSubclass != ''"> and warning.warning_subclass = #{warningSubclass}</if> |
|
|
<if test="warningSubclass != null and warningSubclass != ''"> and warning.warning_subclass = #{warningSubclass}</if> |
|
|
<if test="direction != null and direction != ''"> and warning.direction = #{direction}</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="stakeMark != null and stakeMark != ''"> and warning.stake_mark = #{stakeMark}</if> |
|
|
|
|
|
<if test="auditFlag != null and auditFlag != ''"> and warning.audit_flag = #{auditFlag}</if> |
|
|
<if test="startTime != null and completeTime != null "> |
|
|
<if test="startTime != null and completeTime != null "> |
|
|
and warning.warning_time between #{startTime} and #{completeTime}</if> |
|
|
and warning.warning_time between #{startTime} and #{completeTime}</if> |
|
|
<if test="startStakeMark != null and startStakeMark != ''"> |
|
|
<if test="startStakeMark != null and startStakeMark != ''"> |
|
@ -361,6 +362,16 @@ |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<update id="updateWarningAuditFlag"> |
|
|
|
|
|
update dc_warning |
|
|
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
|
|
<if test="auditTime != null">audit_time = #{auditTime},</if> |
|
|
|
|
|
<if test="auditor != null">auditor = #{auditor},</if> |
|
|
|
|
|
<if test="auditFlag != null">audit_flag = #{auditFlag},</if> |
|
|
|
|
|
</trim> |
|
|
|
|
|
where id = #{id} |
|
|
|
|
|
</update> |
|
|
<select id="selectWarningMarkDay" resultType="java.lang.String"> |
|
|
<select id="selectWarningMarkDay" resultType="java.lang.String"> |
|
|
select count(1) from dc_warning where stake_mark=#{stakeMark} |
|
|
select count(1) from dc_warning where stake_mark=#{stakeMark} |
|
|
AND direction=#{direction} and DATE(warning_time)=DATE_FORMAT(#{warningTime},'%Y-%m-%d') |
|
|
AND direction=#{direction} and DATE(warning_time)=DATE_FORMAT(#{warningTime},'%Y-%m-%d') |
|
|