feat(REQ-2186): 产品新增调整参数校验逻辑
This commit is contained in:
parent
0b24de1ca8
commit
e994e3ff40
@ -302,9 +302,11 @@ public class ProductServiceImpl implements ProductService {
|
||||
AssertUtil.notNull(productModuleCategoryEnum, "产品类型有误");
|
||||
|
||||
if (WorkspaceTypeCodeEnum.GENERAL_ENT.equals(workspaceTypeCodeEnum) || WorkspaceTypeCodeEnum.GENERAL_PROJECT.equals(workspaceTypeCodeEnum)) {
|
||||
AssertUtil.notNull(req.getVersion(), "版本升级序列不能为空");
|
||||
AssertUtil.notNull(req.getMaxPersonCount(), "人数上限不能为空");
|
||||
AssertUtil.notNull(req.getPrice(), "价格不能为空");
|
||||
if (ProductModuleCategoryEnum.PRODUCT_VERSION.getCode().equals(req.getProductCategory())) {
|
||||
AssertUtil.notNull(req.getVersion(), "版本升级序列不能为空");
|
||||
}
|
||||
}
|
||||
if (WorkspaceTypeCodeEnum.GOVERNMENT.equals(workspaceTypeCodeEnum)) {
|
||||
AssertUtil.isTrue(Objects.nonNull(req.getFeatureScope()) && Objects.nonNull(req.getFeatureScope().getGovernmentFeatureResourceId())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user