| | |
| | | |
| | | org.springframework.data.domain.Page<Api9201> japPage = api9201Rep.findAll(specification, pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | for (Api9201 api9201 : japPage.getContent()) { |
| | | api9201.setDtls(JSONArray.parseArray(api9201.getDtl(), Gd2022Api1023Dtl.class)); |
| | | api9201.setPeoples(JSONArray.parseArray(api9201.getPeople(), Gd2022Api1023People.class)); |
| | | api9201.setWays(JSONArray.parseArray(api9201.getWay(), Gd2022Api1023Way.class)); |
| | | } |
| | | page.setEntities(japPage.getContent()); |
| | | } |
| | | |
| | |
| | | result += responseDto.toString(); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(d.getCzbz())) { |
| | | api9201Rep.updateStatus(data.getDwdm(), Constant.CZBZ_U); |
| | | api9201Rep.updateStatus(data.getTbrq(), Constant.CZBZ_U); |
| | | } |
| | | } |
| | | } |
| | |
| | | for (Api9201 data : items) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | //更新状态 |
| | | api9201Rep.updateStatus(data.getDwdm(), Constant.CZBZ_U); |
| | | api9201Rep.updateStatus(data.getTbrq(), Constant.CZBZ_U); |
| | | } |
| | | } |
| | | } |