| | |
| | | Api1404 api1404; |
| | | List<Fz35PlanDetail> fz35PlanDetails; |
| | | Api1105 api1105; |
| | | List<Api1404> api1404List; |
| | | for (Fz35Plan fz35Plan : list) { |
| | | |
| | | fz35PlanDetails = fzzy35Sync1404Rep.findDate(fz35Plan.getId()); |
| | |
| | | api1404.setLhhwdm(fz35PlanDetail.getDepotId()); |
| | | api1404.setLhsl(fz35PlanDetail.getPlanNum()); |
| | | api1404.setLhlx(fz35PlanDetail.getType()); |
| | | api1404.setCzbz(Constant.CZBZ_I); |
| | | api1404.setZhgxsj(new Date()); |
| | | api1404.setKqdm(kqdm); |
| | | api1404.setBizId(fz35PlanDetail.getId()); |
| | | api1404List = api1404Rep.getDataByJhmxdh(api1404.getJhmxdh()); |
| | | if(null == api1404List || api1404List.isEmpty()){ |
| | | api1404.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1404.setCzbz(api1404List.get(0).getCzbz()); |
| | | } |
| | | api1404Rep.save(api1404); |
| | | } |
| | | } |