feat(REQ-4418) - 调整审批业务的操作 API 模型,新增 version 版本,用于区分新老版本
This commit is contained in:
parent
3da15cb8e4
commit
5792036284
@ -87,4 +87,10 @@ public class CategoryCreateDTO {
|
||||
@ApiModelProperty(value = "是否展示在发起工作台,默认为false")
|
||||
private Boolean displayInitiateMenu = false;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
|
||||
@ -44,6 +44,9 @@ public class CategoryItemVO {
|
||||
@ApiModelProperty(value = "是否展示在发起工作台")
|
||||
private Boolean displayInitiateMenu;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateAt;
|
||||
}
|
||||
|
||||
@ -79,4 +79,9 @@ public class ExtAxDict extends BaseEntity<ExtAxDict> {
|
||||
* 是否展示在发起工作台
|
||||
*/
|
||||
private Boolean displayInitiateMenu;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
}
|
||||
|
||||
@ -118,6 +118,7 @@ public class CategoryServiceImpl extends ServiceImpl<ExtAxDictMapper, ExtAxDict>
|
||||
dict.setBusinessType(dto.getBusinessType());
|
||||
dict.setIcon(dto.getIcon());
|
||||
dict.setDisplayInitiateMenu(dto.getDisplayInitiateMenu());
|
||||
dict.setVersion(dto.getVersion());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -99,6 +99,7 @@ public class ProcessCategoryController implements ProcessCategoryApi {
|
||||
@Override
|
||||
@RepeatSubmit
|
||||
public CommonResponse<CategoryItemVO> create(@Validated @RequestBody CategoryCreateDTO req) {
|
||||
req.setVersion(2);
|
||||
return success(categoryService.createCategory(req));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user