统计维度单位非空校验补充

This commit is contained in:
gaoqr
2025-09-04 10:44:37 +08:00
parent 0122ed9914
commit 64dc1cfe43
3 changed files with 6 additions and 0 deletions
@@ -2,6 +2,7 @@ package com.cf.imes.module.executor.controller.admin.order.vo.order;
import com.cf.imes.module.executor.validation.order.OrderStatisticsUnitInEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -25,6 +26,7 @@ public class OrderStatisticsReqVO {
* 统计维度单位
*/
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
@NotNull(message = "统计维度单位不能为空")
@OrderStatisticsUnitInEnum
private Integer unit;
}