mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
统计维度单位非空校验补充
This commit is contained in:
+2
@@ -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 com.cf.imes.module.executor.validation.order.OrderStatisticsUnitInEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
@@ -25,6 +26,7 @@ public class OrderStatisticsReqVO {
|
|||||||
* 统计维度单位
|
* 统计维度单位
|
||||||
*/
|
*/
|
||||||
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
||||||
|
@NotNull(message = "统计维度单位不能为空")
|
||||||
@OrderStatisticsUnitInEnum
|
@OrderStatisticsUnitInEnum
|
||||||
private Integer unit;
|
private Integer unit;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -2,6 +2,7 @@ package com.cf.imes.module.system.api.organ.dto;
|
|||||||
|
|
||||||
import com.cf.imes.module.system.validation.org.OrgStatisticsUnitInEnum;
|
import com.cf.imes.module.system.validation.org.OrgStatisticsUnitInEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ public class OrgStatisticsReqDTO {
|
|||||||
* 统计维度单位
|
* 统计维度单位
|
||||||
*/
|
*/
|
||||||
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
||||||
|
@NotNull(message = "统计维度单位不能为空")
|
||||||
@OrgStatisticsUnitInEnum
|
@OrgStatisticsUnitInEnum
|
||||||
private Integer unit;
|
private Integer unit;
|
||||||
}
|
}
|
||||||
+2
@@ -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 com.cf.imes.module.system.validation.pay.FundsStatisticsUnitInEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
@@ -23,6 +24,7 @@ public class OrganFundsStatisticsReqVO {
|
|||||||
* 统计维度单位
|
* 统计维度单位
|
||||||
*/
|
*/
|
||||||
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
@Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
|
||||||
|
@NotNull(message = "统计维度单位不能为空")
|
||||||
@FundsStatisticsUnitInEnum
|
@FundsStatisticsUnitInEnum
|
||||||
private Integer unit;
|
private Integer unit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user