特种作业最终状态

This commit is contained in:
guoshengxiong 2024-05-16 10:01:22 +08:00
parent 83f24094bd
commit bcc9375b7a

View File

@ -22,11 +22,13 @@ import com.zhgd.xmgl.modules.xz.mapper.XzDangerousEngineeringAcceptanceMapper;
import com.zhgd.xmgl.modules.xz.security.entity.XzSecurityQualityInspectionRecord;
import com.zhgd.xmgl.modules.xz.security.mapper.XzSecurityQualityInspectionRecordMapper;
import com.zhgd.xmgl.modules.xz.service.IXzDangerousEngineeringAcceptanceService;
import com.zhgd.xmgl.modules.xz.special.service.*;
import com.zhgd.xmgl.modules.xz.special.service.impl.XzSpecialOperationFireSafetyServiceImpl;
import com.zhgd.xmgl.security.util.SecurityUtils;
import com.zhgd.xmgl.util.PageUtil;
import com.zhgd.xmgl.util.RefUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -58,6 +60,33 @@ public class XzDangerousEngineeringAcceptanceServiceImpl extends ServiceImpl<XzD
private SystemUserServiceImpl systemUserService;
@Autowired
private XzSpecialOperationFireSafetyServiceImpl xzSpecialOperationFireSafetyService;
@Lazy
@Autowired
private IXzBlindPlatePlugSafeService XzBlindPlatePlugSafeService;
@Lazy
@Autowired
private IXzGasAnalyzeService XzGasAnalyzeService;
@Lazy
@Autowired
private IXzGroundSafetService XzGroundSafetService;
@Lazy
@Autowired
private IXzHighJobSafeService XzHighJobSafeService;
@Lazy
@Autowired
private IXzHoistSafetyWorkService XzHoistSafetyWorkService;
@Lazy
@Autowired
private IXzLimitSpaceSafeService XzLimitSpaceSafeService;
@Lazy
@Autowired
private IXzOpenCircuitSafeService XzOpenCircuitSafeService;
@Lazy
@Autowired
private IXzSpecialOperationFireSafetyService XzSpecialOperationFireSafetyService;
@Lazy
@Autowired
private IXzTemporaryElectricitySafeService XzTemporaryElectricitySafeService;
@Override
public IPage<XzDangerousEngineeringAcceptance> queryPageList(HashMap<String, Object> paramMap) {
@ -159,6 +188,20 @@ public class XzDangerousEngineeringAcceptanceServiceImpl extends ServiceImpl<XzD
dangerousEngineeringRecordService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 2)) {
xzSpecialOperationFireSafetyService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 3)) {
XzLimitSpaceSafeService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 4)) {
XzBlindPlatePlugSafeService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 5)) {
XzHighJobSafeService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 6)) {
XzHoistSafetyWorkService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 7)) {
XzTemporaryElectricitySafeService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 8)) {
XzGroundSafetService.finish(engineeringId);
} else if (Objects.equals(acceptance.getAcceptanceResult(), 1) && Objects.equals(acceptance.getType(), 9)) {
xzSpecialOperationFireSafetyService.finish(engineeringId);
}
}