字段校验
This commit is contained in:
@@ -130,12 +130,10 @@ public class DeviceInfoParam implements Serializable {
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
@NotBlank(message = "起始时间不可为空")
|
||||
private String searchBeginTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
@NotBlank(message = "结束时间不可为空")
|
||||
private String searchEndTime;
|
||||
|
||||
@ApiModelProperty("时间范围标志 0.查询展示天 1.查询展示月")
|
||||
@@ -148,12 +146,10 @@ public class DeviceInfoParam implements Serializable {
|
||||
public static class CompareBusinessParam extends BusinessParam{
|
||||
|
||||
@ApiModelProperty("比较开始时间")
|
||||
@NotBlank(message = "比较开始时间不可为空")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodBeginTime;
|
||||
|
||||
@ApiModelProperty("比较结束时间")
|
||||
@NotBlank(message = "比较结束时间不可为空")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodEndTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user