| | |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | |
| | | //粮食品种 |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz40DepotStore.getFoodVariety()); |
| | | if(StringUtils.isEmpty(mappingCode)){ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz40DepotStore.getFoodVariety().substring(0, 3)); |
| | | } |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz40DepotStore.getFoodVariety().substring(0, 3)); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //粮食性质 |
| | |
| | | if (StringUtils.isEmpty(fz40DepotStore.getLqgsdwdm())) { |
| | | apiData.setLqgsdwdm(api1102.getDwdm()); |
| | | } else { |
| | | apiData.setLqxzqhdm(fz40DepotStore.getLqgsdwdm()); |
| | | apiData.setLqgsdwdm(fz40DepotStore.getLqgsdwdm()); |
| | | } |
| | | //粮权行政区划代码 |
| | | apiData.setLqxzqhdm(api1102.getXzqhdm()); |
| | |
| | | apiData.setRcsj(fz40DepotStore.getStoreDate()); |
| | | //封仓日期 |
| | | if ("3".equals(apiData.getHwzt()) || "4".equals(apiData.getHwzt())) { |
| | | apiData.setFcrq(DateUtils.addDays(fz40DepotStore.getStoreDate(), 10)); |
| | | if(null == fz40DepotStore.getFullDate()){ |
| | | fz40DepotStore.setFullDate(DateUtils.addDays(fz40DepotStore.getStoreDate(), 30)); |
| | | } |
| | | apiData.setFcrq(fz40DepotStore.getFullDate()); |
| | | } |
| | | |
| | | if ("1".equals(apiData.getHwzt())) { |