| | |
| | | order.setMaintenanceDate(request.getMaintenanceDate()); |
| | | order.setRemark(request.getRemark()); |
| | | //状态初始化 |
| | | order.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_MAINTENANCE.name()); |
| | | order.setMaintenanceStatus(ThirdMaintenanceStatusEnum.WAIT_CHECK.name()); |
| | | order.setCreationMethod(request.getCreationMethod()); |
| | | //删除标记 |
| | | order.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | |
| | | if (entity == null) { |
| | | throw new JeecgBootException("要领取的工单不存在,请刷新重试!"); |
| | | } |
| | | if (!ThirdMaintenanceStatusEnum.WAIT_MAINTENANCE.name().equals(entity.getMaintenanceStatus())) { |
| | | if (!ThirdMaintenanceStatusEnum.WAIT_CHECK.name().equals(entity.getMaintenanceStatus())) { |
| | | throw new JeecgBootException("该工单已进行过领取!"); |
| | | } |
| | | EamEquipment equipment = eamEquipmentService.getById(entity.getEquipmentId()); |
| | |
| | | values.put("dataId", order.getId()); |
| | | values.put("organization", "技术状态鉴定结束"); |
| | | values.put("comment", "技术状态鉴定结束"); |
| | | if (CommonConstant.YN_O.equals(request.getFullyFunctionalResult()) && CommonConstant.YN_O.equals(request.getRunningNormallyResult())) { |
| | | if (CommonConstant.YN_1.equals(request.getFullyFunctional()) && CommonConstant.YN_1.equals(request.getRunningNormally())) { |
| | | values.put("confirmation", "1"); |
| | | // 获取下一步执行人 |
| | | userSelectors = sysUserService.selectOperatorList(equipment.getEquipmentCode(), equipment.getFactoryOrgCode(), BusinessCodeConst.PCR0002); |
| | |
| | | case WAIT_CHECK: |
| | | // 技术状态鉴定结束 |
| | | order.setInspector(user.getUsername()); |
| | | order.setFullyFunctional(request.getFullyFunctionalResult()); |
| | | order.setRunningNormally(request.getRunningNormallyResult()); |
| | | order.setFullyFunctional(request.getFullyFunctional()); |
| | | order.setRunningNormally(request.getRunningNormally()); |
| | | order.setInspectTime(new Date()); |
| | | if (CommonConstant.YN_O.equals(request.getFullyFunctionalResult()) && CommonConstant.YN_O.equals(request.getRunningNormallyResult())) { |
| | | if (CommonConstant.YN_1.equals(request.getFullyFunctional()) && CommonConstant.YN_1.equals(request.getRunningNormally())) { |
| | | // 鉴定通过 |
| | | order.setMaintenanceStatus(ThirdMaintenanceStatusEnum.UNDER_MAINTENANCE.name()); |
| | | } else { |