Commit 875f53af0abef526dbac1d5667133c4eb9c73335
1 parent
13ef8729
feat(garden): 移除道路创建和更新者的非空校验
- 删除了 creatorName 字段上的 @NotEmpty 注解 - 删除了 updaterName 字段上的 @NotEmpty 注解 - 简化了道路保存请求对象的字段验证逻辑
Showing
1 changed file
with
1 additions
and
3 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/road/vo/RoadSaveReqVO.java
| ... | ... | @@ -90,11 +90,9 @@ public class RoadSaveReqVO { |
| 90 | 90 | private Long deptId; |
| 91 | 91 | |
| 92 | 92 | @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六") |
| 93 | - @NotEmpty(message = "创建者不能为空") | |
| 94 | 93 | private String creatorName; |
| 95 | 94 | |
| 96 | 95 | @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿") |
| 97 | - @NotEmpty(message = "更新者不能为空") | |
| 98 | 96 | private String updaterName; |
| 99 | 97 | |
| 100 | -} | |
| 101 | 98 | \ No newline at end of file |
| 99 | +} | ... | ... |