| | |
| | | if(Cools.isEmpty(excel.getBatch()) || Cools.isEmpty(excel.getPackageNo())){ |
| | | throw new CoolException("第" + index++ + "数据错误,包号或者批号为空"); |
| | | } |
| | | Pla pla = plaService.selectByBatchAndPackageNo(excel.getBatch(),excel.getPackageNo()); |
| | | Pla pla = plaService.selectByBatchAndPackageNo(excel.getBatch(),excel.getPackageNo(),excel.getBrand()); |
| | | if (pla == null) { |
| | | pla = plaCreate(pla,excel,matService,nodeService); |
| | | pla.setCreateTime(new Date()); |
| | |
| | | excel.setStatus(pla.getStatus()); |
| | | excel.setPakinTime(pla.getPakinTime()); |
| | | excel.setStash(pla.getStash()); |
| | | excel.setLocNo(pla.getLocNo()); |
| | | if(Cools.isEmpty(excel.getLocNo())){ |
| | | excel.setLocNo(pla.getLocNo()); |
| | | } |
| | | BeanUtils.copyProperties(excel,pla); |
| | | pla = plaCreate(pla,excel,matService,nodeService); |
| | | try { |