| | |
| | | for (Fz40DrugLogDtl dtl : dtls) { |
| | | api9201Dtl = new Gd2022Api1023Dtl(); |
| | | BeanUtils.copyProperties(dtl, api9201Dtl); |
| | | api1105 = commonService.getApi1105Cache(data.getDepotId()); |
| | | api1105 = commonService.getApi1105Cache(dtl.getDepotId()); |
| | | if (null != api1105) { |
| | | api9201Dtl.setCfmc(api1105.getHwmc()); |
| | | api9201Dtl.setCfdm(api1105.getHwdm().substring(0, 25)); |
| | | } |
| | | |
| | | //粮食品种 |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, data.getFoodVariety()); |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, dtl.getFoodVariety()); |
| | | api9201Dtl.setLspzdm(mappingCode); |
| | | api9201Dtl.setLsxzdm(data.getFoodType()); |
| | | api9201Dtl.setLsdjdm(data.getFoodLevel()); |