mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
统计维度单位非空校验补充
This commit is contained in:
+2
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user