| | |
| | | apiData.setDjsj(sysData.getRegisterTime()); |
| | | |
| | | //粮食品种 |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety().substring(0,3)); |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | if(StringUtils.isEmpty(mappingCode)){ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety().substring(0, 3)); |
| | | } |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //粮食等级 |
| | |
| | | |
| | | int idNum = Integer.valueOf(sysData.getId().substring(12))*100 + 10001; |
| | | for (Fz40InoutRecordItem fz40InoutRecordItem : listInoutRecordItem) { |
| | | if(fz40InoutRecordItem.getSettleWeight() <= 0){ |
| | | continue; |
| | | } |
| | | apiData.setCkywdh(Constant.INOUT_TYPE_15 + sysData.getId().substring(4,10) + String.valueOf(idNum).substring(1)); |
| | | apiData.setMz(fz40InoutRecordItem.getFullWeight()); |
| | | apiData.setPz(fz40InoutRecordItem.getEmptyWeight()); |