diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java index e9986b8c..35b10110 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java @@ -1018,6 +1018,7 @@ public class DcWarningServiceImpl implements IDcWarningService @Override public Integer falseAlarmResolution(DcWarning dcWarning) { dcWarning.setUpdateTime(DateUtils.getNowDate()); + dcWarning.setUserId(SecurityUtils.getUserId());//当前操作人id Integer i = dcWarningMapper.falseAlarmResolution(dcWarning); //推送待处理数量 dcEventService.getCountNum(); diff --git a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml index 7d6bb3a8..35067a99 100644 --- a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml @@ -256,6 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" relieve_reason = #{relieveReason}, relieve_type = #{relieveType}, update_time = #{updateTime}, + user_id = #{userId}, warning_state=3 where id = #{id}