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

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

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

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

    /**
     * 票据申请id
     */
    private Long invId;

    /**
     * 票据申请编号
     */
    @NotBlank(message = "票据申请编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invNo;

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

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

    /**
     * 发票样张地址
     */
    @NotBlank(message = "发票样张地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invPic;

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

    /**
     * 添加人
     */
    private String addBy;

    /**
     * 添加时间
     */
    private Date addTime;


}
