From 3cd92951fd2a67a02e649a870d100b3e8776ae11 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 十二月 2025 17:43:37 +0800
Subject: [PATCH] 经销商管理
---
server/dmmall_service/src/main/java/com/doumee/service/business/impl/GoodsServiceImpl.java | 29 +----------------------------
1 files changed, 1 insertions(+), 28 deletions(-)
diff --git a/server/dmmall_service/src/main/java/com/doumee/service/business/impl/GoodsServiceImpl.java b/server/dmmall_service/src/main/java/com/doumee/service/business/impl/GoodsServiceImpl.java
index 2f111b1..e3eee49 100644
--- a/server/dmmall_service/src/main/java/com/doumee/service/business/impl/GoodsServiceImpl.java
+++ b/server/dmmall_service/src/main/java/com/doumee/service/business/impl/GoodsServiceImpl.java
@@ -146,42 +146,15 @@
}
public void isCreateParamValid(Goods goods, LoginUserInfo user) {
-/* if (goods.getType() == null) {
- throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), ResponseStatus.BAD_REQUEST.getMessage());
- }*/
- /* if (Constants.equalsInteger(goods.getType(), Constants.ZERO)) {*/
//骞冲彴鍟嗗煄
if (StringUtils.isBlank(goods.getName())
- || goods.getParentCategoryId() == null
+ || goods.getCategoryId() == null
|| StringUtils.isBlank(goods.getImgurl())
|| org.apache.commons.collections.CollectionUtils.isEmpty(goods.getFileList())
) {
throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), ResponseStatus.BAD_REQUEST.getMessage());
}
- /* }*/
- /* if (Constants.equalsInteger(goods.getType(), Constants.ONE)) {
- //鍜栬眴鍟嗗煄
- if (StringUtils.isBlank(goods.getName())
- || goods.getCategoryId() == null
- || goods.getBrandId() == null
- || StringUtils.isBlank(goods.getImgurl())
- || Objects.isNull(goods.getFileList())
- ) {
- throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), ResponseStatus.BAD_REQUEST.getMessage());
- }
- }
-
- if (Constants.equalsInteger(goods.getType(), Constants.TWO)) {
- //鍜栧暋璁″垝鍟嗗搧
- if (StringUtils.isBlank(goods.getName())
- || StringUtils.isBlank(goods.getImgurl())
- || StringUtils.isBlank(goods.getLabels())
-
- ) {
- throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), ResponseStatus.BAD_REQUEST.getMessage());
- }
- }*/
}
--
Gitblit v1.9.3