| | |
| | | import org.jeecg.modules.eam.mapper.EamReportRepairMapper; |
| | | import org.jeecg.modules.eam.request.EamReportRepairQuery; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentExtendService; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentFaultReasonService; |
| | | import org.jeecg.modules.eam.service.IEamReportRepairService; |
| | | import org.jeecg.modules.eam.vo.EquipmentRepairStatistics; |
| | | import org.jeecg.modules.system.service.IMdcProductionService; |
| | |
| | | private IEamEquipmentExtendService eamEquipmentExtendService; |
| | | @Autowired |
| | | private IMdcProductionService mdcProductionService; |
| | | @Autowired |
| | | private IEamEquipmentFaultReasonService eamEquipmentFaultReasonService; |
| | | |
| | | /** |
| | | * 分页列表 |
| | |
| | | sb.append(detail.getItemCode()).append("、"); |
| | | sb.append(detail.getExceptionDescription()).append(";"); |
| | | }); |
| | | EamEquipmentFaultReason reason = eamEquipmentFaultReasonService.selectByFaultCode(BusinessCodeConst.EFR20250009); |
| | | EamReportRepair entity = new EamReportRepair(); |
| | | entity.setEquipmentId(equipmentId); |
| | | entity.setCreateBy(reportUser); |
| | | entity.setFaultStartTime(new Date()); |
| | | entity.setBreakdownFlag(CommonConstant.DEFAULT_0); |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | entity.setFaultName("周保执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | entity.setFaultType(CommonConstant.DEFAULT_1); |
| | | if(reason == null){ |
| | | entity.setFaultName("周保执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | }else { |
| | | entity.setFaultName(reason.getFaultName()); |
| | | entity.setFaultType(reason.getFaultCategory()); |
| | | } |
| | | entity.setReportStatus(ReportRepairEnum.WAIT_REPAIR.name()); |
| | | this.baseMapper.insert(entity); |
| | | //更新设备维修状态 |
| | |
| | | sb.append(detail.getItemCode()).append("、"); |
| | | sb.append(detail.getExceptionDescription()).append(";"); |
| | | }); |
| | | EamEquipmentFaultReason reason = eamEquipmentFaultReasonService.selectByFaultCode(BusinessCodeConst.EFR20250010); |
| | | EamReportRepair entity = new EamReportRepair(); |
| | | entity.setEquipmentId(equipmentId); |
| | | entity.setCreateBy(reportUser); |
| | | entity.setFaultStartTime(new Date()); |
| | | entity.setBreakdownFlag(CommonConstant.DEFAULT_0); |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | entity.setFaultName("点检执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | entity.setFaultType(CommonConstant.DEFAULT_1); |
| | | if(reason == null){ |
| | | entity.setFaultName("点检执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | }else { |
| | | entity.setFaultName(reason.getFaultName()); |
| | | entity.setFaultType(reason.getFaultCategory()); |
| | | } |
| | | entity.setReportStatus(ReportRepairEnum.WAIT_REPAIR.name()); |
| | | this.baseMapper.insert(entity); |
| | | //更新设备维修状态 |