From 9de1d40d3a61ce166c63a2c07d02d89bf8bdabd0 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期五, 07 三月 2025 16:16:18 +0800 Subject: [PATCH] art: 选择设备查询逻辑修改, 点检工单新增时产线逻辑修改 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/TechnologyStatusController.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/TechnologyStatusController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/TechnologyStatusController.java index c99d442..d9a1b64 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/TechnologyStatusController.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/TechnologyStatusController.java @@ -191,6 +191,50 @@ @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); } -- Gitblit v1.9.3