| | |
| | | list.add(api1401); |
| | | } |
| | | return JSON.toJSONString(list); |
| | | }else if (SH2023Constant.SH_2023_API_CODE_1401.equals(inteId)) { |
| | | SH2023Api1401 api1401; |
| | | } else if (SH2023Constant.SH_2023_API_CODE_1403.equals(inteId)) { |
| | | SH2023Api1403 api1403; |
| | | //最后转换为json |
| | | List<SH2023Api1401> list = new ArrayList<>(); |
| | | List<SH2023Api1403> list = new ArrayList<>(); |
| | | //把data转化成list集合 |
| | | List<Api1401> api1401List = castList(data, Api1401.class); |
| | | for (Api1401 apiData : api1401List) { |
| | | api1401 = new SH2023Api1401(); |
| | | BeanUtils.copyProperties(apiData, api1401); |
| | | api1401.setBjw(ShAreaBjw.getBjw(code)); |
| | | list.add(api1401); |
| | | List<Api1403> api1403List = castList(data, Api1403.class); |
| | | for (Api1403 apiData : api1403List) { |
| | | api1403 = new SH2023Api1403(); |
| | | BeanUtils.copyProperties(apiData, api1403); |
| | | api1403.setJhzxdw(apiData.getJhxddw()); |
| | | api1403.setJhzxdwmc(apiData.getJhxddwmc()); |
| | | list.add(api1403); |
| | | } |
| | | return JSON.toJSONString(list); |
| | | } else if (SH2023Constant.SH_2023_API_CODE_1404.equals(inteId)) { |
| | | SH2023Api1404 api1404; |
| | | //最后转换为json |
| | | List<SH2023Api1404> list = new ArrayList<>(); |
| | | //把data转化成list集合 |
| | | List<Api1404> api1404List = castList(data, Api1404.class); |
| | | for (Api1404 apiData : api1404List) { |
| | | api1404 = new SH2023Api1404(); |
| | | BeanUtils.copyProperties(apiData, api1404); |
| | | //TODO 明细状态 |
| | | |
| | | list.add(api1404); |
| | | } |
| | | return JSON.toJSONString(list); |
| | | } else { |