Payment.java 1.26 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import vion.dto.PaymentDTO;
import vion.vo.PaymentVO;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 收款记录表
 */
@Data
@TableName(value = "tbl_payment")
@AutoMappers({
        @AutoMapper(target = PaymentVO.class),
        @AutoMapper(target = PaymentDTO.class),
})
public class Payment {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 合同编号
     */
    @TableField(value = "contract_no")
    private String contractNo;

    /**
     * 流水号
     */
    @TableField(value = "serial_no")
    private String serialNo;

    /**
     * 收款时间
     */
    @TableField(value = "collection_time")
    private Date collectionTime;

    /**
     * 收款金额
     */
    @TableField(value = "payment_amount")
    private BigDecimal paymentAmount;

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

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}