Browse Source

加处理人员

develop
wangsixiang 4 months ago
parent
commit
d88b925f9f
  1. 1
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java
  2. 1
      zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

1
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -1018,6 +1018,7 @@ public class DcWarningServiceImpl implements IDcWarningService
@Override @Override
public Integer falseAlarmResolution(DcWarning dcWarning) { public Integer falseAlarmResolution(DcWarning dcWarning) {
dcWarning.setUpdateTime(DateUtils.getNowDate()); dcWarning.setUpdateTime(DateUtils.getNowDate());
dcWarning.setUserId(SecurityUtils.getUserId());//当前操作人id
Integer i = dcWarningMapper.falseAlarmResolution(dcWarning); Integer i = dcWarningMapper.falseAlarmResolution(dcWarning);
//推送待处理数量 //推送待处理数量
dcEventService.getCountNum(); dcEventService.getCountNum();

1
zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

@ -256,6 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="relieveReason != null and relieveReason != ''">relieve_reason = #{relieveReason},</if> <if test="relieveReason != null and relieveReason != ''">relieve_reason = #{relieveReason},</if>
<if test="relieveType != null">relieve_type = #{relieveType},</if> <if test="relieveType != null">relieve_type = #{relieveType},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="userId != null">user_id = #{userId},</if>
warning_state=3 warning_state=3
</trim> </trim>
where id = #{id} where id = #{id}

Loading…
Cancel
Save