| | |
| | | //设置粮食轮换年度,根据计划明细号查询计划明细,再根据计划明细查询轮换计划 |
| | | List<Api1404> api1404List = api1404Rep.getDataByJhmxdh(apiData.getJhmxh()); |
| | | if (null != api1404List && api1404List.size() > 0) { |
| | | api1202.setShnd(api1404List.get(0).getShnd()); |
| | | List<Api1403> api1403List = api1403Rep.getDataByLhjhdh(api1404List.get(0).getLhjhdh()); |
| | | if(null != api1403List && api1403List.size() > 0){ |
| | | if(StringUtils.isNotEmpty(api1403List.get(0).getJhnd())){ |
| | |
| | | if (null != api1208List && api1208List.size() > 0) { |
| | | api1203.setPch(apiData.getHwdm() + api1208List.get(0).getShnd()); |
| | | } |
| | | //设置质检编码(默认等同于入库质检单号) |
| | | //设置质检编码(默认等同于入库质检单号),若为船运,则设置为系统内船运的单号 |
| | | api1203.setZjbh(api1203.getRkjydh()); |
| | | |
| | | List<Api1202> api1202List = api1202Rep.getDataById(api1203.getRkywdh()); |
| | | if (null != api1202List && api1202List.size() > 0) { |
| | | if(api1202List.get(0).getYsgj().equals("3")){ |
| | | api1203.setZjbh(api1202List.get(0).getBizId().substring(2)); |
| | | } |
| | | } |
| | | //设置空属性为默认值 |
| | | changeObject(api1203); |
| | | return api1203; |
| | |
| | | api1208.setPch(apiData.getHwdm() + apiData.getShnd()); |
| | | if (StringUtils.isEmpty(api1208.getCd())) { |
| | | api1208.setCd(api1208.getHwdm().substring(2, 8)); |
| | | } |
| | | //包装储粮是,核查包存粮包数 |
| | | if(null == apiData.getBclbs()){ |
| | | apiData.setBclbs(0); |
| | | } |
| | | if("2".equals(apiData.getClfs()) && apiData.getBclbs() == 0){ |
| | | apiData.setBclbs((int)(apiData.getSjsl()/25)); |
| | | } |
| | | //设置空属性为默认值 |
| | | changeObject(api1208); |
| | |
| | | if (StringUtils.isEmpty(api1310.getShrxm())) { |
| | | api1310.setShrxm("审核人"); |
| | | } |
| | | if (StringUtils.isEmpty(api1310.getBglx())) { |
| | | api1310.setBglx("1"); |
| | | } |
| | | |
| | | //设置空属性为默认值 |
| | | changeObject(api1310); |
| | |
| | | } |
| | | } |
| | | } |
| | | api1403.setLrsl(lrsl); |
| | | api1403.setLcsl(lcsl); |
| | | api1403.setLrsl(lrsl + ""); |
| | | api1403.setLcsl(lcsl + ""); |
| | | |
| | | //设置空属性为默认值 |
| | | changeObject(api1403); |