package org.dromara.payment.worker.domain.bo;

import org.dromara.payment.worker.domain.UserWorkerBusiness;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用工签约查询业务对象 user_worker_business
 *
 * @author LionLi
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserWorkerBusiness.class, reverseConvertGenerate = false)
public class UserWorkerBusinessBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 自雇者id
     */
    @NotNull(message = "自雇者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workId;

    /**
     * 结算中心id
     */
    @NotNull(message = "结算中心id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sydId;

    /**
     * 结算中心编号
     */
    @NotBlank(message = "结算中心编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sydNo;

    /**
     * 业务类型(1:委托代征，2:自然人代开，3:个体户注册 4:临时税务登记 5：资金代发 6：派遣&外包
     */
    @NotNull(message = "业务类型(1:委托代征，2:自然人代开，3:个体户注册 4:临时税务登记 5：资金代发 6：派遣&外包不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer busType;

    /**
     * 运营商编号
     */
    @NotBlank(message = "运营商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String opNo;

    /**
     * 运营商id
     */
    @NotNull(message = "运营商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long opId;

    /**
     * 代理商id
     */
    @NotNull(message = "代理商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelId;

    /**
     * 代理商编号
     */
    @NotBlank(message = "代理商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelNo;

    /**
     * 代理商上下级关系编码
     */
    @NotBlank(message = "代理商上下级关系编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelCode;

    /**
     * 商户id
     */
    @NotNull(message = "商户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long merId;

    /**
     * 商户编号
     */
    @NotBlank(message = "商户编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String merNo;

    /**
     * 合同编号
     */
    @NotBlank(message = "合同编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String no;

    /**
     * 签约状态（0:待签约 1:签约成功 2:签约失败）
     */
    @NotNull(message = "签约状态（0:待签约 1:签约成功 2:签约失败）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer signStatus;

    /**
     * 签约时间
     */
    @NotNull(message = "签约时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date signTime;

    /**
     * 签约文件地址
     */
    @NotBlank(message = "签约文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signFileUrl;

    /**
     * 协议签字图片
     */
    @NotBlank(message = "协议签字图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signPic;

    /**
     * 年代发金额所属年份
     */
    @NotBlank(message = "年代发金额所属年份不能为空", groups = { AddGroup.class, EditGroup.class })
    private String moneyYearDate;

    /**
     * 年代发金额
     */
    @NotNull(message = "年代发金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long moneyYear;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vPhone;

    /**
     * 合同编码
     */
    @NotBlank(message = "合同编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signNo;

    /**
     * 签约地址
     */
    @NotBlank(message = "签约地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signUrl;

    /**
     * 预览地址
     */
    @NotBlank(message = "预览地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String webUrl;

    /**
     * ossid
     */
    @NotBlank(message = "ossid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ossid;


}
