From 3a740faa161ec976986c0735ba18837f570a525f Mon Sep 17 00:00:00 2001 From: hyingbo <1363390067@qq.com> Date: 星期二, 27 五月 2025 19:04:07 +0800 Subject: [PATCH] 消息类型拆分并按类型推送至不同角色 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java index 02cbbb6..3a7a1cc 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java @@ -93,6 +93,10 @@ @Lazy private IDailyInspectionStandardService dailyInspectionStandardService; + @Autowired + @Lazy + private IAreaService areaService; + // @Autowired // private IUploadRelaService uploadRelaService; // @@ -710,6 +714,12 @@ String equipmentNum = (String)params.get("num"); String dataTime = (String)params.get("dataTime"); Equipment equipment = equipmentService.getOne(new LambdaQueryWrapper<Equipment>().eq(Equipment::getNum, equipmentNum).eq(Equipment::getDelFlag, 0)); + if(equipment == null){ + return Result.error("璁惧缁熶竴缂栧彿涓嶅瓨鍦紒"); + } + String workCenterId = equipment.getWorkCenterId(); + Area area = areaService.getById(workCenterId); + List<Map<String, Object>> list1 = this.getInspectionStandars(equipmentNum,"day",dataTime); List<Map<String, Object>> list2 = this.getUserQianzi(equipmentNum,"day",dataTime); @@ -720,6 +730,10 @@ mapResult.put("equipentNum",equipment.getNum()); mapResult.put("equipentName",equipment.getName()); + mapResult.put("equipmentModel",equipment.getModel()); + if(area != null){ + mapResult.put("workCenterName",area.getName()); + } mapResult.put("list1",list1); mapResult.put("list2",list2); mapResult.put("list3",list3); @@ -737,7 +751,6 @@ String name = (String)map.get("name"); String detectionStandard = (String)map.get("detectionStandard"); List<Map<String, Object>> record = inspectionOrderService.findDayInspectionStandardProject(equipmentNum,name, detectionStandard,dataTime); - List<InspectionResultVo> listS = new ArrayList<>(); for (Map<String, Object> r : record) { -- Gitblit v1.9.3