| | |
| | | gdApi1023.setDwdm(kqdm.substring(0, 18)); |
| | | gdApi1023.setYjmc(data.getDrugName()); |
| | | gdApi1023.setYjlx(data.getDrugType()); |
| | | gdApi1023.setLqrq(data.getLqsj()); |
| | | gdApi1023.setZhgxsj(data.getUpdateTime()); |
| | | |
| | | //储粮粮情明细表 |
| | |
| | | for (Fz40DrugLogPeople people : peoples) { |
| | | gdApi1023People = new GdApi1023People(); |
| | | BeanUtils.copyProperties(people, gdApi1023People); |
| | | gdApi1023People.setXm(people.getMx()); |
| | | peopleList.add(gdApi1023People); |
| | | } |
| | | gdApi1023.setPeoples(peopleList); |
| | | } |
| | | //持久化保存,单独存入非国标接口表 |
| | | infoData = new ApiInfoData(); |
| | | infoData.setId(ContextUtil.getUUID()); |
| | | |
| | | infoData.setKqdm(kqdm); |
| | | infoData.setInteType(Constant.API_CATEGORY_13); |
| | | infoData.setInteId(ApiCodeConstant.API_1023); |
| | |
| | | if (null == apiInfoList || apiInfoList.isEmpty()) { |
| | | gdApi1023.setCzbz(Constant.CZBZ_I); |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | infoData.setId(ContextUtil.getUUID()); |
| | | } else { |
| | | gdApi1023.setCzbz(apiInfoList.get(0).getCzbz()); |
| | | infoData.setCzbz(apiInfoList.get(0).getCzbz()); |
| | | infoData.setId(apiInfoList.get(0).getId()); |
| | | } |
| | | |
| | | infoData.setData(JSON.toJSONString(gdApi1023)); |