package com.yh.saas.plugin.yiliangyiyun.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 记录代储费收费信息
 * </p>
 *
 * @author Gdc
 * @since 2022-01-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("storage_fee_record_charge")
public class StorageFeeRecordCharge extends BaseModel<StorageFeeRecordCharge> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 合同id
     */
    private String contractId;
    /**
     * 代储费记录id
     */
    private String storageFeeId;
    /**
     * 金额（元）
     */
    private Double amountMoney;
    /**
     * 收费截图
     */
    private String collectionScreenshot;
    /**
     * 收费日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date collectionDate;
    /**
     * 操作日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date operationDate;
    /**
     * 操作人
     */
    private String operator;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
