소스 검색

no message

FengChaoYu 10 달 전
부모
커밋
bbff475872
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mall-server-api/src/main/java/com/gree/mall/manager/logic/material/stock/WorkerStockLogic.java

+ 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 + "】不存在");
                 }
 
                 //判断师傅信息