diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java index 87ddeff1..28cedc94 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java @@ -3,6 +3,9 @@ package com.foreverwin.mesnac.equip.service.impl; import com.alibaba.fastjson.JSONObject; import com.foreverwin.mesnac.common.enums.HandleEnum; import com.foreverwin.mesnac.common.util.StringUtil; +import com.foreverwin.mesnac.equip.mapper.ResourceStatusReceiveMapper; +import com.foreverwin.mesnac.equip.model.ResourceStatusReceive; +import com.foreverwin.mesnac.equip.service.ResourceStatusReceiveService; import com.foreverwin.mesnac.meapi.model.Resrce; import com.foreverwin.mesnac.meapi.service.ResrceService; import com.foreverwin.modular.core.exception.BusinessException; @@ -14,6 +17,8 @@ import com.foreverwin.mesnac.equip.model.ResourceFaultReceive; import com.foreverwin.mesnac.equip.mapper.ResourceFaultReceiveMapper; import com.foreverwin.mesnac.equip.service.ResourceFaultReceiveService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; @@ -35,11 +40,15 @@ import java.util.UUID; @Transactional(rollbackFor = Exception.class) public class ResourceFaultReceiveServiceImpl extends ServiceImpl implements ResourceFaultReceiveService { - + private static Logger logger = LoggerFactory.getLogger(ResourceFaultReceiveServiceImpl.class); @Autowired private ResourceFaultReceiveService resourceFaultReceiveService; @Autowired private ResrceService resrceService; + @Autowired + private ResourceStatusReceiveService resourceStatusReceiveService; + @Autowired + private ResourceStatusReceiveMapper resourceStatusReceiveMapper; @Override public IPage selectPage(FrontPage frontPage, ResourceFaultReceive resourceFaultReceive) { @@ -102,6 +111,30 @@ public class ResourceFaultReceiveServiceImpl extends ServiceImpl