| | |
| | | // private IUploadService uploadService; |
| | | |
| | | private ISysBaseAPI sysBaseApi; |
| | | |
| | | @Autowired |
| | | private IAreaService areaService; |
| | | /** |
| | | * 分页列表查询 |
| | | * |
| | |
| | | calibrationOrderService.updateById(calibrationOrder); |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |
| | | /** |
| | | *首页技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @GetMapping("getEquipmentTechnologyStatusList") |
| | | public Result<?> getEquipmentTechnologyStatusList(@Param("factoryNum") String factoryNum) { |
| | | List<Area> areaList = areaService.lambdaQuery().eq(Area::getNum, factoryNum).eq(Area::getDelFlag, 0).list(); |
| | | List<Map<String, Object>> list; |
| | | if(areaList.size()>0){ |
| | | list = calibrationOrderService.getEquipmentTechnologyStatusList(areaList.get(0).getId()); |
| | | }else{ |
| | | list = null; |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页设备报修情况统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @GetMapping("getReportRepairEquipmentList") |
| | | public Result<?> getReportRepairEquipmentList(@Param("factoryNum") String factoryNum) { |
| | | List<Area> areaList = areaService.lambdaQuery().eq(Area::getNum, factoryNum).eq(Area::getDelFlag, 0).list(); |
| | | List<Map<String, Object>> list; |
| | | if(areaList.size()>0){ |
| | | list = calibrationOrderService.getReportRepairEquipmentList(areaList.get(0).getId()); |
| | | }else{ |
| | | list = null; |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页本月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getThisMonthMaintenanceList") |
| | | public Result<?> getThisMonthMaintenanceList(@Param("factoryNum") String factoryNum) { |
| | | List<Area> areaList = areaService.lambdaQuery().eq(Area::getNum, factoryNum).eq(Area::getDelFlag, 0).list(); |
| | | List<Map<String, Object>> list; |
| | | if(areaList.size()>0){ |
| | | list = calibrationOrderService.getThisMonthMaintenanceList(areaList.get(0).getId()); |
| | | }else{ |
| | | list = null; |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getNextMonthMaintenanceList") |
| | | public Result<?> getNextMonthMaintenanceList(@Param("factoryNum") String factoryNum) { |
| | | List<Area> areaList = areaService.lambdaQuery().eq(Area::getNum, factoryNum).eq(Area::getDelFlag, 0).list(); |
| | | List<Map<String, Object>> list; |
| | | if(areaList.size()>0){ |
| | | list = calibrationOrderService.getNextMonthMaintenanceList(areaList.get(0).getId()); |
| | | }else{ |
| | | list = null; |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页下下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getNextNextMonthMaintenanceList") |
| | | public Result<?> getNextNextMonthMaintenanceList(@Param("factoryNum") String factoryNum) { |
| | | List<Area> areaList = areaService.lambdaQuery().eq(Area::getNum, factoryNum).eq(Area::getDelFlag, 0).list(); |
| | | List<Map<String, Object>> list; |
| | | if(areaList.size()>0){ |
| | | list = calibrationOrderService.getNextNextMonthMaintenanceList(areaList.get(0).getId()); |
| | | }else{ |
| | | list = null; |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |