Browse Source

增加对参数是否为空的判断

logistics
ma 4 years ago
parent
commit
1fbe8ca595
  1. 4
      logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java

4
logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java

@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotNull;
/** /**
* @author * @author
*/ */
@ -20,6 +22,7 @@ public class MbpsDto {
@Data @Data
@ApiModel(value = "查询吞吐量折线图") @ApiModel(value = "查询吞吐量折线图")
public static class SelMbpsByTime{ public static class SelMbpsByTime{
@NotNull(message = "请选择查询类型")
@ApiModelProperty("查询类型(0-按天,1-按周,2-按月,3-按年)") @ApiModelProperty("查询类型(0-按天,1-按周,2-按月,3-按年)")
private Byte queryType; private Byte queryType;
@ApiModelProperty("开始时间") @ApiModelProperty("开始时间")
@ -31,6 +34,7 @@ public class MbpsDto {
@Data @Data
@ApiModel(value = "查看温度和湿度") @ApiModel(value = "查看温度和湿度")
public static class SelTeamAndHumidity{ public static class SelTeamAndHumidity{
@NotNull(message = "请选择要查询的仓库")
@ApiModelProperty("仓库id") @ApiModelProperty("仓库id")
private Long warehouseId; private Long warehouseId;
@ApiModelProperty("开始时间") @ApiModelProperty("开始时间")

Loading…
Cancel
Save