| | |
| | | if(StringUtils.isEmpty(sysData.getUserId()) || sysData.getUserId().length() != 18){ |
| | | sysData.setUserId("410183199003187055"); |
| | | } |
| | | apiData.setSfzh(sysData.getUserId()); |
| | | |
| | | //获取通知单信息,查询合同号和计划明细号 |
| | | listInoutNotice = fzzySyncNoticeInRep.listInoutNoticeInById(sysData.getNoticeId()); |
| | |
| | | api1404List = api1404Rep.getDataByBizIdAndKqdm(listInoutNotice.get(0).getPlanId(), kqdm); |
| | | if(null != api1404List && api1404List.size() > 0){ |
| | | apiData.setJhmxh(api1404List.get(0).getJhmxdh()); |
| | | if(StringUtils.isEmpty(sysData.getFoodYear())){ |
| | | sysData.setFoodYear(api1404List.get(0).getShnd()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | |
| | | apiData.setShnd(StringUtils.isEmpty(sysData.getFoodYear()) ? DateFormatUtils.format(new Date(), "yyyy") : sysData.getFoodYear()); |
| | | apiData.setShnd(StringUtils.isEmpty(sysData.getFoodYear()) ? DateFormatUtils.format(sysData.getRegisterTime(), "yyyy") : sysData.getFoodYear()); |
| | | |
| | | //产地代码 |
| | | mappingCode = commonService.getFoodLocationIdFromCache(sysData.getFoodLocation()); |