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

import org.dromara.payment.worker.domain.UserWorkerBill;
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.*;

/**
 * 会员代发金额汇总表业务对象 user_worker_bill
 *
 * @author LionLi
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserWorkerBill.class, reverseConvertGenerate = false)
public class UserWorkerBillBo extends BaseEntity {

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

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

    /**
     * 服务商ID
     */
    @NotNull(message = "服务商ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sydId;

    /**
     * 业务类型 1 委托代征
     */
    @NotNull(message = "业务类型 1 委托代征不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busType;

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

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


}
