| | |
| | | @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); |
| | | } |
| | | |