| | |
| | | * @throws Exception |
| | | */ |
| | | private String getJsonData(String inteId, Object data, String code) { |
| | | |
| | | |
| | | //具体根据接口进行封装 |
| | | if (SH2023Constant.SH_2023_API_CODE_1101.equals(inteId)) { |
| | | SH2023Api1101 api1101; |
| | |
| | | api1211 = new SH2023Api1211(); |
| | | BeanUtils.copyProperties(apiData, api1211); |
| | | |
| | | //TODO 货位代码 粮食性质代码 来粮代码 |
| | | |
| | | api1211.setZglkdm(api1211.getKqdm()); |
| | | api1211.setBjw(ShAreaBjw.getBjw(code)); |
| | | api1211.setPch(apiData.getHwdm() + DateFormatUtils.format(apiData.getYwrq(), "yyyyMM")); |
| | | if(StringUtils.isEmpty(api1211.getLldm())){ |
| | | api1211.setLldm("无"); |
| | | } |
| | | list.add(api1211); |
| | | } |
| | | return JSON.toJSONString(list); |
| | |
| | | for (Api1401 apiData : api1401List) { |
| | | api1401 = new SH2023Api1401(); |
| | | BeanUtils.copyProperties(apiData, api1401); |
| | | api1401.setBjw(ShAreaBjw.getBjw(code)); |
| | | list.add(api1401); |
| | | } |
| | | return JSON.toJSONString(list); |