Commit 4749a1e28ec7082bbd459664280fceaf70b14096
1 parent
32813c08
feat(wms):WmsInventoryPageReqVO 增加 type 非空校验
Showing
1 changed file
with
3 additions
and
1 deletions
yudao-module-wms/src/main/java/cn/iocoder/yudao/module/wms/controller/admin/inventory/vo/WmsInventoryPageReqVO.java
| ... | ... | @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.wms.controller.admin.inventory.vo; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 4 | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | +import jakarta.validation.constraints.NotBlank; | |
| 5 | 6 | import lombok.Data; |
| 6 | 7 | import lombok.EqualsAndHashCode; |
| 7 | 8 | import lombok.ToString; |
| ... | ... | @@ -24,7 +25,8 @@ public class WmsInventoryPageReqVO extends PageParam { |
| 24 | 25 | */ |
| 25 | 26 | public static final String TYPE_ITEM = "item"; |
| 26 | 27 | |
| 27 | - @Schema(description = "统计维度", example = "warehouse") | |
| 28 | + @Schema(description = "统计维度", requiredMode = Schema.RequiredMode.REQUIRED, example = "warehouse") | |
| 29 | + @NotBlank(message = "统计维度不能为空") | |
| 28 | 30 | private String type; |
| 29 | 31 | |
| 30 | 32 | @Schema(description = "商品编号", example = "ITEM001") | ... | ... |