Commit ea6b4e3c LN

出库完成时,如果数量为0清空格口,删除格口条码

1 个父辈 26dee82e
...@@ -193,7 +193,7 @@ public class SpBoxCheckOutController { ...@@ -193,7 +193,7 @@ public class SpBoxCheckOutController {
neeONum=0; neeONum=0;
} }
gekouBarcode.updateNeedOutNum(neeONum); gekouBarcode.updateNeedOutNum(neeONum);
boxBarcode.updateSubCodes(gekouBarcode); boxBarcode.updateSubCodes(gekouBarcode,true);
log.info("reelOutBox : boxStr=" + boxStr + ",codeStr=" + rellCodeStr + ",binCodeStr=" + gekouCodeStr + "出库 " + codeBarcode.getQty() + " 完成,剩余数量:" + gekouBarcode.getAmount()+",剩余待出库数量:"+neeONum); log.info("reelOutBox : boxStr=" + boxStr + ",codeStr=" + rellCodeStr + ",binCodeStr=" + gekouCodeStr + "出库 " + codeBarcode.getQty() + " 完成,剩余数量:" + gekouBarcode.getAmount()+",剩余待出库数量:"+neeONum);
//6.生成出库任务 //6.生成出库任务
...@@ -215,7 +215,12 @@ public class SpBoxCheckOutController { ...@@ -215,7 +215,12 @@ public class SpBoxCheckOutController {
pos.setBarcode(boxBarcode); pos.setBarcode(boxBarcode);
pos.setUsed(true); pos.setUsed(true);
storagePosManager.save(pos); storagePosManager.save(pos);
if(gekouBarcode.getAmount()<=0){
log.info("格口"+gekouBarcode.getBarcode()+",pn="+gekouBarcode.getPartNumber()+" 出库后数量为0,直接删除barcode");
barcodeManager.delete(gekouBarcode);
}else {
barcodeManager.save(gekouBarcode); barcodeManager.save(gekouBarcode);
}
barcodeManager.save(boxBarcode); barcodeManager.save(boxBarcode);
......
...@@ -55,7 +55,7 @@ public class SpBoxPutInController { ...@@ -55,7 +55,7 @@ public class SpBoxPutInController {
String currentRfid = station.getCurrentRfid(); String currentRfid = station.getCurrentRfid();
if(ObjectUtil.isEmpty(currentRfid)){ if(ObjectUtil.isEmpty(currentRfid)){
if(LuxsanSpApi.Debug){ if(LuxsanSpApi.Debug){
currentRfid="CS9999"; currentRfid="CS0130";
} }
} }
// log.info("getStationInfo工位上"+currentRfid); // log.info("getStationInfo工位上"+currentRfid);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!