AddygdaDto.java 2.33 KB
Newer Older
yuquan.zhu committed
1 2 3 4 5 6 7 8 9 10
/**
 * @date 2019年11月16日  
 * @author 翁东州
 * @方法中文名称:
 */
package cn.timer.api.dto.yggl;

import java.io.Serializable;
import java.util.Date;

11 12
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
13
import javax.validation.constraints.Pattern;
14

15
import cn.timer.api.config.exception.Regular;
16
import cn.timer.api.config.exception.ValidationMsg;
yuquan.zhu committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
import cn.timer.api.utils.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @date 2019年11月16日  
 * @author 翁东州
 * @方法中文名称:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AddygdaDto extends Page implements Serializable{
	
	private static final long serialVersionUID = -1230023773946170942L;

37
	@NotBlank(message = ValidationMsg.NOTBLANK)
yuquan.zhu committed
38 39 40
	@ApiModelProperty(value="员工姓名",example="华仔")
	private String name;

41
	@NotBlank(message = ValidationMsg.NOTBLANK)
42
	@Pattern(regexp=Regular.PHONE,message = ValidationMsg.PATTERN)
yuquan.zhu committed
43 44 45
	@ApiModelProperty(value="手机号",example="101")
	private String phone;
	
46
	@NotNull(message = ValidationMsg.NOTNULL)
yuquan.zhu committed
47 48 49
	@ApiModelProperty(value="证件类型 0:身份证;1:港澳居民来往内地通行证;2:台湾居民来往大陆通行证;3:外国护照;4:其他",example="0")
    private Integer zjType;
    
50
	@NotBlank(message = ValidationMsg.NOTBLANK)
yuquan.zhu committed
51 52 53
	@ApiModelProperty(value="证件号码 ",example="证件号码")
    private String zjNum;
	
54
	@NotNull(message = ValidationMsg.NOTNULL)
yuquan.zhu committed
55 56 57
	@ApiModelProperty(value="工作性质 0全职、1实习生、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘",example="0")
    private Integer jobType;
	
58
//	@NotNull(message = ValidationMsg.NOTNULL)
yuquan.zhu committed
59 60 61
	@ApiModelProperty(value="入职日期 ",example="客户注册后的时间为入职时间")
    private Date rzTime;
	
62
	@NotNull(message = ValidationMsg.NOTNULL)
yuquan.zhu committed
63 64 65
	@ApiModelProperty(value="试用期 0:无试用期;1:1个月;2:2个月;3:3个月;4:4个月;5:5个月;6:6个月(有试用期显示选项)",example="0")
    private Integer syq;
	
66
	@NotNull(message = ValidationMsg.NOTNULL)
yuquan.zhu committed
67 68
	@ApiModelProperty(value="性别 0:男;1:女",example="0")
    private Integer sex;
69
	
70 71
	@ApiModelProperty(value="部门岗位id",example="0")
    private Integer bmgwId;
72 73
	
	
yuquan.zhu committed
74
}