|
@@ -26,10 +26,7 @@ import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
-import javax.validation.constraints.NotBlank;
|
|
|
-import javax.validation.constraints.NotEmpty;
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
-import javax.validation.constraints.Size;
|
|
|
+import javax.validation.constraints.*;
|
|
|
|
|
|
/**
|
|
|
* 岗位表实体类
|
|
@@ -62,6 +59,7 @@ public class Post extends BaseEntity {
|
|
|
*/
|
|
|
@NotBlank(message = "岗位编号不能为空")
|
|
|
@Size(min=6, max=12, message="岗位编号长度要在6-12英文字母")
|
|
|
+ @Pattern(regexp = "^[A-Za-z]+$", message = "岗位编号格式必须为字母")
|
|
|
@ApiModelProperty(value = "岗位编号")
|
|
|
private String postCode;
|
|
|
|