Commit bb6e3dff zshaohui

Withdraw Offline出库 逻辑修改

1 个父辈 36ae3d8f
...@@ -88,7 +88,7 @@ public class MicronSpUnloadController { ...@@ -88,7 +88,7 @@ public class MicronSpUnloadController {
c.and("barcode.partNumber").is(pn); c.and("barcode.partNumber").is(pn);
c.and("enabled").is(true); c.and("enabled").is(true);
c.and("barcode.lockId").is(null); c.and("barcode.lockId").is(null);
c.and("barcode.appendData.AuthoriseNg").ne(true); //c.and("barcode.appendData.AuthoriseNg").ne(true);
if (excludePosIds != null && !excludePosIds.isEmpty()){ if (excludePosIds != null && !excludePosIds.isEmpty()){
c.and("id").nin(excludePosIds); c.and("id").nin(excludePosIds);
} }
...@@ -102,6 +102,12 @@ public class MicronSpUnloadController { ...@@ -102,6 +102,12 @@ public class MicronSpUnloadController {
//验证 //验证
Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername()); Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername());
log.info("unload/getMicronPN [" + pn + "] barcode [" + pos.getBarcode().getBarcode() + "] chkAuthoriseToDispatch 成功"); log.info("unload/getMicronPN [" + pn + "] barcode [" + pos.getBarcode().getBarcode() + "] chkAuthoriseToDispatch 成功");
Barcode barcode = pos.getBarcode();
barcode.updateAppendData("AuthoriseNg", false);
pos.setBarcode(barcode);
storagePosManager.save(pos);
SpUnloadDto dto=getUnloadDto(pos,1); SpUnloadDto dto=getUnloadDto(pos,1);
return ResultBean.newOkResult(dto); return ResultBean.newOkResult(dto);
} catch (ApiException ex) { } catch (ApiException ex) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!