FengChaoYu 10 mesi fa
parent
commit
778044afe6

+ 3 - 3
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/stock/WorkerStockLogic.java

@@ -196,7 +196,7 @@ public class WorkerStockLogic {
                 WebsitGoods websitGoods = websitGoodsService.lambdaQuery()
                         .eq(WebsitGoods::getCompanyWechatId, adminUser.getCompanyWechatId())
                         .eq(WebsitGoods::getGoodsType, websitGoodsTypeEnum.getKey())
-                        .eq(WebsitGoods::getGoodsId, goodsId)
+                        .eq(WebsitGoods::getGoodsCode, goodsId)
                         .one();
                 if (websitGoods == null) {
                     throw new RemoteServiceException(tipsGoodsName + "编号【" + goodsId + "】不存在");
@@ -228,7 +228,7 @@ public class WorkerStockLogic {
                 workerStockDTO.setSdate(curDate);
                 workerStockDTO.setGoodsId(goodsId);
                 workerStockDTO.setGoodsName(websitGoods.getGoodsName());
-                workerStockDTO.setGoodsType(WebsitGoodsTypeEnum.M.getKey());
+                workerStockDTO.setGoodsType(WebsitGoodsTypeEnum.P.getKey());
                 workerStockDTO.setUnitName(websitGoods.getGoodsSalesUnit());
                 workerStockDTO.setRef(idStr);
                 workerStockDTO.setRefType("库存导入");
@@ -250,7 +250,7 @@ public class WorkerStockLogic {
                     workerStockDTO2.setSdate(curDate);
                     workerStockDTO2.setGoodsId(goodsId);
                     workerStockDTO2.setGoodsName(websitGoods.getGoodsName());
-                    workerStockDTO2.setGoodsType(WebsitGoodsTypeEnum.M.getKey());
+                    workerStockDTO2.setGoodsType(WebsitGoodsTypeEnum.P.getKey());
                     workerStockDTO2.setUnitName(websitGoods.getGoodsSalesUnit());
                     workerStockDTO2.setRef(idStr);
                     workerStockDTO2.setRefType("库存导入");