...
|
...
|
@@ -229,7 +229,7 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
if (bo.getColorId() == null || bo.getColorId() < 1) {
|
|
|
throw new CommonException(400, "请选择颜色");
|
|
|
}
|
|
|
if (CollectionUtils.isEmpty(bo.getSizeIdList())) {
|
|
|
if ((bo.getId() == null || bo.getId() < 1) && CollectionUtils.isEmpty(bo.getSizeIdList())) {
|
|
|
throw new CommonException(400, "请选择至少选择一个尺寸");
|
|
|
}
|
|
|
if (CollectionUtils.isEmpty(bo.getImageUrlList())) {
|
...
|
...
|
|