| | |
| | | StringBuilder sb = new StringBuilder(); |
| | | detailList.forEach(detail -> { |
| | | sb.append(detail.getItemCode()).append("、"); |
| | | sb.append(detail.getExceptionDescription()).append(";"); |
| | | sb.append(detail.getExceptionDescription()).append("; "); |
| | | }); |
| | | EamEquipmentFaultReason reason = eamEquipmentFaultReasonService.selectByFaultCode(BusinessCodeConst.EFR20250010); |
| | | EamReportRepair entity = new EamReportRepair(); |
| | |
| | | entity.setFaultStartTime(new Date()); |
| | | entity.setBreakdownFlag(CommonConstant.DEFAULT_0); |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | entity.setFaultDescription(sb.toString()); |
| | | if(reason == null){ |
| | | entity.setFaultName("周保执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | }else { |
| | | entity.setFaultName(reason.getFaultName()); |
| | | entity.setFaultType(reason.getFaultCategory()); |
| | |
| | | StringBuilder sb = new StringBuilder(); |
| | | detailList.forEach(detail -> { |
| | | sb.append(detail.getItemCode()).append("、"); |
| | | sb.append(detail.getExceptionDescription()).append(";"); |
| | | sb.append(detail.getExceptionDescription()).append("; "); |
| | | }); |
| | | EamEquipmentFaultReason reason = eamEquipmentFaultReasonService.selectByFaultCode(BusinessCodeConst.EFR20250009); |
| | | EamReportRepair entity = new EamReportRepair(); |
| | |
| | | entity.setFaultStartTime(new Date()); |
| | | entity.setBreakdownFlag(CommonConstant.DEFAULT_0); |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | entity.setFaultDescription(sb.toString()); |
| | | if(reason == null){ |
| | | entity.setFaultName("点检执行报修处理"); |
| | | entity.setFaultDescription(sb.toString()); |
| | | }else { |
| | | entity.setFaultName(reason.getFaultName()); |
| | | entity.setFaultType(reason.getFaultCategory()); |