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

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

/**
 * 发票明细业务对象 mer_invoice_bill
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MerInvoiceBill.class, reverseConvertGenerate = false)
public class MerInvoiceBillBo extends BaseEntity {

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

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

    /**
     * 开票金额（分）
     */
    @NotNull(message = "开票金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long invAmount;

    /**
     * 状态（1:正常 2:取消）
     */
    private Long status;

    /**
     * 账单金额（分）
     */
    @NotNull(message = "账单金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long money;

    /**
     * 服务费金额（分）
     */
    @NotNull(message = "服务费金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long serviceChargeAmount;

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

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

    /**
     * 结算中心id
     */
    private Long sydId;

    /**
     * 结算中心编号
     */
    private String sydNo;

    /**
     * 运营商编号
     */
    private String opNo;

    /**
     * 运营商id
     */
    private Long opId;

    /**
     * 代理商id
     */
    private Long channelId;

    /**
     * 代理商编号
     */
    private String channelNo;

    /**
     * 代理商上下级关系编码
     */
    private String channelCode;

    /**
     * 商户id
     */
    private Long merId;

    /**
     * 商户编号
     */
    private String merNo;

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

    /**
     * 账单批次号
     */
    @NotBlank(message = "账单批次号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billNo;


}
