|
|
@ -15,7 +15,7 @@ |
|
|
|
</select> |
|
|
|
<select id="selectWarningById" resultType="com.zc.business.domain.DcWarning"> |
|
|
|
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, |
|
|
|
mark.longitude,mark.latitude,warning.lane,warning.vehicle_type vehicleType, |
|
|
|
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="direction != null and direction != ''"> and warning.direction = #{direction}</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 "> |
|
|
|
and warning.warning_time between #{startTime} and #{completeTime}</if> |
|
|
|
<if test="startStakeMark != null and startStakeMark != ''"> |
|
|
@ -361,6 +362,16 @@ |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</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 count(1) from dc_warning where stake_mark=#{stakeMark} |
|
|
|
AND direction=#{direction} and DATE(warning_time)=DATE_FORMAT(#{warningTime},'%Y-%m-%d') |
|
|
|