|
@@ -23,6 +23,7 @@ import com.rongwei.bsentity.dto.*;
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionInsertRequest;
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionInsertRequest;
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionUpdateRequest;
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionUpdateRequest;
|
|
import com.rongwei.bsentity.dto.project.node.ProjectNodeStateBo;
|
|
import com.rongwei.bsentity.dto.project.node.ProjectNodeStateBo;
|
|
|
|
+import com.rongwei.bsentity.dto.project.node.UnItpNodeStateBo;
|
|
import com.rongwei.bsentity.vo.*;
|
|
import com.rongwei.bsentity.vo.*;
|
|
import com.rongwei.commonservice.serial.service.SysSerialNumberService;
|
|
import com.rongwei.commonservice.serial.service.SysSerialNumberService;
|
|
import com.rongwei.rwadmincommon.system.service.SysGeneralCRUDService;
|
|
import com.rongwei.rwadmincommon.system.service.SysGeneralCRUDService;
|
|
@@ -235,6 +236,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
.insertList(new ArrayList<>())
|
|
.insertList(new ArrayList<>())
|
|
.updateList(new ArrayList<>())
|
|
.updateList(new ArrayList<>())
|
|
.outsideStateList(new ArrayList<>())
|
|
.outsideStateList(new ArrayList<>())
|
|
|
|
+ .unItpList(new ArrayList<>())
|
|
.build();
|
|
.build();
|
|
|
|
|
|
List<ZhcxOutsideInspectionItpOperLogDo> logList = new ArrayList<>();
|
|
List<ZhcxOutsideInspectionItpOperLogDo> logList = new ArrayList<>();
|
|
@@ -332,6 +334,14 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
List<ZhcxItpProjectNodeStateResultDto> nodeStateResultList = zhcxItpProjectNodeStateService.getByItp(inspectionItpDo, "10");
|
|
List<ZhcxItpProjectNodeStateResultDto> nodeStateResultList = zhcxItpProjectNodeStateService.getByItp(inspectionItpDo, "10");
|
|
assembleNodeState(nodeStateResultList, inspectionItpDo, nodeStateBo);
|
|
assembleNodeState(nodeStateResultList, inspectionItpDo, nodeStateBo);
|
|
|
|
|
|
|
|
+ UnItpNodeStateBo stateBo = UnItpNodeStateBo.builder()
|
|
|
|
+ .inspectionCount(inspectionItpDo.getInspectioncount())
|
|
|
|
+ .inspectionCode(inspectionItpDo.getInspectioncode())
|
|
|
|
+ .type("outside")
|
|
|
|
+ .conclusion("40")
|
|
|
|
+ .build();
|
|
|
|
+ nodeStateBo.getUnItpList().add(stateBo);
|
|
|
|
+
|
|
}
|
|
}
|
|
//拒收
|
|
//拒收
|
|
else if ("20".equals(operType)) {
|
|
else if ("20".equals(operType)) {
|
|
@@ -410,6 +420,32 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
List<ZhcxItpProjectNodeStateResultDto> nodeStateResultList = zhcxItpProjectNodeStateService.getByItp(inspectionItpDo, operType);
|
|
List<ZhcxItpProjectNodeStateResultDto> nodeStateResultList = zhcxItpProjectNodeStateService.getByItp(inspectionItpDo, operType);
|
|
assembleNodeState(nodeStateResultList, inspectionItpDo, nodeStateBo);
|
|
assembleNodeState(nodeStateResultList, inspectionItpDo, nodeStateBo);
|
|
|
|
|
|
|
|
+ UnItpNodeStateBo stateBo = UnItpNodeStateBo.builder()
|
|
|
|
+ .inspectionCount(inspectionItpDo.getInspectioncount())
|
|
|
|
+ .inspectionCode(inspectionItpDo.getInspectioncode())
|
|
|
|
+ .type("outside")
|
|
|
|
+ .build();
|
|
|
|
+
|
|
|
|
+ //拒收
|
|
|
|
+ if("20".equals(operType)) {
|
|
|
|
+ stateBo.setConclusion("20");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //接收
|
|
|
|
+ if("50".equals(operType)) {
|
|
|
|
+ stateBo.setConclusion("10");
|
|
|
|
+ stateBo.setComplateTime(inspectionItpDo.getInspectioncomplatetime());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //有条件接收
|
|
|
|
+ if ("60".equals(operType)) {
|
|
|
|
+ stateBo.setConclusion("30");
|
|
|
|
+ stateBo.setComplateTime(inspectionItpDo.getInspectioncomplatetime());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ nodeStateBo.getUnItpList().add(stateBo);
|
|
|
|
+
|
|
}
|
|
}
|
|
/* 当前操作人 */
|
|
/* 当前操作人 */
|
|
if (user != null && user.getId() != null) {
|
|
if (user != null && user.getId() != null) {
|