| | |
| | | int successLines = 0, errorLines = 0; |
| | | //a = 1å¼å§è¯»åç¹æ£é¡¹ç®ï¼b = 1å¼å§è¯»åå¨ä¿å
»é¡¹ç®ï¼c = 1该设å¤å¯¼å
¥ä¿¡æ¯åå¨é误ï¼projectColumnIndexç¹æ£é¡¹ç®æå¨åï¼maintenanceColumnIndexå¨ä¿å
»é¡¹ç®æå¨å |
| | | int a = 0,b = 0,c = 0,projectColumnIndex = -1,maintenanceColumnIndex = 0; |
| | | //表头æ é¢ |
| | | String title = ""; |
| | | String dailyInspectionStandardId = null; |
| | | String equipmentNum = null; |
| | | DailyInspectionStandard dailyInspectionStandard = new DailyInspectionStandard(); |
| | | DailyInspectionStandard dailyInspectionStandard = null; |
| | | List<DailyInspectionStandardDetail> dailyInspectionStandardDetailList = new ArrayList<>(); |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | |
| | | if("STRING".equals(cell.getCellType().toString())|| "BLANK".equals(cell.getCellType().toString())){ |
| | | //ç¹æ£å¨æåå¨ï¼å¤æè®¾å¤ç»ä¸ç¼ç æ¯å¦åå¨ |
| | | String strCell = cell.getStringCellValue(); |
| | | if(strCell.contains("ç产设å¤èªä¸»ç»´æ¤ç¹æ£è¡¨")){ |
| | | title = strCell.trim().substring(11).trim(); |
| | | } |
| | | if(strCell.contains("设å¤åç§°ï¼")){ |
| | | String[] tybh1 = strCell.split("ç»ä¸ç¼å·ï¼"); |
| | | String[] tybh2 = tybh1[1].split("å¹´"); |
| | |
| | | errorLines++; |
| | | }else { |
| | | c = 0; |
| | | dailyInspectionStandard.setNum(identityService.getNumByTypeAndLength("DailylnspectionStandard",4)); |
| | | String num = identityService.getNumByTypeAndLength("DailylnspectionStandard", 4); |
| | | dailyInspectionStandard = new DailyInspectionStandard(); |
| | | dailyInspectionStandard.setNum(num); |
| | | dailyInspectionStandard.setVersionStatus("2"); |
| | | dailyInspectionStandard.setVersion("1.0"); |
| | | dailyInspectionStandard.setAssignMode("1"); |
| | | dailyInspectionStandard.setEquipmentId(equipment.getId()); |
| | | dailyInspectionStandard.setApprovalStatus("5"); |
| | | dailyInspectionStandard.setDisUda1(title); |
| | | //dailyInspectionStandardService.save(dailyInspectionStandard); |
| | | //dailyInspectionStandardId = dailyInspectionStandard.getId(); |
| | | } |
| | |
| | | dailyInspectionStandardDetail.setDailyInspectionStandardId(dailyInspectionStandardId); |
| | | String dayInspectionProjectName = row.getCell(projectColumnIndex).toString(); |
| | | String standard = row.getCell(projectColumnIndex+3).toString(); |
| | | //æ¥è¯¢ç¹å»é¡¹ç®ï¼å¦ææ²¡ææ°å¢ç¹æ£é¡¹ç® |
| | | //æ¥è¯¢ç¹æ£é¡¹ç®ï¼å¦ææ²¡ææ°å¢ç¹æ£é¡¹ç® |
| | | if(StringUtils.isNotBlank(dayInspectionProjectName)){ |
| | | List<InspectionProject> inspectionProjectList = inspectionProjectService.lambdaQuery().eq(InspectionProject::getName,dayInspectionProjectName).eq(InspectionProject::getDelFlag,CommonConstant.DEL_FLAG_0).list(); |
| | | List<InspectionProject> inspectionProjectList = inspectionProjectService.lambdaQuery().eq(InspectionProject::getName,dayInspectionProjectName) |
| | | .eq(InspectionProject::getDetectionStandard,standard).eq(InspectionProject::getDelFlag,CommonConstant.DEL_FLAG_0).list(); |
| | | if(CollectionUtils.isEmpty(inspectionProjectList)){ |
| | | InspectionProject inspectionProject = new InspectionProject(); |
| | | inspectionProject.setNum(identityService.getNumByTypeAndLength("InspectionProject",4)); |
| | |
| | | String weekInspectionProjectName = row.getCell(maintenanceColumnIndex).toString(); |
| | | String inspectionStandardName = row.getCell(maintenanceColumnIndex+3).toString(); |
| | | if(StringUtils.isNotBlank(weekInspectionProjectName)){ |
| | | List<InspectionProject> inspectionProjectList = inspectionProjectService.lambdaQuery().eq(InspectionProject::getName,weekInspectionProjectName).eq(InspectionProject::getDelFlag,CommonConstant.DEL_FLAG_0).list(); |
| | | List<InspectionProject> inspectionProjectList = inspectionProjectService.lambdaQuery().eq(InspectionProject::getName,weekInspectionProjectName) |
| | | .eq(InspectionProject::getDetectionStandard,inspectionStandardName).eq(InspectionProject::getDelFlag,CommonConstant.DEL_FLAG_0).list(); |
| | | if(CollectionUtils.isEmpty(inspectionProjectList)){ |
| | | InspectionProject inspectionProject = new InspectionProject(); |
| | | inspectionProject.setNum(identityService.getNumByTypeAndLength("InspectionProject",4)); |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | .eq(FinishTransferOrder::getEquipmentId, equipmentId).list(); |
| | | for (FinishTransferOrder finishTransferOrder : finishTransferOrders) { |
| | | String operateUser = finishTransferOrder.getOperateUser(); |
| | | record.put("operateUserName", operateUser); |
| | | // record.put("operateUserName", operateUser+"/"+finishTransferOrder.getTransferOrderUda1()); |
| | | record.put("operateUserName",(StringUtils.isBlank(operateUser) ? "":operateUser+"/"+finishTransferOrder.getTransferOrderUda1())); |
| | | String repairUser = finishTransferOrder.getRepairUser(); |
| | | record.put("repairUserName", repairUser); |
| | | // record.put("repairUserName", repairUser+"/"+finishTransferOrder.getTransferOrderUda2()); |
| | | record.put("repairUserName",(StringUtils.isBlank(repairUser) ? "":repairUser+"/"+finishTransferOrder.getTransferOrderUda2())); |
| | | String repairDirectorUser = finishTransferOrder.getRepairDirectorUser(); |
| | | record.put("repairDirectorUserName", repairDirectorUser); |
| | | // record.put("repairDirectorUserName", repairDirectorUser+"/"+finishTransferOrder.getTransferOrderUda3()); |
| | | record.put("repairDirectorUserName",(StringUtils.isBlank(repairDirectorUser) ? "":repairDirectorUser+"/"+finishTransferOrder.getTransferOrderUda3())); |
| | | String equipmentInspectorUser = finishTransferOrder.getEquipmentInspectorUser(); |
| | | record.put("equipmentInspectorUserName", equipmentInspectorUser); |
| | | // record.put("equipmentInspectorUserName", equipmentInspectorUser+"/"+finishTransferOrder.getTransferOrderUda4()); |
| | | record.put("equipmentInspectorUserName",(StringUtils.isBlank(equipmentInspectorUser) ? "":equipmentInspectorUser+"/"+finishTransferOrder.getTransferOrderUda4())); |
| | | } |
| | | |
| | | } |
| | |
| | | dailyMaintenanceOrder.setConfirmStatus("0");//ç§»äº¤ç¡®è®¤ç¶æï¼0æªç¡®è®¤ï¼1主任确认ï¼2æ£éªåç¡®è®¤ï¼ |
| | | dailyMaintenanceOrder.setPrecisionInspectionStatus("0");//精度æ£éªåæµç¨ç¶æï¼0æªç¡®è®¤ï¼1精度æ£éªè
ï¼2维修室主任ï¼3è®¾å¤æ£éªåï¼4使ç¨å使æ¯ä¸»ç®¡ï¼5è®¾å¤æ£éªåï¼çç« ï¼ï¼ |
| | | dailyMaintenanceOrder.setStoveExemptStatus("0");//ç类设å¤è±å
20é¡¹ç¶æï¼0æªç¡®è®¤ï¼1维修室主任ï¼2ä¿å
»äººåï¼3ä»ªè¡¨å·¥ï¼ |
| | | dailyMaintenanceOrder.setStatus("3");//3:æªå¼å§ |
| | | dailyMaintenanceOrderService.save(dailyMaintenanceOrder); |
| | | List<DailyMaintenanceOrderDetail> dailyMaintenanceOrderDetails = dailyMaintenanceOrder.getDailyMaintenanceOrderDetails(); |
| | | for (DailyMaintenanceOrderDetail dailyMaintenanceOrderDetail : dailyMaintenanceOrderDetails) { |
| | |
| | | public Result<String> report(@RequestBody DailyMaintenanceOrder dailyMaintenanceOrder) { |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = sysUser.getId(); |
| | | dailyMaintenanceOrder.setMaintenanceUserId(userId); |
| | | // dailyMaintenanceOrder.setMaintenanceUserId(userId); |
| | | dailyMaintenanceOrder.setActualEndTime(new Date()); |
| | | boolean b = dailyMaintenanceOrderService.updateById(dailyMaintenanceOrder); |
| | | |
| | | List<DailyMaintenanceOrderDetail> dailyMaintenanceOrderDetails = dailyMaintenanceOrder.getDailyMaintenanceOrderDetails(); |
| | | for (DailyMaintenanceOrderDetail maintenanceOrderDetail : dailyMaintenanceOrderDetails) { |
| | | dailyMaintenanceOrderDetailService.updateById(maintenanceOrderDetail); |
| | | } |
| | | |
| | | String id = dailyMaintenanceOrder.getId(); |
| | | DailyMaintenanceOrder maintenanceOrder = dailyMaintenanceOrderService.getById(id); |
| | | FinishTransferOrder finishTransferOrder = new FinishTransferOrder(); |
| | | finishTransferOrder.setEquipmentId(maintenanceOrder.getEquipmentId()); |
| | | finishTransferOrder.setMaintenanceOrderId(maintenanceOrder.getId()); |
| | | // finishTransferOrder.setOperateUser(userId); |
| | | // finishTransferOrder.setRepairUser(userId); |
| | | finishTransferOrder.setStatus("1"); |
| | | finishTransferOrder.setDelFlag(0); |
| | | finishTransferOrderService.save(finishTransferOrder); |
| | | |
| | | // this.createPrecisionInspection(maintenanceOrder); |
| | | // |
| | | // this.createMaintenanceStoveExempt(maintenanceOrder); |
| | | |
| | | if (!b) { |
| | | return Result.error("æ¥å·¥å¤±è´¥!"); |
| | |
| | | public Result<String> report3M(@RequestBody DailyMaintenanceOrder dailyMaintenanceOrder) { |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = sysUser.getId(); |
| | | dailyMaintenanceOrder.setMaintenanceUserId(userId); |
| | | // dailyMaintenanceOrder.setMaintenanceUserId(userId); |
| | | dailyMaintenanceOrder.setActualEndTime(new Date()); |
| | | boolean b = dailyMaintenanceOrderService.updateById(dailyMaintenanceOrder); |
| | | |
| | | List<DailyMaintenanceOrderDetail> dailyMaintenanceOrderDetails = dailyMaintenanceOrder.getDailyMaintenanceOrderDetails(); |
| | | for (DailyMaintenanceOrderDetail maintenanceOrderDetail : dailyMaintenanceOrderDetails) { |
| | | dailyMaintenanceOrderDetailService.updateById(maintenanceOrderDetail); |
| | | } |
| | | |
| | | String id = dailyMaintenanceOrder.getId(); |
| | | DailyMaintenanceOrder maintenanceOrder = dailyMaintenanceOrderService.getById(id); |
| | |
| | | FinishTransferOrder finishTransferOrder = finishTransferOrders.get(0); |
| | | if("1".equals(confirmStatus)){ |
| | | finishTransferOrder.setOperateUser(sysUser.getRealname()); |
| | | finishTransferOrder.setTransferOrderUda1(DateUtils.now()); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | finishTransferOrder.setRepairDirectorUser(""); |
| | | finishTransferOrder.setRepairUser(""); |
| | | finishTransferOrder.setOperateUser(""); |
| | | finishTransferOrder.setTransferOrderUda1(""); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | this.twoMaintenanceAlert(confirmStatus,"äºä¿ç§»äº¤åæä½äººå",maintenanceOrder.getNum()); |
| | | }else if("3".equals(confirmStatus)){ |
| | | finishTransferOrder.setRepairUser(sysUser.getRealname()); |
| | | finishTransferOrder.setTransferOrderUda2(DateUtils.now()); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | finishTransferOrder.setEquipmentInspectorUser(""); |
| | | finishTransferOrder.setRepairDirectorUser(""); |
| | | finishTransferOrder.setRepairUser(""); |
| | | finishTransferOrder.setTransferOrderUda2(""); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | this.twoMaintenanceAlert(confirmStatus,"äºä¿ç§»äº¤å维修人å",maintenanceOrder.getNum()); |
| | | }else if("5".equals(confirmStatus)){ |
| | | finishTransferOrder.setRepairDirectorUser(sysUser.getRealname()); |
| | | finishTransferOrder.setTransferOrderUda3(DateUtils.now()); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | this.twoMaintenanceAlert(confirmStatus,"äºä¿ç§»äº¤åæ£éªå",maintenanceOrder.getNum()); |
| | | }else if("6".equals(confirmStatus)){ |
| | | finishTransferOrder.setRepairDirectorUser(""); |
| | | finishTransferOrder.setTransferOrderUda3(""); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | this.twoMaintenanceAlert(confirmStatus,"äºä¿ç§»äº¤å维修室主任",maintenanceOrder.getNum()); |
| | | }else if("7".equals(confirmStatus)){ |
| | | finishTransferOrder.setEquipmentInspectorUser(sysUser.getRealname()); |
| | | finishTransferOrder.setTransferOrderUda4(DateUtils.now()); |
| | | finishTransferOrderService.updateById(finishTransferOrder); |
| | | |
| | | maintenanceOrder.setConfirmStatus(confirmStatus); |
| | |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | @ApiOperation(value="mom_eam_equipment-å页å表æ¥è¯¢", notes="mom_eam_equipment-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/showEquipmentList") |
| | | public Result<IPage<Equipment>> showEquipmentList(Equipment equipment, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<Equipment> queryWrapper = new QueryWrapper<>(); |
| | | if(StringUtils.isNotBlank(equipment.getNum())){ |
| | | queryWrapper.like("num",equipment.getNum()); |
| | | } |
| | | if(StringUtils.isNotBlank(equipment.getName())){ |
| | | queryWrapper.like("name",equipment.getName()); |
| | | } |
| | | queryWrapper.eq("equipment_status","1"); |
| | | queryWrapper.in("technology_status","qualified","limitedUse"); |
| | | queryWrapper.eq("status","1"); |
| | | queryWrapper.eq("del_flag",0); |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | | Page<Equipment> page = new Page<Equipment>(pageNo, pageSize); |
| | | IPage<Equipment> pageList = equipmentService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | @ApiOperation(value="mom_eam_equipment-å页å表æ¥è¯¢", notes="mom_eam_equipment-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/findEquipmentList") |
| | | public Result<IPage<Equipment>> findEquipmentList(Equipment equipment, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<Equipment> queryWrapper = new QueryWrapper<>(); |
| | | if(StringUtils.isNotBlank(equipment.getNum())){ |
| | | queryWrapper.like("num",equipment.getNum()); |
| | | } |
| | | if(StringUtils.isNotBlank(equipment.getName())){ |
| | | queryWrapper.like("name",equipment.getName()); |
| | | } |
| | | queryWrapper.eq("equipment_status","1"); |
| | | queryWrapper.in("technology_status","qualified","limitedUse"); |
| | | queryWrapper.in("equipment_importance_id","A","B","C"); |
| | | queryWrapper.eq("status","1"); |
| | | queryWrapper.eq("del_flag",0); |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | | Page<Equipment> page = new Page<Equipment>(pageNo, pageSize); |
| | | IPage<Equipment> pageList = equipmentService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 设å¤ä¿ä¿® è·å设å¤å表ç»ä»¶ |
| | |
| | | dailyMaintenanceOrder.setEquipmentId(maintenanceStandard.getEquipmentId()); |
| | | dailyMaintenanceOrder.setPlanStartTime(equipmentMaintenancePlanDetail.getPlanStartTime()); |
| | | dailyMaintenanceOrder.setPlanEndTime(equipmentMaintenancePlanDetail.getPlanEndTime()); |
| | | dailyMaintenanceOrder.setStatus(CommonConstant.STATUS_1); |
| | | dailyMaintenanceOrder.setStatus("3");//3:æªå¼å§ |
| | | dailyMaintenanceOrder.setMaintenanceStandardId(maintenanceStandard.getId()); |
| | | dailyMaintenanceOrder.setCreateType(CommonConstant.ANNOUNCEMENT_SEND_STATUS_2); |
| | | List<MaintenanceStandardDetail> maintenanceStandardDetailList = equipmentMaintenancePlanService.getCycle(maintenanceStandard.getId(),equipmentMaintenancePlan.getType()); |
| | |
| | | LoginUser curUser= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | equipmentReportRepair.setStatus("1"); |
| | | equipmentReportRepair.setSource("1"); |
| | | equipmentReportRepair.setType("1"); |
| | | equipmentReportRepair.setIsCreateOrder(0); |
| | | equipmentReportRepairService.save(equipmentReportRepair); |
| | | Equipment equipment = equipmentService.getById(equipmentReportRepair.getEquipmentId()); |
| | | String IS_PRODUCT_YES = "yes"; |
| | | if(IS_PRODUCT_YES.equals(equipmentReportRepair.getErrUda1())){ |
| | | String num = sysIdentityService.getNumByTypeAndLength("QuanlityConfirm",4); |
| | |
| | | quanlityConfirm.setQuantity(equipmentReportRepair.getQuantity()); |
| | | quanlityConfirm.setOperator(curUser.getId()); |
| | | quanlityConfirmService.save(quanlityConfirm); |
| | | MessageDTO qMessageDTO = new MessageDTO(); |
| | | qMessageDTO.setTitle("è´¨ééæ£ç¡®è®¤æé"); |
| | | qMessageDTO.setContent("ç»ä¸ç¼å·ä¸ºã"+equipment.getNum()+"ãç设å¤éè¦è¿è¡è´¨ééæ£ç¡®è®¤ï¼è¯·ç§»æ¥è³è´¨ééæ£ç¡®è®¤è¿è¡ç¡®è®¤ï¼åæ®å·ã"+num+"ã"); |
| | | qMessageDTO.setCategory("è´¨ééæ£ç¡®è®¤"); |
| | | qMessageDTO.setFromUser("è´¨ééæ£ç¡®è®¤æéå°å©æ"); |
| | | qMessageDTO.setToUser(curUser.getUsername()); |
| | | sysBaseApi.sendSysAnnouncement(qMessageDTO); |
| | | String fNum = sysIdentityService.getNumByTypeAndLength("FaultInfo",4); |
| | | FaultInfo faultInfo = new FaultInfo(); |
| | | faultInfo.setNum(fNum); |
| | | faultInfo.setQuanlityId(quanlityConfirm.getId()); |
| | | faultInfo.setOperater(quanlityConfirm.getOperator()); |
| | | faultInfo.setIsConfirm(IS_PRODUCT_NO); |
| | | String eId = equipmentReportRepair.getEquipmentId(); |
| | | Equipment equipment = equipmentService.getById(eId); |
| | | faultInfo.setEquipModel(equipment.getModel()); |
| | | faultInfo.setEquipName(equipment.getName()); |
| | | faultInfo.setEquipNum(equipment.getNum()); |
| | | faultInfoService.save(faultInfo); |
| | | |
| | | MessageDTO fMessageDTO = new MessageDTO(); |
| | | fMessageDTO.setTitle("设å¤äºæ
ç»è®°æé"); |
| | | fMessageDTO.setContent("ç»ä¸ç¼å·ä¸ºã"+equipment.getNum()+"ãç设å¤éè¦è¿è¡äºæ
ç»è®°ï¼è¯·ç§»æ¥è³è®¾å¤äºæ
ç»è®°è¡¨å®æç¡®è®¤ï¼åæ®å·ã"+fNum+"ã"); |
| | | fMessageDTO.setCategory("设å¤äºæ
ç»è®°ç¡®è®¤"); |
| | | fMessageDTO.setFromUser("设å¤äºæ
ç»è®°æéå°å©æ"); |
| | | fMessageDTO.setToUser(curUser.getUsername()); |
| | | sysBaseApi.sendSysAnnouncement(fMessageDTO); |
| | | } |
| | | Equipment equipment = equipmentService.getById(equipmentReportRepair.getEquipmentId()); |
| | | equipment.setEquipmentStatus("2"); |
| | | String teamId = equipment.getTeamId(); |
| | | if(ObjectUtils.isNotNull(teamId)){ |
| | |
| | | } |
| | | inspectionOrder.setInspectionDeadline(date); |
| | | inspectionOrder.setInspectionStandardType("1"); |
| | | inspectionOrder.setStatus("3");//3:æªå¼å§ |
| | | inspectionOrderService.save(inspectionOrder); |
| | | |
| | | String equipmentId = inspectionOrder.getEquipmentId(); |
| | |
| | | // isd.setMaintenanceCycleId(maintenanceStandardDetail.getMaintenanceCycleId()); |
| | | isd.setMaintenanceMode(maintenanceStandardDetail.getMaintenanceMode()); |
| | | isd.setMaintenanceRequire(maintenanceStandardDetail.getMaintenanceRequire()); |
| | | isd.setMaintenanceRole(maintenanceStandardDetail.getMaintenanceRole()); |
| | | if(maintenanceCycle.size() > 0){ |
| | | isd.setMaintenanceCycleId(maintenanceCycle.get(0).getValue()); |
| | | } |
| | |
| | | |
| | | @Autowired |
| | | private IEamEquipmentService equipmentService; |
| | | |
| | | @Autowired |
| | | private IPrecisionParametersTemplateDetailService precisionParametersTemplateDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | |
| | | String precisionParametersId = precisionInspectionDetail.getPrecisionParametersId(); |
| | | PrecisionParameters precisionParameters = precisionParametersService.getById(precisionParametersId); |
| | | precisionInspectionDetail.setPrecisionParametersName(precisionParameters.getName()); |
| | | |
| | | List<PrecisionParametersTemplateDetail> list = precisionParametersTemplateDetailService.lambdaQuery() |
| | | .eq(PrecisionParametersTemplateDetail::getPrecisionParametersId, precisionParametersId) |
| | | .eq(PrecisionParametersTemplateDetail::getDelFlag, "0").list(); |
| | | if(list.size()>0){ |
| | | precisionInspectionDetail.setTolerance(list.get(0).getTolerance()); |
| | | } |
| | | |
| | | } |
| | | |
| | | map.put("precisionInspectionDetails",precisionInspectionDetails); |
| | |
| | | */ |
| | | @ApiOperation(value = "ç²¾åº¦åæ°æ¨¡æ¿-æ·»å ", notes = "ç²¾åº¦åæ°æ¨¡æ¿-æ·»å ") |
| | | @PostMapping(value = "/addNew") |
| | | @Transactional(rollbackFor = { Exception.class }) |
| | | public Result<?> addNew(@RequestBody PrecisionParametersTemplate precisionParametersTemplate) { |
| | | precisionParametersTemplateService.save(precisionParametersTemplate); |
| | | String id= precisionParametersTemplate.getId(); |
| | | List<PrecisionParametersTemplateDetail> details = precisionParametersTemplate.getPrecisionParametersTemplateDetailList(); |
| | | for(PrecisionParametersTemplateDetail precisionParametersTemplateDetail:details){ |
| | | precisionParametersTemplateDetail.setId(""); |
| | | precisionParametersTemplateDetail.setPrecisionParametersTemplateId(id); |
| | | } |
| | | precisionParametersTemplateDetailService.saveBatch(details); |
| | |
| | | } |
| | | return Result.error("åºåºåä¸åå¨"); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/addNew") |
| | | public Result<String> addNew(@RequestBody List<RepairOrderActualMaterial> list) { |
| | | if(list.size()!=0){ |
| | | String id = list.get(0).getRepairOrderId(); |
| | | repairOrderActualMaterialService.remove(new QueryWrapper<RepairOrderActualMaterial>().eq("repair_order_id",id)); |
| | | repairOrderActualMaterialService.saveBatch(list); |
| | | return Result.OK("æ·»å æå"); |
| | | }else { |
| | | return Result.error("æ·»å 失败"); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.entity.*; |
| | | import org.jeecg.modules.eam.mapper.RepairOrderMapper; |
| | | import org.jeecg.modules.eam.service.*; |
| | | import org.jeecg.modules.eam.vo.EquipmentAvailabilityVo; |
| | | import org.jeecg.modules.eam.vo.RepairReportExportVo; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.mapper.SysUserMapper; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Autowired |
| | | @Lazy |
| | | private IdentityService sysIdentityService; |
| | | @Autowired |
| | | private RepairOrderMapper repairOrderMapper; |
| | | @Autowired |
| | | private SysUserMapper sysUserMapper; |
| | | @Value("${jeecg.path.upload}") |
| | | private String upLoadPath; |
| | | |
| | | |
| | | |
| | |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åº |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.demo:mom_eam_repair_order:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, RepairOrder repairOrder) { |
| | | return super.exportXls(request, repairOrder, RepairOrder.class, "维修工å"); |
| | | } |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, RepairOrder repairOrder) { |
| | | // Step.1 ç»è£
æ¥è¯¢æ¡ä»¶ |
| | | String title = "维修履å"; |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | // Step.2 è·åå¯¼åºæ°æ® |
| | | if(StringUtils.isNotBlank(repairOrder.getUserId())){ |
| | | SysUser user = sysUserMapper.selectById(repairOrder.getUserId()); |
| | | repairOrder.setTeamId(user.getTeamId()); |
| | | }else{ |
| | | repairOrder.setTeamId(""); |
| | | } |
| | | List<String> equipNums = new ArrayList<>(); |
| | | if(StringUtils.isNotBlank(repairOrder.getNums())){ |
| | | equipNums = Arrays.asList(repairOrder.getNums().trim().split("\n")).stream().filter(num->!num.equals("\n")).collect(Collectors.toList()); |
| | | } |
| | | List<RepairOrder> exportList = repairOrderMapper.getRepairOrderList(null,repairOrder.getId(), |
| | | repairOrder.getNum(), |
| | | repairOrder.getEquipmentNum(), |
| | | repairOrder.getEquipmentName(), |
| | | repairOrder.getStatus(), |
| | | repairOrder.getRepairOrderType(), |
| | | repairOrder.getEquipmentCategoryId(), |
| | | repairOrder.getFactoryModelId(), |
| | | repairOrder.getSpecificEquipment(), |
| | | repairOrder.getTeamId(), |
| | | equipNums, |
| | | repairOrder.getRepairOrderUda1(), |
| | | repairOrder.getFaultStartTime(), |
| | | repairOrder.getFaultEndTime(), |
| | | repairOrder.getCreateStartTime(), |
| | | repairOrder.getCreateEndTime(), |
| | | repairOrder.getEquipmentImportanceId()); |
| | | |
| | | // Step.3 AutoPoi 导åºExcel |
| | | ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); |
| | | //æ¤å¤è®¾ç½®çfilenameæ æ ,å端ä¼éæ´æ°è®¾ç½®ä¸ä¸ |
| | | mv.addObject(NormalExcelConstants.FILE_NAME, title); |
| | | mv.addObject(NormalExcelConstants.CLASS, RepairOrder.class); |
| | | //update-begin--Author:liusq Date:20210126 forï¼å¾çå¯¼åºæ¥éï¼ImageBasePathæªè®¾ç½®-------------------- |
| | | ExportParams exportParams=new ExportParams(title + "æ¥è¡¨", "导åºäºº:" + sysUser.getRealname(), title); |
| | | exportParams.setImageBasePath(upLoadPath); |
| | | //update-end--Author:liusq Date:20210126 forï¼å¾çå¯¼åºæ¥éï¼ImageBasePathæªè®¾ç½®---------------------- |
| | | mv.addObject(NormalExcelConstants.PARAMS,exportParams); |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, exportList); |
| | | return mv; |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥ |
| | |
| | | List<RepairOrderActualWorkHours> hoursList = repairOrderActualWorkHoursService.list(new QueryWrapper<RepairOrderActualWorkHours>().eq("repair_order_id",id).eq("del_flag",0)); |
| | | List<RepairOrderActualWorkHours> mainStuff = repairOrderActualWorkHoursService.list(new QueryWrapper<RepairOrderActualWorkHours>().eq("repair_order_id",id).eq("del_flag",0).eq("principal_contractor","1")); |
| | | if(hoursList.size()<2){ |
| | | return Result.error("æä½å¤±è´¥ï¼è¯·è³å°æ·»å 两个æ¿ä¿®äºº"); |
| | | return Result.error("æä½å¤±è´¥ï¼è¯·è³å°æ·»å 两个æ¿ä¿®äººï¼å¹¶ä¸è®¾ç½®ä¸ä¸ªä¸»æ¿ä¿®äºº"); |
| | | } |
| | | if(mainStuff.size()!=1){ |
| | | return Result.error("æä½å¤±è´¥ï¼è¯·æ·»å 主æ¿ä¿®äººï¼æä¸åªæä¸ä¸ª"); |
| | | return Result.error("æä½å¤±è´¥ï¼è¯·è®¾ç½®ä¸»æ¿ä¿®äººï¼æä¸åªæä¸ä¸ª"); |
| | | } |
| | | if(StringUtils.isNotBlank(repairOrder.getProjectMaintenanceOrderId())){ |
| | | //å¤æé¡¹ç®æ§ç»´ä¿®åè¡¨ç¶æ |
| | |
| | | streamService.save(stream); |
| | | List<ABCAssessment> abcAssessmentList = stream.getAssessmentList(); |
| | | for(ABCAssessment abcAssessment:abcAssessmentList){ |
| | | Equipment equipment = equipmentService.getById(abcAssessment.getEquipmentId()); |
| | | boolean isD = "D".equals(abcAssessment.getFinalStandard()); |
| | | boolean a = StringUtils.isNotBlank(equipment.getStandardA())&&StringUtils.isNotBlank(abcAssessment.getStandardA())&&equipment.getStandardA().equals(abcAssessment.getStandardA()); |
| | | boolean b = StringUtils.isNotBlank(equipment.getStandardB())&&StringUtils.isNotBlank(abcAssessment.getStandardB())&&equipment.getStandardB().equals(abcAssessment.getStandardB()); |
| | | boolean c = StringUtils.isNotBlank(equipment.getStandardC())&&StringUtils.isNotBlank(abcAssessment.getStandardC())&&equipment.getStandardC().equals(abcAssessment.getStandardC()); |
| | | boolean d = StringUtils.isNotBlank(equipment.getStandardD())&&StringUtils.isNotBlank(abcAssessment.getStandardD())&&equipment.getStandardD().equals(abcAssessment.getStandardD()); |
| | | boolean e = StringUtils.isNotBlank(equipment.getStandardE())&&StringUtils.isNotBlank(abcAssessment.getStandardE())&&equipment.getStandardE().equals(abcAssessment.getStandardE()); |
| | | boolean f = StringUtils.isNotBlank(equipment.getStandardF())&&StringUtils.isNotBlank(abcAssessment.getStandardF())&&equipment.getStandardF().equals(abcAssessment.getStandardF()); |
| | | if(isD&&a&&b&&c&&d&&e&&f){ |
| | | abcAssessment.setStandardA(null); |
| | | abcAssessment.setStandardB(null); |
| | | abcAssessment.setStandardC(null); |
| | | abcAssessment.setStandardD(null); |
| | | abcAssessment.setStandardE(null); |
| | | abcAssessment.setStandardF(null); |
| | | } |
| | | abcAssessment.setStreamId(stream.getId()); |
| | | } |
| | | aBCAssessmentService.saveBatch(abcAssessmentList); |
| | |
| | | Date nextDayAsDate =Date.from(nextDay.atStartOfDay(ZoneId.systemDefault()).toInstant()); |
| | | Date nextMonthAsDate = Date.from(nextMonth.atStartOfDay(ZoneId.systemDefault()).toInstant()); |
| | | Date needingDate = equipment.getNextThirdMaintenanceTime(); |
| | | Boolean a = StringUtils.isNotBlank(oldStandard); |
| | | Boolean b = oldStandard.equals("B")||oldStandard.equals("C"); |
| | | Boolean c = newStandard.equals("A"); |
| | | Boolean d = ObjectUtils.isNotNull(needingDate)&&needingDate.compareTo(currentDateAsDate)<0; |
| | | if(a&&b&&c&&d){ |
| | | Boolean a = StringUtils.isNotBlank(oldStandard)&&(oldStandard.equals("B")||oldStandard.equals("C")); |
| | | Boolean b = StringUtils.isNotBlank(newStandard)&&newStandard.equals("A");; |
| | | Boolean c = ObjectUtils.isNotNull(needingDate)&&needingDate.compareTo(currentDateAsDate)<0; |
| | | if(a&&b&&c){ |
| | | EquipmentMaintenancePlanDetail equipmentMaintenancePlanDetail = new EquipmentMaintenancePlanDetail(); |
| | | equipmentMaintenancePlanDetail.setPlanId(hexString); |
| | | equipmentMaintenancePlanDetail.setEquipmentId(equipment.getId()); |
| | |
| | | @GetMapping("getTechnologyStatus") |
| | | public Result<?> getTechnologyStatus(@RequestParam(name = "orderId", required = true) String orderId) { |
| | | List<Map<String, Object>> technologyStatusList = technologyStatusService.getTechnologyStatusList(orderId); |
| | | for (Map<String, Object> map : technologyStatusList) { |
| | | String result_8 = (String)map.get("result_8"); |
| | | if("0".equals(result_8)){ |
| | | map.put("hidden1Switch",false); |
| | | }else{ |
| | | map.put("hidden1Switch",true); |
| | | } |
| | | String result_9 = (String)map.get("result_9"); |
| | | if("0".equals(result_9)){ |
| | | map.put("hidden2Switch",false); |
| | | }else{ |
| | | map.put("hidden2Switch",true); |
| | | } |
| | | String result_10 = (String)map.get("result_10"); |
| | | if("0".equals(result_10)){ |
| | | map.put("hidden3Switch",false); |
| | | }else{ |
| | | map.put("hidden3Switch",true); |
| | | } |
| | | String result_11 = (String)map.get("result_11"); |
| | | if("0".equals(result_11)){ |
| | | map.put("hidden4Switch",false); |
| | | }else{ |
| | | map.put("hidden4Switch",true); |
| | | } |
| | | String result_12 = (String)map.get("result_12"); |
| | | if("0".equals(result_12)){ |
| | | map.put("hidden5Switch",false); |
| | | }else{ |
| | | map.put("hidden5Switch",true); |
| | | } |
| | | String result_13 = (String)map.get("result_13"); |
| | | if("0".equals(result_13)){ |
| | | map.put("hidden6Switch",false); |
| | | }else{ |
| | | map.put("hidden6Switch",true); |
| | | } |
| | | String result_14 = (String)map.get("result_14"); |
| | | if("0".equals(result_14)){ |
| | | map.put("hidden7Switch",false); |
| | | }else{ |
| | | map.put("hidden7Switch",true); |
| | | } |
| | | } |
| | | return Result.ok(technologyStatusList); |
| | | } |
| | | |
| | |
| | | /**ç¶æï¼1å·²å建ï¼2å·²ä¸åï¼3æªå¼å§ï¼4æ§è¡ä¸ï¼5已宿ï¼6å·²è¿æï¼7å·²ä½åºï¼*/ |
| | | @Excel(name = "ç¶æï¼1å·²å建ï¼2å·²ä¸åï¼3æªå¼å§ï¼4æ§è¡ä¸ï¼5已宿ï¼6å·²è¿æï¼7å·²ä½åºï¼", width = 15) |
| | | @ApiModelProperty(value = "ç¶æï¼1å·²å建ï¼2å·²ä¸åï¼3æªå¼å§ï¼4æ§è¡ä¸ï¼5已宿ï¼6å·²è¿æï¼7å·²ä½åºï¼") |
| | | private String status = CommonConstant.STATUS_1; |
| | | private String status; |
| | | /**å¤ç¨å段1*/ |
| | | @Excel(name = "å¤ç¨å段1", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段1") |
| | |
| | | /** |
| | | * qsw 2023-12-29 |
| | | */ |
| | | @ApiModelProperty(value = "ç±»åï¼1è¢«å¨æ¥ä¿®ï¼2䏻卿¥ä¿®ï¼") |
| | | @ApiModelProperty(value = "ç±»åï¼1è¢«å¨æ¥ä¿®ï¼2䏻卿¥ä¿®ï¼3主å¨ç»´ä¿®ï¼") |
| | | private String type; |
| | | |
| | | /*********************************************** æ© å± å æ®µ ********************************************************/ |
| | |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status = DailyInspectionOrder.STATUS_1; |
| | | private String status; |
| | | /**å¤ç¨å段1*/ |
| | | @Excel(name = "å¤ç¨å段1", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段1") |
| | |
| | | @ApiModelProperty(value = "主é®ID") |
| | | private String id; |
| | | /**维修订åå·*/ |
| | | @Excel(name = "维修订åå·", width = 15) |
| | | @Excel(name = "维修订åå·", width = 15,orderNum = "5") |
| | | @ApiModelProperty(value = "维修订åå·") |
| | | private String num; |
| | | /**设å¤å°è´¦ID*/ |
| | | @Excel(name = "设å¤å°è´¦ID", width = 15) |
| | | @ApiModelProperty(value = "设å¤å°è´¦ID") |
| | | private String equipmentId; |
| | | /**æ
éæ¥ä¿®åID*/ |
| | | @Excel(name = "æ
éæ¥ä¿®åID", width = 15) |
| | | @ApiModelProperty(value = "æ
éæ¥ä¿®åID") |
| | | @Dict(dicCode = "id",dictTable ="mom_eam_equipment_report_repair",dicText = "num") |
| | | private String reportRepairId; |
| | | |
| | | /**é¡¹ç®æ§ç»´ä¿®åID*/ |
| | | @Excel(name = "é¡¹ç®æ§ç»´ä¿®åID", width = 15) |
| | | @ApiModelProperty(value = "é¡¹ç®æ§ç»´ä¿®åID") |
| | | @Dict(dicCode = "id",dictTable ="mom_eam_project_maintenance_order",dicText = "num") |
| | | private String projectMaintenanceOrderId; |
| | | /**çç»ID*/ |
| | | @Excel(name = "çç»ID", width = 15) |
| | | @Excel(name = "ç»´ä¿®çç»", width = 15,dicCode = "id",dictTable ="mom_base_team",dicText = "name",orderNum = "10") |
| | | @ApiModelProperty(value = "çç»ID") |
| | | @Dict(dicCode = "id",dictTable ="mom_base_team",dicText = "name") |
| | | private String teamId; |
| | | /**使ç¨é¨é¨ID*/ |
| | | @Excel(name = "使ç¨é¨é¨ID", width = 15) |
| | | @Excel(name = "使ç¨é¨é¨", width = 15,dicCode = "id",dictTable ="sys_depart",dicText = "depart_name",orderNum ="9" ) |
| | | @ApiModelProperty(value = "使ç¨é¨é¨ID") |
| | | @Dict(dicCode = "id",dictTable ="sys_depart",dicText = "depart_name") |
| | | private String departId; |
| | |
| | | @ApiModelProperty(value = "é¢é²æªæ½") |
| | | private String preventiveMeasure; |
| | | /**æ
éæè¿°*/ |
| | | @Excel(name = "æ
éæè¿°", width = 15) |
| | | @Excel(name = "æ
éæè¿°", width = 15,orderNum = "16") |
| | | @ApiModelProperty(value = "æ
éæè¿°") |
| | | private String faultDescription; |
| | | /**æ
éæ¶é´*/ |
| | | @Excel(name = "æ
éæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "æ
éæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss",orderNum = "13") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ
éæ¶é´") |
| | | private Date faultTime; |
| | | /**æ
éç
§ç*/ |
| | | @Excel(name = "æ
éç
§ç", width = 15) |
| | | @ApiModelProperty(value = "æ
éç
§ç") |
| | | private String photo; |
| | | /**æ¯å¦åæº*/ |
| | | @Excel(name = "æ¯å¦åæº", width = 15) |
| | | @ApiModelProperty(value = "æ¯å¦åæº") |
| | | @Dict(dicCode = "is_stop") |
| | | private String isStop; |
| | | /**计åå¼å§æ¶é´*/ |
| | | @Excel(name = "计åå¼å§æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "计åå¼å§æ¶é´") |
| | | private Date planStartTime; |
| | | /**计åç»ææ¶é´*/ |
| | | @Excel(name = "计åç»ææ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "计åç»ææ¶é´") |
| | | private Date planEndTime; |
| | | /**å®é
å¼å§æ¶é´*/ |
| | | @Excel(name = "å®é
å¼å§æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å®é
å¼å§æ¶é´") |
| | | private Date actualStartTime; |
| | | /**å®é
ç»ææ¶é´*/ |
| | | @Excel(name = "å®é
ç»ææ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å®é
ç»ææ¶é´") |
| | | private Date actualEndTime; |
| | | /**é¢å人ID*/ |
| | | @Excel(name = "é¢å人", width = 15) |
| | | @ApiModelProperty(value = "é¢å人ID") |
| | | @Dict(dicCode = "id",dictTable ="sys_user",dicText = "username") |
| | | private String recipientUserId; |
| | | /**æ¥ä¿®äººID*/ |
| | | @Excel(name = "æ¥ä¿®äºº", width = 15) |
| | | @ApiModelProperty(value = "æ¥ä¿®äººID") |
| | | @Dict(dicCode = "id",dictTable ="sys_user",dicText = "username") |
| | | private String reportUserId; |
| | | /**å·¥æ¶å®é¢*/ |
| | | @Excel(name = "å·¥æ¶å®é¢", width = 15) |
| | | @ApiModelProperty(value = "å·¥æ¶å®é¢") |
| | | private BigDecimal workingHourQuota; |
| | | /**工忧è¡ç¶æï¼æ°æ®åå
¸ï¼repair_order_statusï¼*/ |
| | | @Excel(name = "工忧è¡ç¶æï¼æ°æ®åå
¸ï¼repair_order_statusï¼", width = 15) |
| | | @ApiModelProperty(value = "工忧è¡ç¶æï¼æ°æ®åå
¸ï¼true_repair_statusï¼") |
| | | @Dict(dicCode = "true_repair_status") |
| | | @Excel(name = "ç¶æ", width = 15,orderNum = "3",dicCode = "true_repair_status") |
| | | private String status; |
| | | /**ç»´ä¿æ¹å¼*/ |
| | | @Excel(name = "ç»´ä¿æ¹å¼", width = 15) |
| | | @ApiModelProperty(value = "ç»´ä¿æ¹å¼") |
| | | @Dict(dicCode = "maintenance_method") |
| | | private String maintenanceMethod; |
| | | /**å¤ç¨å段1*/ |
| | | @Excel(name = "å¤ç¨å段1", width = 15) |
| | | @Excel(name = "ç»´ä¿®ç¶æ", width = 15,orderNum = "4",dicCode = "repair_status" ) |
| | | @ApiModelProperty(value = "å¤ç¨å段1") |
| | | @Dict(dicCode = "repair_status") |
| | | private String repairOrderUda1; |
| | | /**å¤ç¨å段2*/ |
| | | @Excel(name = "å¤ç¨å段2", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段2") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date repairOrderUda2; |
| | | /**å¤ç¨å段3*/ |
| | | @Excel(name = "å¤ç¨å段3", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段3") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date repairOrderUda3; |
| | | /**å¤ç¨å段4*/ |
| | | @Excel(name = "å¤ç¨å段4", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段4") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date repairOrderUda4; |
| | | /**å¤ç¨å段5*/ |
| | | @Excel(name = "å¤ç¨å段5", width = 15) |
| | | @ApiModelProperty(value = "å¤ç¨å段5") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @Excel(name = "å·¥åå建æ¶é´", width = 15,orderNum = "8",databaseFormat = "yyyy-MM-dd HH:mm:ss",exportFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | /**ä¿®æ¹äºº*/ |
| | | @ApiModelProperty(value = "ä¿®æ¹äºº") |
| | |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date updateTime; |
| | | /**å é¤ç¶æ(0-æ£å¸¸,1-å·²å é¤)*/ |
| | | @Excel(name = "å é¤ç¶æ(0-æ£å¸¸,1-å·²å é¤)", width = 15) |
| | | @ApiModelProperty(value = "å é¤ç¶æ(0-æ£å¸¸,1-å·²å é¤)") |
| | | @Dict(dicCode = "del_flag") |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**维修工åç±»åï¼æ°æ®åå
¸ï¼repair_order_type,0:æ£å¸¸ç»´ä¿®å·¥åï¼1:ä¿®åæ±æ¥å·¥åï¼*/ |
| | | @Excel(name = "维修工åç±»å", width = 15) |
| | | @ApiModelProperty(value = "维修工åç±»å") |
| | | @Dict(dicCode = "repair_order_type") |
| | | private Integer repairOrderType; |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | /**ä¼ä¸ID*/ |
| | | @Excel(name = "ä¼ä¸ID", width = 15) |
| | | @ApiModelProperty(value = "ä¼ä¸ID") |
| | | private String enterpriseId; |
| | | /**ä¼ä¸ID*/ |
| | | @Excel(name = "责任人ID", width = 15) |
| | | @Dict(dicCode = "id",dictTable ="sys_user",dicText = "realname") |
| | | @ApiModelProperty(value = "责任人ID") |
| | | private String responsibilityId; |
| | | |
| | | |
| | | /*å§å¤åä½*/ |
| | | @Excel(name = "å§å¤åä½", width = 15) |
| | | @ApiModelProperty(value = "å§å¤åä½") |
| | | private String outsourcingUnit; |
| | | |
| | | |
| | | /*å®é
å·¥æ¶*/ |
| | | @Excel(name = "å®é
å·¥æ¶", width = 15) |
| | | @ApiModelProperty(value = "å®é
å·¥æ¶") |
| | | private BigDecimal actualHour; |
| | | |
| | | /**ç´§æ¥ç¨åº¦*/ |
| | | @Excel(name = "ç´§æ¥ç¨åº¦", width = 15) |
| | | @ApiModelProperty(value = "ç´§æ¥ç¨åº¦") |
| | | @Dict(dicCode = "urgency") |
| | | private String urgency; |
| | | |
| | | /**派工æ¹å¼*/ |
| | | @Excel(name = "派工æ¹å¼", width = 15) |
| | | @ApiModelProperty(value = "派工æ¹å¼") |
| | | @Dict(dicCode = "dispatch_method") |
| | | private String dispatchMethod; |
| | | |
| | | /**ä¸å¡ç±»å*/ |
| | | @Excel(name = "ä¸å¡ç±»å", width = 15) |
| | | @ApiModelProperty(value = "ä¸å¡ç±»å") |
| | | @Dict(dicCode = "repair_order_business_type") |
| | | private String businessType; |
| | |
| | | |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "ç»ä¸ç¼ç ", width = 15,orderNum = "6") |
| | | private String equipmentNum; |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "设å¤åç§°", width = 15,orderNum = "7") |
| | | private String equipmentName; |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "设å¤åå·", width = 15,orderNum = "8") |
| | | private String equipmentModel; |
| | | @TableField(exist = false) |
| | | private String reportRepairNum; |
| | |
| | | |
| | | @TableField(exist = false) |
| | | @Dict(dicCode = "specific_equipment") |
| | | @Excel(name = "å
³é®è®¾å¤æ è¯", width = 15,orderNum = "0",dicCode = "specific_equipment") |
| | | private String specificEquipment; |
| | | @TableField(exist = false) |
| | | List<RepairOrderFaultAnalysis> faultAnalysis; |
| | |
| | | @TableField(exist = false) |
| | | private String nums; |
| | | @TableField(exist = false) |
| | | @Excel(name = "æ¥ä¿®äºº", width = 15,orderNum = "14") |
| | | private String errUda2; |
| | | @TableField(exist = false) |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | |
| | | private String errUda3; |
| | | @TableField(exist = false) |
| | | private BigDecimal faultHour; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(exist = false) |
| | | private Date faultStartTime; |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(exist = false) |
| | | private Date faultEndTime; |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(exist = false) |
| | | private Date createStartTime; |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(exist = false) |
| | | private Date createEndTime; |
| | | @TableField(exist = false) |
| | | @Excel(name = "ABCæ è¯", width = 15,orderNum = "1") |
| | | private String equipmentImportanceId; |
| | | |
| | | |
| | | } |
| | |
| | | @Excel(name = "result_7", width = 15) |
| | | @ApiModelProperty(value = "result_7") |
| | | private java.lang.String result_7; |
| | | /**result_8*/ |
| | | @Excel(name = "result_8", width = 15) |
| | | @ApiModelProperty(value = "result_8") |
| | | private java.lang.String result_8; |
| | | /**result_9*/ |
| | | @Excel(name = "result_9", width = 15) |
| | | @ApiModelProperty(value = "result_9") |
| | | private java.lang.String result_9; |
| | | /**result_10*/ |
| | | @Excel(name = "result_10", width = 15) |
| | | @ApiModelProperty(value = "result_10") |
| | | private java.lang.String result_10; |
| | | /**result_11*/ |
| | | @Excel(name = "result_11", width = 15) |
| | | @ApiModelProperty(value = "result_11") |
| | | private java.lang.String result_11; |
| | | /**result_12*/ |
| | | @Excel(name = "result_12", width = 15) |
| | | @ApiModelProperty(value = "result_12") |
| | | private java.lang.String result_12; |
| | | /**result_13*/ |
| | | @Excel(name = "result_13", width = 15) |
| | | @ApiModelProperty(value = "result_13") |
| | | private java.lang.String result_13; |
| | | /**result_14*/ |
| | | @Excel(name = "result_14", width = 15) |
| | | @ApiModelProperty(value = "result_14") |
| | | private java.lang.String result_14; |
| | | /**delFlag*/ |
| | | @Excel(name = "delFlag", width = 15) |
| | | @ApiModelProperty(value = "delFlag") |
| | |
| | | inspectionOrder.setInspectionStandardType("1"); |
| | | inspectionOrder.setEquipmentId(inspectionCycle.getEquipmentId()); |
| | | inspectionOrder.setTeamId(inspectionCycle.getTeamId()); |
| | | inspectionOrder.setStatus("3"); |
| | | inspectionOrderService.save(inspectionOrder); |
| | | |
| | | Equipment equipment = equipmentService.getById(inspectionCycle.getEquipmentId()); |
| | |
| | | inspectionOrder.setInspectionStandardType("1"); |
| | | inspectionOrder.setEquipmentId(inspectionCycle.getEquipmentId()); |
| | | inspectionOrder.setTeamId(inspectionCycle.getTeamId()); |
| | | inspectionOrder.setStatus("3"); |
| | | inspectionOrderService.save(inspectionOrder); |
| | | //ä¿åç¹æ£å·¥ååè¡¨æ°æ® |
| | | List<DailyInspectionStandardDetail> dailyInspectionStandardDetailList = dailyInspectionStandardDetailService.lambdaQuery() |
| | |
| | | import org.jeecg.modules.eam.entity.RepairOrder; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @Param("specificEquipment") String specificEquipment, |
| | | @Param("teamId") String teamId, |
| | | @Param("equipNums") List<String> equipNums, |
| | | @Param("repairOrderUda1") String repairOrderUda1 |
| | | @Param("repairOrderUda1") String repairOrderUda1, |
| | | @Param("faultStartTime") Date faultStartTime, |
| | | @Param("faultEndTime")Date faultEndTime, |
| | | @Param("createStartTime")Date createStartTime, |
| | | @Param("createEndTime")Date createEndTime, |
| | | @Param("equipmentImportanceId")String equipmentImportanceId |
| | | |
| | | |
| | | ); |
| | | |
| | | IPage<Map<String, Object>> getUserTeam(IPage<Map> pageData, @Param("realname") String realname); |
| | |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface StreamMapper extends BaseMapper<Stream> { |
| | | List<Stream> myPage(Page<Stream> page,@Param("areaId") String areaId); |
| | | List<Stream> myPage(Page<Stream> page,@Param("areaId") String areaId,@Param("num") String num); |
| | | |
| | | } |
| | |
| | | t1.write_person as writePerson, |
| | | t1.audit_person as auditPerson, |
| | | t1.approval_person as approvalPerson, |
| | | t1.lose_efficacy_person as loseEfficacyPerson |
| | | t1.lose_efficacy_person as loseEfficacyPerson, |
| | | t1.dis_uda1 as disUda1 |
| | | FROM |
| | | mom_eam_daily_inspection_standard t1 |
| | | LEFT JOIN mom_eam_equipment t2 ON t1.equipment_id = t2.id |
| | |
| | | t1.location, |
| | | t1.photo, |
| | | t1.maintenance_project_id as maintenanceProjectId, |
| | | t5.item_text as maintenanceRole, |
| | | t3.num as maintenanceProjectNum, |
| | | t3.name as maintenanceProjectName, |
| | | t3.standard, |
| | |
| | | LEFT JOIN mom_eam_maintenance_standard t2 ON t1.maintenance_standard_id = t2.id |
| | | LEFT JOIN mom_eam_maintenance_project t3 ON t1.maintenance_project_id = t3.id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'maintenance_project_method' ) t4 ON t4.item_value = t3.maintenance_method |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'maintenance_role' ) t5 ON t5.item_value = t1.maintenance_role |
| | | where t1.del_flag = '0' and t2.del_flag = '0' and t3.del_flag = '0' and t2.type = 'daily' |
| | | <if test="maintenanceStandardId != null and maintenanceStandardId != ''"> |
| | | and t2.id = #{maintenanceStandardId} |
| | |
| | | t1.plan_end_time as planEndTime, |
| | | t1.actual_start_time as actualStartTime, |
| | | t1.actual_end_time as actualEndTime, |
| | | t8.realname as maintenanceUserName, |
| | | t1.maintenance_user_id as maintenanceUserId, |
| | | t9.item_text as assignModeName, |
| | | t1.create_by as createBy, |
| | | t1.create_time as createTime, |
| | |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'daily_maintenance_order_status' ) t5 on t5.item_value = t1.status |
| | | left join sys_depart t6 on t3.use_id = t6.id |
| | | left join mom_base_team t7 on t7.id = t3.team_id |
| | | left join sys_user t8 on t1.maintenance_user_id = t8.id |
| | | left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'assign_mode' ) t9 on t9.item_value = t2.assign_mode |
| | | left join (SELECT * FROM v_sys_dict WHERE dict_code = 'maintenance_type') t10 on t10.item_value = t4.maintenance_type |
| | | left join sys_file_name t12 on t1.maintenance_order_uda3 = t12.id |
| | |
| | | t1.plan_end_time as planEndTime, |
| | | t1.actual_start_time as actualStartTime, |
| | | t1.actual_end_time as actualEndTime, |
| | | t8.realname as maintenanceUserName, |
| | | t1.maintenance_user_id as maintenanceUserId, |
| | | t9.item_text as assignModeName, |
| | | t1.create_by as createBy, |
| | | t1.create_time as createTime, |
| | |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'daily_maintenance_order_status' ) t5 on t5.item_value = t1.status |
| | | left join sys_depart t6 on t3.use_id = t6.id |
| | | left join mom_base_team t7 on t7.id = t3.team_id |
| | | left join sys_user t8 on t1.maintenance_user_id = t8.id |
| | | left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'assign_mode' ) t9 on t9.item_value = t2.assign_mode |
| | | left join (SELECT * FROM v_sys_dict WHERE dict_code = 'maintenance_type') t10 on t10.item_value = t4.maintenance_type |
| | | left join (SELECT * FROM v_sys_dict WHERE dict_code = 'check_status') t12 on t12.item_value = t1.check_status |
| | |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EquipmentReportRepairMapper"> |
| | | <select id="getReportRepairList" parameterType="Map" resultType="Map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.err_uda1 errUda1, |
| | | t1.err_uda2 errUda2, |
| | | t1.num num, |
| | | t1.equipment_id equipmentId, |
| | | t1.fault_reason faultReason, |
| | | t1.fault_description faultDescription, |
| | | t1.photo photo, |
| | | t1.is_stop isStop, |
| | | t1.approval approval, |
| | | t1.fault_time faultTime, |
| | | t1.source source, |
| | | t1.type, |
| | | t1.source_id sourceId, |
| | | t1.urgency urgency, |
| | | t1.is_create_order isCreateOrder, |
| | | t1.use_depart_id useDepartId, |
| | | t1.remark remark, |
| | | t1.status status, |
| | | t1.create_by createBy, |
| | | t1.create_time createTime, |
| | | t1.update_by updateBy, |
| | | t1.update_time updateTime, |
| | | t1.accept_time acceptTime, |
| | | t1.fault_hour faultHour, |
| | | t2.num equipmentNum, |
| | | t2.name equipmentName, |
| | | t2.model equipmentModel, |
| | | t2.team_id teamId, |
| | | t2.specification equipmentSpecification, |
| | | t3.depart_name departName, |
| | | t4.item_text urgencyName, |
| | | t5.item_text statusName, |
| | | t6.item_text isStopName, |
| | | t7.item_text errUda1_dictText |
| | | t1.id, |
| | | t1.err_uda1 errUda1, |
| | | t1.err_uda2 errUda2, |
| | | t1.num num, |
| | | t1.equipment_id equipmentId, |
| | | t1.fault_reason faultReason, |
| | | t1.fault_description faultDescription, |
| | | t1.photo photo, |
| | | t1.is_stop isStop, |
| | | t1.approval approval, |
| | | t1.fault_time faultTime, |
| | | t1.type, |
| | | t1.source source, |
| | | t1.source_id sourceId, |
| | | t1.urgency urgency, |
| | | t1.is_create_order isCreateOrder, |
| | | t1.use_depart_id useDepartId, |
| | | t1.remark remark, |
| | | t1.status status, |
| | | t1.create_by createBy, |
| | | t1.create_time createTime, |
| | | t1.update_by updateBy, |
| | | t1.update_time updateTime, |
| | | t1.accept_time acceptTime, |
| | | t1.fault_hour faultHour, |
| | | t2.num equipmentNum, |
| | | t2.name equipmentName, |
| | | t2.model equipmentModel, |
| | | t2.specific_equipment specificEquipment, |
| | | t2.team_id teamId, |
| | | t2.specification equipmentSpecification, |
| | | t3.depart_name departName, |
| | | t4.item_text urgencyName, |
| | | t5.item_text statusName, |
| | | t6.item_text isStopName, |
| | | t7.item_text errUda1_dictText |
| | | FROM |
| | | mom_eam_equipment_report_repair t1 |
| | | left join mom_eam_equipment t2 on t1.equipment_id = t2.id |
| | |
| | | <if test="params.model != null and params.model != ''"> |
| | | and t2.model like concat('%',#{params.model},'%') |
| | | </if> |
| | | <if test="params.specificEquipment != null and params.specificEquipment != ''"> |
| | | and t2.specific_equipment = #{params.specificEquipment} |
| | | </if> |
| | | <if test="params.specification != null and params.specification != ''"> |
| | | and t2.specification like concat('%',#{params.specification},'%') |
| | | </if> |
| | |
| | | left join sys_depart t4 on t2.use_id = t4.id |
| | | left join mom_base_team t5 on t2.team_id = t5.id |
| | | left join (select * from v_sys_dict where dict_code = 'assign_mode') t6 on t1.assign_mode = t6.item_value |
| | | where t1.del_flag = 0 and t1.type = #{params.type} |
| | | where t1.del_flag = 0 and t1.type = #{params.type} and t2.technology_status in ('qualified','limitedUse') |
| | | <if test="params.useId != null and params.useId != ''"> |
| | | and t2.use_id = #{params.useId} |
| | | </if> |
| | |
| | | left join sys_depart t4 on t2.use_id = t4.id |
| | | left join mom_base_team t5 on t2.team_id = t5.id |
| | | left join (select * from v_sys_dict where dict_code = 'assign_mode') t6 on t1.assign_mode = t6.item_value |
| | | where t1.del_flag = 0 and t1.type = #{params.type} and t2.equipment_importance_id in ('A','B','C') |
| | | where t1.del_flag = 0 and t1.type = #{params.type} and t2.equipment_importance_id in ('A','B','C') and t2.technology_status in ('qualified','limitedUse') |
| | | <if test="params.useId != null and params.useId != ''"> |
| | | and t2.use_id = #{params.useId} |
| | | </if> |
| | |
| | | t1.preventive_measure preventiveMeasure, |
| | | t1.fault_remove faultRemove, |
| | | t1.fault_description faultDescription, |
| | | t1.fault_time faultTime, |
| | | t1.photo photo, |
| | | t1.is_stop isStop, |
| | | t1.maintenance_method maintenanceMethod, |
| | |
| | | report.accept_time acceptTime, |
| | | report.err_uda3 errUda3, |
| | | report.fault_hour faultHour, |
| | | report.fault_time faultTime, |
| | | t2.num equipmentNum, |
| | | t2.name equipmentName, |
| | | t2.model equipmentModel, |
| | | t2.specific_equipment specificEquipment, |
| | | t2.equipment_importance_id equipmentImportanceId, |
| | | t3.depart_name departName, |
| | | t4.name outsourcingUnitName, |
| | | t5.realname responsibilityName, |
| | |
| | | <if test="specificEquipment != null and specificEquipment != ''"> |
| | | and t2.specific_equipment = #{specificEquipment} |
| | | </if> |
| | | <if test="equipmentImportanceId != null and equipmentImportanceId != ''"> |
| | | and t2. equipment_importance_id = #{equipmentImportanceId} |
| | | </if> |
| | | <if test="teamId != null and teamId != ''"> |
| | | and t1.team_id = #{teamId} |
| | | </if> |
| | | <if test="repairOrderType != null and repairOrderType != ''"> |
| | | and t1.repair_order_type = #{repairOrderType} |
| | | and t1.repair_order_type = #{repairOrderType} |
| | | </if> |
| | | <if test="faultStartTime != null"> |
| | | and report.fault_time >= #{faultStartTime} |
| | | </if> |
| | | <if test="faultEndTime != null"> |
| | | and report.fault_time <= #{faultEndTime} |
| | | </if> |
| | | <if test="createStartTime != null"> |
| | | and t1.create_time >= #{createStartTime} |
| | | </if> |
| | | <if test="createEndTime != null"> |
| | | and t1.create_time <= #{createEndTime} |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | |
| | | from mom_eam_stream t1 |
| | | left join sys_user t2 on t2.id = t1.create_by |
| | | where 1=1 |
| | | <if test="num != null and num != ''"> |
| | | and t1.num like concat('%',#{num},'%') |
| | | </if> |
| | | <choose> |
| | | <when test="areaId != null and areaId != ''"> |
| | | and t2.area_id = #{areaId} |
| | |
| | | ISNULL( t1.result_5, 0 ) AS result_5, |
| | | ISNULL( t1.result_6, 0 ) AS result_6, |
| | | ISNULL( t1.result_7, 0 ) AS result_7, |
| | | ISNULL( t1.result_8, 0 ) AS result_8, |
| | | ISNULL( t1.result_9, 0 ) AS result_9, |
| | | ISNULL( t1.result_10, 0 ) AS result_10, |
| | | ISNULL( t1.result_11, 0 ) AS result_11, |
| | | ISNULL( t1.result_12, 0 ) AS result_12, |
| | | ISNULL( t1.result_13, 0 ) AS result_13, |
| | | ISNULL( t1.result_14, 0 ) AS result_14, |
| | | t1.receipts, |
| | | t2.num AS receiptsNum, |
| | | t3.item_text AS receiptsName, |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | //import org.jeecg.modules.system.entity.SysUploadRela; |
| | | //import org.jeecg.modules.system.service.IUploadRelaService; |
| | | import org.jeecg.modules.eam.vo.RepairReportExportVo; |
| | | import org.jeecg.modules.system.entity.SysRole; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.entity.SysUserRole; |
| | | import org.jeecg.modules.system.mapper.SysRoleMapper; |
| | | import org.jeecg.modules.system.mapper.SysUserMapper; |
| | | import org.jeecg.modules.system.mapper.SysUserRoleMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | private ISysBaseAPI sysBaseApi; |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | @Autowired |
| | | private SysUserRoleMapper sysUserRoleMapper; |
| | | @Autowired |
| | | private SysRoleMapper sysRoleMapper; |
| | | /** |
| | | * æ
éæ¥ä¿®æ·»å |
| | | * |
| | |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | if(StringUtils.isNotBlank((String)params.get("userId"))){ |
| | | SysUser sysUser = userMapper.selectById((String)params.get("userId")); |
| | | params.put("teamId",sysUser.getTeamId()); |
| | | SysRole sysRole = sysRoleMapper.selectOne(new QueryWrapper<SysRole>().eq("role_code","AcceptAllRepair")); |
| | | if(ObjectUtils.isNull(sysRole)){ |
| | | params.put("teamId",sysUser.getTeamId()); |
| | | }else { |
| | | SysUserRole sysUserRole = sysUserRoleMapper.selectOne(new QueryWrapper<SysUserRole>().eq("user_id",sysUser.getId()).eq("role_id",sysRole.getId())); |
| | | if(ObjectUtils.isNull(sysUserRole)){ |
| | | params.put("teamId",sysUser.getTeamId()); |
| | | } |
| | | } |
| | | } |
| | | List<String> equipNums = new ArrayList<>(); |
| | | if(StringUtils.isNotBlank((String)params.get("nums"))){ |
| | |
| | | if(StringUtils.isNotBlank(repairOrder.getNums())){ |
| | | equipNums = Arrays.asList(repairOrder.getNums().trim().split("\n")).stream().filter(num->!num.equals("\n")).collect(Collectors.toList()); |
| | | } |
| | | return page.setRecords(baseMapper.getRepairOrderList(page,repairOrder.getId(),repairOrder.getNum(),repairOrder.getEquipmentNum(),repairOrder.getEquipmentName(),repairOrder.getStatus(),repairOrder.getRepairOrderType(),repairOrder.getEquipmentCategoryId(),repairOrder.getFactoryModelId(),repairOrder.getSpecificEquipment(),repairOrder.getTeamId(),equipNums,repairOrder.getRepairOrderUda1())); |
| | | return page.setRecords(baseMapper.getRepairOrderList(page, |
| | | repairOrder.getId(), |
| | | repairOrder.getNum(), |
| | | repairOrder.getEquipmentNum(), |
| | | repairOrder.getEquipmentName(), |
| | | repairOrder.getStatus(), |
| | | repairOrder.getRepairOrderType(), |
| | | repairOrder.getEquipmentCategoryId(), |
| | | repairOrder.getFactoryModelId(), |
| | | repairOrder.getSpecificEquipment(), |
| | | repairOrder.getTeamId(), |
| | | equipNums, |
| | | repairOrder.getRepairOrderUda1(), |
| | | repairOrder.getFaultStartTime(), |
| | | repairOrder.getFaultEndTime(), |
| | | repairOrder.getCreateStartTime(), |
| | | repairOrder.getCreateEndTime(), |
| | | repairOrder.getEquipmentImportanceId())); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public Page<Stream> myPage(Page<Stream> page, Stream stream) { |
| | | return page.setRecords(baseMapper.myPage(page,stream.getAreaId())); |
| | | return page.setRecords(baseMapper.myPage(page,stream.getAreaId(),stream.getNum())); |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO [dbo].[sys_permission] ([id], [parent_id], [name], [url], [component], [component_name], [redirect], [menu_type], [perms], [perms_type], [sort_no], [always_show], [icon], [is_route], [is_leaf], [keep_alive], [hidden], [hide_tab], [description], [create_by], [create_time], [update_by], [update_time], [del_flag], [rule_flag], [status], [internal_or_external]) VALUES (N'1745311913753559042', N'1638420030147723265', N'è®¡éæ£æµè®¾å¤', N'/eam/EquipmentListOfMetrological', N'eam/EquipmentListOfMetrological', NULL, NULL, 1, NULL, N'1', 10.1, 0, NULL, 1, 1, 0, 0, 0, NULL, N'admin', '2024-01-11 13:09:21.0000000', N'admin', '2024-01-11 13:09:57.1730000', 0, NULL, N'1', 0); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745294580473511937', N'1695985281980776449', N'è®¡éæ£æµè®¾å¤', N'metrological', '', 15, 1, N'admin', '2024-01-11 12:00:28.6580000', NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_role] ([id], [role_name], [role_code], [description], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745327833121144834', N'ææä¿ä¿®åæ¥æ¶äºº', N'AcceptAllRepair', NULL, N'admin', '2024-01-11 14:12:36.6980000', NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict] ([id], [dict_name], [dict_code], [description], [del_flag], [create_by], [create_time], [update_by], [update_time], [type]) VALUES (N'1745365425845702657', N'ç©æç±»å', N'material_type', '', 0, N'admin', '2024-01-11 16:41:59.4940000', NULL, NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745365536852152322', N'1745365425845702657', N'å 工件', N'needPart', '', 1, 1, N'admin', '2024-01-11 16:42:25.0000000', N'admin', '2024-01-11 16:45:00.3490000'); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745365875504451586', N'1745365425845702657', N'éè´ä»¶', N'needSpare', '', 1, 1, N'admin', '2024-01-11 16:43:46.0000000', N'admin', '2024-01-11 16:44:24.5800000'); |
| | | |
| | | INSERT INTO [dbo].[sys_role] ([id], [role_name], [role_code], [description], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745624015416393730', N'设å¤è´¨ééæ£ç¡®è®¤æ¶æ¯æ¥æ¶äºº', N'QuanlityConfirm', NULL, N'admin', '2024-01-12 09:49:32.0660000', NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_role] ([id], [role_name], [role_code], [description], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745625163405787138', N'设å¤äºæ
ç»è®°æ¶æ¯æ¥æ¶äºº', N'FaultInfo', NULL, N'admin', '2024-01-12 09:54:05.7710000', NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745624699176026113', N'1724240975967690753', N'è´¨ééæ£ç¡®è®¤', N'QuanlityConfirm', '', 10, 1, N'admin', '2024-01-12 09:52:15.0830000', NULL, NULL); |
| | | |
| | | INSERT INTO [dbo].[sys_dict_item] ([id], [dict_id], [item_text], [item_value], [description], [sort_order], [status], [create_by], [create_time], [update_by], [update_time]) VALUES (N'1745624959524864001', N'1724240975967690753', N'设å¤äºæ
ç»è®°ç¡®è®¤', N'FaultInfo', '', 11, 1, N'admin', '2024-01-12 09:53:17.1640000', NULL, NULL); |