| | |
| | | apiData.setScdd("1"); |
| | | //储粮方式 |
| | | apiData.setClfs(fz40DepotStore.getStoreType()); |
| | | //包装储粮是,核查包存粮包数 |
| | | if("2".equals(apiData.getClfs())){ |
| | | apiData.setBclbs((int)(fz40DepotStore.getStorageReal()/25)); |
| | | } |
| | | |
| | | //货位状态 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_HWZT, fz40DepotStore.getDepotStatus()); |
| | |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz40InoutPlan> list = fzzy40Sync1403Rep.findDateByTime(start, end); |
| | | List<Fz40InoutPlan> list = fzzy40Sync1403Rep.findDateByTime(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz40InoutPlan> list = fzzy35Sync1403Rep.findDateByTime(start, end); |
| | | List<Fz40InoutPlan> list = fzzy35Sync1403Rep.findDateByTime(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | |
| | | api1404.setLsxzdm(mappingCode); |
| | | api1404.setShnd(StringUtils.isEmpty(fz35PlanDetail.getYear())?fz35Plan.getYear():fz35PlanDetail.getYear()); |
| | | api1404.setLhhwdm(api1105.getHwdm()); |
| | | api1404.setLhsl(fz35PlanDetail.getPlanNum()); |
| | | if(null == fz35PlanDetail.getPlanNum()){ |
| | | fz35PlanDetail.setPlanNum(0.0); |
| | | } |
| | | api1404.setLhsl(fz35PlanDetail.getPlanNum()/1000); |
| | | api1404.setLhlx(fz35PlanDetail.getType()); |
| | | api1404.setZhgxsj(new Date()); |
| | | api1404.setKqdm(kqdm); |
| | |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40InoutPlan where createTime >=:start and createTime <:end order by createTime ") |
| | | List<Fz40InoutPlan> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | @Query("from Fz40InoutPlan where deptId =:deptId and createTime >=:start and createTime <:end order by createTime ") |
| | | List<Fz40InoutPlan> findDateByTime(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
| | |
| | | } |
| | | if (Constant.API_CODE_1208.equals(inteId)) { |
| | | Gd2022Api1208 api1208 = new Gd2022Api1208(); |
| | | //包装储粮是,核查包存粮包数 |
| | | if(null == api1208.getBclbs()){ |
| | | api1208.setBclbs(0); |
| | | } |
| | | if("2".equals(api1208.getClfs()) && api1208.getBclbs() == 0){ |
| | | api1208.setBclbs((int)(api1208.getSjsl()/25)); |
| | | } |
| | | BeanUtils.copyProperties(data, api1208); |
| | | return JSON.toJSONString(api1208); |
| | | } |
| | |
| | | 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); |
| | | return api1208; |
| | |
| | | if (StringUtils.isEmpty(api1310.getShrxm())) { |
| | | api1310.setShrxm("审核人"); |
| | | } |
| | | if (StringUtils.isEmpty(api1310.getBglx())) { |
| | | api1310.setBglx("1"); |
| | | } |
| | | |
| | | //设置空属性为默认值 |
| | | changeObject(api1310); |
| | |
| | | } |
| | | } |
| | | } |
| | | api1403.setLrsl(lrsl/1000 + ""); |
| | | api1403.setLcsl(lcsl/1000 + ""); |
| | | api1403.setLrsl(lrsl + ""); |
| | | api1403.setLcsl(lcsl + ""); |
| | | |
| | | //设置空属性为默认值 |
| | | changeObject(api1403); |
| | |
| | | } |
| | | } |
| | | } |
| | | api1403.setLrsl(lrsl / 1000 + ""); |
| | | api1403.setLcsl(lcsl / 1000 + ""); |
| | | api1403.setLrsl(lrsl + ""); |
| | | api1403.setLcsl(lcsl + ""); |
| | | |
| | | //设置空属性为默认值 |
| | | return api1403; |