Browse Source

解决永湖线上bug-解绑以及出入库重新绑定不会重置托盘

ChenYang 1 year ago
parent
commit
288d199ca2

+ 2 - 5
ruoyi-admin/src/main/resources/application.yml

@@ -37,7 +37,7 @@ spring:
     # 国际化资源文件路径
     # 国际化资源文件路径
     basename: i18n/messages
     basename: i18n/messages
   profiles:
   profiles:
-    active: dev
+    active: prod
   # 文件上传
   # 文件上传
   servlet:
   servlet:
     multipart:
     multipart:
@@ -107,7 +107,4 @@ xss:
   # 匹配链接
   # 匹配链接
   urlPatterns: /system/*,/monitor/*,/tool/*
   urlPatterns: /system/*,/monitor/*,/tool/*
 
 
-# 是否开启服务
-#testtag:
-#  autosend: true
-#  aciservice: true
+iue

+ 3 - 5
warewms-ams/src/main/java/com/ruoyi/ams/asn/service/impl/WmsDocAsnHeaderServiceImpl.java

@@ -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");