package com.ltgk.crew.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 船员劳动合同对象 ds_crew_laborcontract
 *
 * @author Qi ChengBin
 * @date 2024-12-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "船员劳动合同对象", description = "船员劳动合同表")
public class DsCrewLaborcontractDTO extends BasePage {

    @ApiModelProperty(value = "主键")
    @NotNull(message = "船员劳动合同主键信息不能为空", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "船员id")
    @NotNull(message = "船员id不能为空", groups = {Update.class, Add.class})
    private String crewId;

    @ApiModelProperty(value = "船员姓名")
    @NotNull(message = "船员姓名不能为空", groups = {Update.class, Add.class})
    private String crewName;

    @ApiModelProperty(value = "中介公司id")
    private String agencyId;

    @ApiModelProperty(value = "1企业；2个人")
    private String contractType;

    @ApiModelProperty(value = "合同文件")
    private String contractFile;

    @ApiModelProperty(value = "担任职务")
    private String post;

    @ApiModelProperty(value = "就业渔船号2")
    private String boatName2;

    @ApiModelProperty(value = "就业渔船号1")
    private String boatName1;

    @ApiModelProperty(value = "渔船经营人")
    private String boatOperator;

    @ApiModelProperty(value = "类型；固定期限、无固定期限、以完成一定工作为期限")
    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "生效时间")
    private Date effectiveTime;

    @ApiModelProperty(value = "作废时间")
    private String cancelTime;

    @ApiModelProperty(value = "状态；0 - 未开始，1 - 正常， 2 - 解绑/作废, 3 - 终止")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    @ApiModelProperty(value = "行政区域编码")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    private String areaName;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;
}
