| | |
| | | //判断是否存在保养人 如果存在则启动流程 |
| | | if (StringUtils.isNotBlank(order.getOperator())) { |
| | | //启动流程 |
| | | flowCommonService.initActBusiness("工单号:" + order.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";进行设备周保", |
| | | flowCommonService.initActBusiness("工单号: " + order.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";安装位置: " + equipment.getInstallationPosition(), |
| | | order.getId(), "IEamWeekMaintenanceOrderService", "week_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", order.getId()); |
| | |
| | | } |
| | | if (query.getMaintenanceDateBegin() != null && query.getMaintenanceDateEnd() != null) { |
| | | queryWrapper.between("wmo.maintenance_date", query.getMaintenanceDateBegin(), query.getMaintenanceDateEnd()); |
| | | } |
| | | if(StringUtils.isNotBlank(query.getRandomInspectionFlag())) { |
| | | if(CommonConstant.DEFAULT_1.equals(query.getRandomInspectionFlag())) { |
| | | queryWrapper.eq("wmo.random_inspection_flag", CommonConstant.DEFAULT_1); |
| | | }else { |
| | | queryWrapper.and(q -> q.eq("wmo.random_inspection_flag", CommonConstant.DEFAULT_0).or().isNull("wmo.random_inspection_flag")); |
| | | } |
| | | } |
| | | if(StringUtils.isNotBlank(query.getFinalRandomInspectionFlag())) { |
| | | if(CommonConstant.DEFAULT_1.equals(query.getFinalRandomInspectionFlag())) { |
| | | queryWrapper.eq("wmo.final_random_inspection_flag", CommonConstant.DEFAULT_1); |
| | | }else { |
| | | queryWrapper.and(q -> q.eq("wmo.final_random_inspection_flag", CommonConstant.DEFAULT_0).or().isNull("wmo.final_random_inspection_flag")); |
| | | } |
| | | } |
| | | //排序 |
| | | if (StringUtils.isNotBlank(query.getColumn()) && StringUtils.isNotBlank(query.getOrder())) { |
| | |
| | | //判断是否存在保养人 如果存在则启动流程 |
| | | if (StringUtils.isNotBlank(entity.getOperator())) { |
| | | //启动流程 |
| | | flowCommonService.initActBusiness("工单号:" + entity.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";进行设备周保", |
| | | flowCommonService.initActBusiness("工单号: " + entity.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";安装位置: " + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamWeekMaintenanceOrderService", "week_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", entity.getId()); |
| | |
| | | eamWeekMaintenanceOrderMapper.updateById(entity); |
| | | |
| | | //启动流程 |
| | | flowCommonService.initActBusiness("工单号:" + entity.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";进行设备周保", |
| | | flowCommonService.initActBusiness("工单号: " + entity.getOrderNum() + ";设备编号: " + equipment.getEquipmentCode() + ";安装位置: " + equipment.getInstallationPosition(), |
| | | entity.getId(), "IEamWeekMaintenanceOrderService", "week_maintenance_process", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", entity.getId()); |
| | |
| | | entity.setInitialAcceptanceUser(user.getUsername()); |
| | | entity.setInitialAcceptanceComment(request.getInitialAcceptanceComment()); |
| | | entity.setInitialAcceptanceTime(new Date()); |
| | | entity.setRandomInspectionFlag(request.getRandomInspectionFlag()); |
| | | //处理附件 |
| | | if (CollectionUtil.isNotEmpty(request.getInitialAcceptanceFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getInitialAcceptanceFilesResult(); |
| | |
| | | entity.setFinalAcceptanceUser(user.getUsername()); |
| | | entity.setFinalAcceptanceComment(request.getFinalAcceptanceComment()); |
| | | entity.setFinalAcceptanceTime(new Date()); |
| | | entity.setFinalRandomInspectionFlag(request.getFinalRandomInspectionFlag()); |
| | | //处理附件 |
| | | if (CollectionUtil.isNotEmpty(request.getFinalAcceptanceFilesResult())) { |
| | | List<FileUploadResult> fileUploadResultList = request.getFinalAcceptanceFilesResult(); |