feat(REQ-2186): 产品新增增加描述入参
This commit is contained in:
parent
460cc7734c
commit
0b24de1ca8
@ -41,4 +41,6 @@ public class ProductFeatureRelationUpdateReq {
|
||||
* 权限点 ID
|
||||
*/
|
||||
private List<Long> featureIds = new ArrayList<>();
|
||||
|
||||
private Integer featureRelationType;
|
||||
}
|
||||
|
||||
@ -93,6 +93,11 @@ public class ProductSaveReq {
|
||||
*/
|
||||
private FeatureScope featureScope;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
|
||||
@ -91,7 +91,7 @@ public class ProductFeatureRelationServiceImpl implements ProductFeatureRelation
|
||||
relation.setDictCodeId(i.getDictCodeId());
|
||||
relation.setDictCode(i.getDictCode());
|
||||
relation.setFeatureId(featureId);
|
||||
relation.setType(ProductModuleFeatureRelationTypeEnum.FEATURE_RESOURCE.getCode());
|
||||
relation.setType(Objects.isNull(i.getFeatureRelationType()) ? 0 : i.getFeatureRelationType());
|
||||
saveList.add(relation);
|
||||
}));
|
||||
saasProductModuleFeatureRelationDao.saveBatch(saveList);
|
||||
|
||||
@ -7,6 +7,7 @@ import cn.axzo.framework.domain.page.PageResp;
|
||||
import cn.axzo.framework.domain.web.result.ApiPageResult;
|
||||
import cn.axzo.framework.domain.web.result.ApiResult;
|
||||
import cn.axzo.pokonyan.config.mybatisplus.BaseEntity;
|
||||
import cn.axzo.tyr.client.common.enums.ProductModuleFeatureRelationTypeEnum;
|
||||
import cn.axzo.tyr.client.model.dict.response.BasicDictNodeResp;
|
||||
import cn.axzo.tyr.client.model.enums.ProductModuleCategoryEnum;
|
||||
import cn.axzo.tyr.client.model.enums.WorkspaceTypeCodeEnum;
|
||||
@ -332,6 +333,7 @@ public class ProductServiceImpl implements ProductService {
|
||||
.videos(e.getVideos())
|
||||
.detailImages(e.getDetailImages())
|
||||
.build()).orElse(ProductModule.Material.builder().build()));
|
||||
productModule.setRemark(req.getRemark());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -351,6 +353,7 @@ public class ProductServiceImpl implements ProductService {
|
||||
: saasFeatureResources.stream().map(BaseEntity::getId).collect(Collectors.toSet());
|
||||
featureIds.add(saasFeatureResource.getId());
|
||||
req.getFeatureIds().addAll(featureIds);
|
||||
req.setFeatureRelationType(ProductModuleFeatureRelationTypeEnum.FEATURE_RESOURCE.getCode());
|
||||
productFeatureRelationService.updateFeatureRelation(Collections.singletonList(req));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user