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

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.system.api.organ.dto;
import com.cf.imes.module.system.validation.org.OrgStatisticsUnitInEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -24,6 +25,7 @@ public class OrgStatisticsReqDTO {
* 统计维度单位
*/
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
@NotNull(message = "统计维度单位不能为空")
@OrgStatisticsUnitInEnum
private Integer unit;
}
@@ -2,6 +2,7 @@ package com.cf.imes.module.system.controller.admin.funds.organamount.vo;
import com.cf.imes.module.system.validation.pay.FundsStatisticsUnitInEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -23,6 +24,7 @@ public class OrganFundsStatisticsReqVO {
* 统计维度单位
*/
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
@NotNull(message = "统计维度单位不能为空")
@FundsStatisticsUnitInEnum
private Integer unit;
}