parent
e8908512a8
commit
67ad03bdd8
|
|
@ -3,10 +3,6 @@ package com.securitycontrol.entity.system.base.vo;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.hibernate.validator.constraints.Length;
|
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
|
||||||
import javax.validation.constraints.Pattern;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author:cwchen
|
* @author:cwchen
|
||||||
|
|
@ -21,13 +17,9 @@ public class TeamQuEvalVo {
|
||||||
private String evalId;
|
private String evalId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "班组ID")
|
@ApiModelProperty(value = "班组ID")
|
||||||
@NotBlank(message = "班组ID不能为空", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
@Length(max = 100, message = "班组ID字符长度不能超过100", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
private String teamId;
|
private String teamId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "班组名称")
|
@ApiModelProperty(value = "班组名称")
|
||||||
@NotBlank(message = "班组名称不能为空", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
@Length(max = 30, message = "班组名称字符长度不能超过30", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
private String teamName;
|
private String teamName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "班组长")
|
@ApiModelProperty(value = "班组长")
|
||||||
|
|
@ -43,22 +35,12 @@ public class TeamQuEvalVo {
|
||||||
private String evaluator;
|
private String evaluator;
|
||||||
|
|
||||||
@ApiModelProperty(value = "星级分")
|
@ApiModelProperty(value = "星级分")
|
||||||
@NotBlank(message = "评价星级不能为空", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
@Pattern(regexp="^([1-9]||10)$", message="评价星级为1-5星",groups = {TeamQuEvalVo.Query.class})
|
|
||||||
private String score;
|
private String score;
|
||||||
|
|
||||||
@ApiModelProperty(value = "评价内容")
|
@ApiModelProperty(value = "评价内容")
|
||||||
@NotBlank(message = "评价内容不能为空", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
@Length(max = 100, message = "评价内容字符长度不能超过100", groups = {TeamQuEvalVo.Query.class})
|
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
@ApiModelProperty(value = "1.新增 2.修改")
|
@ApiModelProperty(value = "1.新增 2.修改")
|
||||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询条件限制
|
|
||||||
*/
|
|
||||||
public interface Query {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue