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

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

/**
 * 商户账单汇总表业务对象 v_merchant_bill
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VMerchantBill.class, reverseConvertGenerate = false)
public class VMerchantBillBo extends BaseEntity {

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

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

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

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

    /**
     * 运营商编号
     */
    @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;

    /**
     * 今日交易笔数（笔）
     */
    @NotNull(message = "今日交易笔数（笔）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dayTranNum;

    /**
     * 今日交易金额（分）
     */
    @NotNull(message = "今日交易金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dayTranMoney;

    /**
     * 本月交易笔数（笔）
     */
    @NotNull(message = "本月交易笔数（笔）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long monthTranNum;

    /**
     * 本月交易金额（分）
     */
    @NotNull(message = "本月交易金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long monthTranMoney;

    /**
     * 本年交易笔数（笔）
     */
    @NotNull(message = "本年交易笔数（笔）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long yearTranNum;

    /**
     * 本年交易金额（分）
     */
    @NotNull(message = "本年交易金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long yearTranMoney;


}
