Commit b0101ff2 by 杨卫

refactor(core): 增强标签模块字段校验并优化更新逻辑

- 在请求DTO中新增@NotBlank和@NotNull注解,保证类别名、维度名、枚举名和分数的必填和格式校验
- 调整TagCategoryService中分类名称的唯一性校验,仅在名称变更时进行校验
- 修改TagDimensionService中维度名称的唯一性校验逻辑,降低数据库校验压力
- 修订TagEnumService中枚举名称及分数的编辑权限校验,并规范判断条件
- 统一去除对备注、排序等字段的null判断,直接设置减少代码冗余
- 所有更新操作由updateByPrimaryKeySelective改为updateByPrimaryKey,确保完整字段更新
1 parent 81f6a0c0
...@@ -20,7 +20,7 @@ public class TagDimensionUpdateRequest extends AbstractRopRequest { ...@@ -20,7 +20,7 @@ public class TagDimensionUpdateRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "维度ID", required = true) @ApiModelProperty(notes = "维度ID", required = true)
private Integer id; private Integer id;
@ApiModelProperty(notes = "维度名称") @ApiModelProperty(notes = "维度名称", required = true)
private String dimensionName; private String dimensionName;
@ApiModelProperty(notes = "排序号") @ApiModelProperty(notes = "排序号")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!