|  |  |  | 
|---|
|  |  |  | List<Pakout> pakouts = selectList(new EntityWrapper<Pakout>().eq("doc_num", docNum)); | 
|---|
|  |  |  | for (Pakout pakout: pakouts){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Pla pla = plaService.selectByBatchAndPackageNo(pakout.getBatch(), Integer.parseInt(pakout.getBarcode())); | 
|---|
|  |  |  | Pla pla = plaService.selectByBatchAndPackageNo(pakout.getBatch(), Integer.parseInt(pakout.getBarcode()), pakout.getMaktx()); | 
|---|
|  |  |  | if(!Cools.isEmpty(pla)){ | 
|---|
|  |  |  | pla.setQtyAnfme(pla.getQtyAnfme() - pakout.getAnfme()); | 
|---|
|  |  |  | pla.setModifyTime(new Date()); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //更新pla信息 | 
|---|
|  |  |  | Pla pla = plaService.selectByBatchAndPackageNo(pakout.getBatch(), Integer.parseInt(pakout.getBarcode())); | 
|---|
|  |  |  | Pla pla = plaService.selectByBatchAndPackageNo(pakout.getBatch(), Integer.parseInt(pakout.getBarcode()),pakout.getMaktx()); | 
|---|
|  |  |  | pla.setQtyAnfme(pla.getQtyAnfme() - pakout.getAnfme()); | 
|---|
|  |  |  | pla.setStatus(GlobleParameter.PLA_STATUS_1); | 
|---|
|  |  |  | pla.setModifyTime(new Date()); | 
|---|