| | |
| | | String orgType = calibrationOrderService.findOrgType(productionCode); |
| | | if(ORG_TYPE_2.equals(orgType)){ |
| | | Area area = areaService.getOne(new LambdaQueryWrapper<Area>().eq(Area::getNum, productionCode).eq(Area::getType, "1").eq(Area::getDelFlag, 0)); |
| | | list = calibrationOrderService.getReportRepairEquipmentList(area.getId(),""); |
| | | list = calibrationOrderService.getThisMonthMaintenanceList(area.getId(),""); |
| | | }else if(ORG_TYPE_3.equals(orgType)){ |
| | | Area area = areaService.getOne(new LambdaQueryWrapper<Area>().eq(Area::getNum, productionCode).eq(Area::getType, "3").eq(Area::getDelFlag, 0)); |
| | | list = calibrationOrderService.getReportRepairEquipmentList("",area.getId()); |
| | | list = calibrationOrderService.getThisMonthMaintenanceList("",area.getId()); |
| | | } |
| | | } |
| | | }else if(USER_TYPE_3.equals(userType)){ |
| | | String code = calibrationOrderService.findProductionCode(user.getId()); |
| | | if(StringUtils.isBlank(productionCode)){ |
| | | Area area = areaService.getOne(new LambdaQueryWrapper<Area>().eq(Area::getNum, code).eq(Area::getType, "1").eq(Area::getDelFlag, 0)); |
| | | list = calibrationOrderService.getReportRepairEquipmentList(area.getId(),""); |
| | | list = calibrationOrderService.getThisMonthMaintenanceList(area.getId(),""); |
| | | }else{ |
| | | Area area = areaService.getOne(new LambdaQueryWrapper<Area>().eq(Area::getNum, productionCode).eq(Area::getType, "3").eq(Area::getDelFlag, 0)); |
| | | list = calibrationOrderService.getReportRepairEquipmentList("",area.getId()); |
| | | list = calibrationOrderService.getThisMonthMaintenanceList("",area.getId()); |
| | | } |
| | | } |
| | | return Result.ok(list); |
| | |
| | | * qsw 2024-3-15 |
| | | */ |
| | | @GetMapping("getTwoMaintenancePlanList") |
| | | public Result<?> getTwoMaintenancePlanList() { |
| | | List<Map<String, Object>> twoMaintenancePlanList = calibrationOrderService.getTwoMaintenancePlanList(); |
| | | return Result.ok(); |
| | | public Result<?> getTwoMaintenancePlanList(String productionCode) { |
| | | List<Map<String, Object>> twoMaintenancePlanList = calibrationOrderService.getTwoMaintenancePlanList(productionCode); |
| | | return Result.ok(twoMaintenancePlanList); |
| | | } |
| | | |
| | | } |