@ -2,20 +2,18 @@ package com.hnac.hzims.alarm.show.service.impl;
import com.alibaba.fastjson.JSONObject ;
import com.baomidou.mybatisplus.core.metadata.IPage ;
import com.hnac.hzims.alarm.config.constants.AlarmHandleConstant ;
import com.hnac.hzims.alarm.config.entity.AlarmHandleEntity ;
import com.hnac.hzims.alarm.config.entity.AlarmHandleFlowEntity ;
import com.hnac.hzims.alarm.config.vo.AlarmHandleVo ;
import com.hnac.hzims.alarm.show.mapper.AlarmHandleFlowMapper ;
import com.hnac.hzims.alarm.show.mapper.AlarmHandleMapper ;
import com.hnac.hzims.alarm.show.service.AlarmHandleDetailService ;
import com.hnac.hzims.alarm.show.service.AlarmHandleService ;
import com.hnac.hzims.alarm.show.vo.HandleQueryVo ;
import com.hnac.hzims.alarm.show.wrapper.HandleWrapper ;
import com.hnac.hzims.alarm.config.vo.AlarmHandleVo ;
import com.hnac.hzims.common.logs.utils.StringUtils ;
import com.hnac.hzims.fdp.feign.IFdpDiagnoseClient ;
import com.hnac.hzims.fdp.feign.IFdpMonitorClient ;
import com.hnac.hzims.fdp.vo.UpdateFaultStateVo ;
import com.hnac.hzims.alarm.config.constants.AlarmHandleConstant ;
import com.hnac.hzims.operational.alert.vo.HandleQueryVo ;
import lombok.RequiredArgsConstructor ;
import lombok.extern.slf4j.Slf4j ;
import org.springblade.core.log.exception.ServiceException ;
@ -24,7 +22,6 @@ import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query ;
import org.springblade.core.secure.utils.AuthUtil ;
import org.springblade.core.tool.api.R ;
import org.springblade.core.tool.utils.BeanUtil ;
import org.springblade.core.tool.utils.DateUtil ;
import org.springblade.flow.core.entity.BladeFlow ;
import org.springblade.flow.core.feign.IFlowClient ;
@ -34,7 +31,6 @@ import org.springblade.system.user.entity.User;
import org.springblade.system.user.feign.IUserClient ;
import org.springframework.stereotype.Service ;
import javax.xml.ws.WebServiceException ;
import java.util.Date ;
import java.util.HashMap ;
import java.util.List ;
@ -57,7 +53,7 @@ public class AlarmHandleServiceImpl extends BaseServiceImpl<AlarmHandleMapper, A
private final IUserClient userClient ;
private final IFdpMonitorClient fdpMonitorClient ;
// private final IFdpMonitorClient fdpMonitorClient;
private final IFlowClient processClient ;
@ -106,13 +102,13 @@ public class AlarmHandleServiceImpl extends BaseServiceImpl<AlarmHandleMapper, A
// entity.setAccessId(param.getAccessId());
// entity.setPhenomenonId(param.getPhenomenonId());
entity . setHandleUser ( param . getHandleUser ( ) ) ;
entity . setHandleUser ( param . getHandleUser ( ) ) ;
entity . setDelayTime ( param . getDelayTime ( ) ) ;
entity . setDelayCause ( param . getDelayCause ( ) ) ;
entity . setFalseAlarmDesc ( param . getFalseAlarmDesc ( ) ) ;
entity . setFilePath ( param . getFilePath ( ) ) ;
if ( StringUtils . isNotBlank ( AuthUtil . getUserName ( ) ) ) {
entity . setCreateUserName ( AuthUtil . getNickName ( ) ) ;
entity . setCreateUserName ( AuthUtil . getUserName ( ) ) ;
param . setCreateUserName ( AuthUtil . getUserName ( ) ) ;
entity . setCreateDeptName ( param . getCreateDeptName ( ) ) ;
}
this . save ( entity ) ;