FengChaoYu 10 kuukautta sitten
vanhempi
commit
bbff475872

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

@@ -139,7 +139,8 @@ public class WorkerStockLogic {
                         .eq(WorkerGoods::getGoodsId, goodsId)
                         .one();
                 if (workerGoods == null) {
-                    throw new RemoteServiceException("商品编号【" + goodsId + "】不存在");
+                    String typeTipsStr = websitGoodsTypeEnum.getKey().equals(WebsitGoodsTypeEnum.M.getKey()) ? "辅材" : "配件";
+                    throw new RemoteServiceException(typeTipsStr + "编号【" + goodsId + "】不存在");
                 }
 
                 //判断师傅信息