package org.dromara.work.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.work.domain.TpReceipt;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 收款管理视图对象 tp_receipt
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TpReceipt.class)
public class TpReceiptVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 收款渠道
     */
    @ExcelProperty(value = "收款渠道", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "pay_type")
    private Long qid;

    /**
     * 收款金额
     */
    @ExcelProperty(value = "收款金额")
    private Long price;

    /**
     * 汇款时间
     */
    @ExcelProperty(value = "汇款时间")
    private Date hkTime;

    /**
     * 状态（1=待认领，2=已认领）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=待认领,2=已认领,3=已作废")
    private Integer state;

    /**
     * 客户ID
     */
    @ExcelProperty(value = "客户ID")
    private Long cid;

    /**
     * 客户编号
     */
    @ExcelProperty(value = "客户编号")
    private String kcode;

    /**
     * 客户姓名
     */
    @ExcelProperty(value = "客户姓名")
    private String kname;

    /**
     * 认领时间
     */
    @ExcelProperty(value = "认领时间")
    private Date rlTime;

    /**
     * 认领人
     */
    @ExcelProperty(value = "认领人")
    private Long rid;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 是否删除（1=未删除，2=已删除）
     */
    @ExcelProperty(value = "是否作废", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=未作废,2=已作废")
    private Long isDel;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date addTime;

    /**
     * 操作人
     */
    @ExcelProperty(value = "操作人")
    private Long addUser;

    /**
     * 退款金额
     */
    @ExcelProperty(value = "退款金额")
    private Integer returnMoney;

    /**
     * 退款备注
     */
    @ExcelProperty(value = "退款备注")
    private String returnRemark;

    /**
     * 外部交易号
     */
    @ExcelProperty(value = "外部交易号")
    private String outTradeNo;

    /**
     * 交易流水号
     */
    @ExcelProperty(value = "交易流水号")
    private String tradeNo;

    /**
     * 客户姓名
     */
    @ExcelProperty(value = "客户姓名")
    private String cname;

    /**
     * 认领人姓名
     */
    @ExcelProperty(value = "认领人姓名")
    private String rname;

    /**
     * 操作人姓名
     */
    @ExcelProperty(value = "操作人姓名")
    private String addname;


}
