|
@@ -286,9 +286,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
public synchronized AjaxResult doStock(StockForm stockForm) {
|
|
public synchronized AjaxResult doStock(StockForm stockForm) {
|
|
- //LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
|
- LoginUser loginUser = new LoginUser();
|
|
|
|
- loginUser.setUser(new SysUser());
|
|
|
|
|
|
+ LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
Long STAGE01 = Constant.LOC_STAGE_CACHE;
|
|
Long STAGE01 = Constant.LOC_STAGE_CACHE;
|
|
WmsDocOrderHeader wmsDocOrderHeader;
|
|
WmsDocOrderHeader wmsDocOrderHeader;
|
|
|
|
|
|
@@ -547,7 +545,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
|
|
|
WmsBoxInfo wmsBoxInfo = getWmsBoxInfo(palletNo);
|
|
WmsBoxInfo wmsBoxInfo = getWmsBoxInfo(palletNo);
|
|
Assert.isTrue(ObjectUtil.isNotNull(wmsBoxInfo) && StringUtils.isNotBlank(wmsBoxInfo.getBoxNo()), "未找到当前可用的托盘");
|
|
Assert.isTrue(ObjectUtil.isNotNull(wmsBoxInfo) && StringUtils.isNotBlank(wmsBoxInfo.getBoxNo()), "未找到当前可用的托盘");
|
|
- Assert.isTrue(StringUtils.equals(Constants.NO, wmsBoxInfo.getIsFull()), "当前托盘已满托");
|
|
|
|
|
|
+ //Assert.isTrue(StringUtils.equals(Constants.NO, wmsBoxInfo.getIsFull()), "当前托盘已满托");
|
|
|
|
|
|
BaseLocationInfo locationTo = baseLocationInfoService.selectBaseLocationInfoByIdOrNo(paForm.getLocationTo(), Constant.WAREHOUSE_ID);
|
|
BaseLocationInfo locationTo = baseLocationInfoService.selectBaseLocationInfoByIdOrNo(paForm.getLocationTo(), Constant.WAREHOUSE_ID);
|
|
// 校验上架库位必须为入库缓存位或者线边库位
|
|
// 校验上架库位必须为入库缓存位或者线边库位
|
|
@@ -992,7 +990,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
private WmsBoxInfo updateIfExist(WmsBoxInfo wmsBoxInfo, String currentFullTag, String username) {
|
|
private WmsBoxInfo updateIfExist(WmsBoxInfo wmsBoxInfo, String currentFullTag, String username) {
|
|
if(ObjectUtil.isNull(wmsBoxInfo) || StringUtils.isBlank(wmsBoxInfo.getBoxNo())) return wmsBoxInfo;
|
|
if(ObjectUtil.isNull(wmsBoxInfo) || StringUtils.isBlank(wmsBoxInfo.getBoxNo())) return wmsBoxInfo;
|
|
|
|
|
|
- Assert.isTrue(StringUtils.equals(Constants.NO, wmsBoxInfo.getIsFull()), "当前托盘已满托");
|
|
|
|
|
|
+ //Assert.isTrue(StringUtils.equals(Constants.NO, wmsBoxInfo.getIsFull()), "当前托盘已满托");
|
|
wmsBoxInfo.setBoxState(1);//启用状态
|
|
wmsBoxInfo.setBoxState(1);//启用状态
|
|
wmsBoxInfo.setIsFull(currentFullTag);
|
|
wmsBoxInfo.setIsFull(currentFullTag);
|
|
wmsBoxInfo.setIsEmpty("N");
|
|
wmsBoxInfo.setIsEmpty("N");
|