DeviceMonthBo.java
820 Bytes
package com.glsx.model.BO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
@Data
@ToString(callSuper = true)
@ApiModel
public class DeviceMonthBo extends DeviceStatusBo {
//开始月份 2019-08
@NotBlank(message = "开始月份不能为空")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "开始月份 如:2019-08",required=true)
private String begin_month;
//结束月份 2019-10
@NotBlank(message = "结束月份不能为空")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "结束月份 如:2019-10",required=true)
private String end_month;
}