feat(REQ-4418) - 调整审批业务的操作 API 模型,新增 version 版本,用于区分新老版本

This commit is contained in:
wangli 2025-08-13 16:00:55 +08:00
parent 3da15cb8e4
commit 5792036284
5 changed files with 16 additions and 0 deletions

View File

@ -87,4 +87,10 @@ public class CategoryCreateDTO {
@ApiModelProperty(value = "是否展示在发起工作台默认为false")
private Boolean displayInitiateMenu = false;
/**
* 版本号
*/
@ApiModelProperty(value = "版本号")
private Integer version;
}

View File

@ -44,6 +44,9 @@ public class CategoryItemVO {
@ApiModelProperty(value = "是否展示在发起工作台")
private Boolean displayInitiateMenu;
@ApiModelProperty(value = "版本号")
private Integer version;
@ApiModelProperty(value = "更新时间")
private Date updateAt;
}

View File

@ -79,4 +79,9 @@ public class ExtAxDict extends BaseEntity<ExtAxDict> {
* 是否展示在发起工作台
*/
private Boolean displayInitiateMenu;
/**
* 版本号
*/
private Integer version;
}

View File

@ -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

View File

@ -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));
}