package com.pj.project.tb_charge_record;

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

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * Model: tb_charge_record -- 充值记录
 *
 * @author qzy
 */
@Data
@Accessors(chain = true)
@TableName(TbChargeRecord.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbChargeRecord extends Model<TbChargeRecord> implements Serializable {

    // ---------- 模块常量 ----------
    /**
     * 序列化版本id
     */
    private static final long serialVersionUID = 1L;
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "tb_charge_record";
    /**
     * 此模块对应的权限码
     */
    public static final String PERMISSION_CODE = "tb-charge-record";


    // ---------- 表中字段 ----------
    /**
     * 主键
     */
    private String id;

    /**
     * 客户id
     */
    private String customerId;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 充值金额
     */
    private BigDecimal money;
    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 充值渠道
     */
    private String chargeChannel;

    /**
     * 充值时间
     */
    private Date createTime;

    /**
     * 充值人
     */
    private String chargePeople;

    /**
     * 订单号
     */
    private String no;

    @Getter
    @AllArgsConstructor
    public static enum Ch {
        PC("PC充值"),
        ZHIFUBAO("支付宝充值"),
        WECHAT("微信充值");
        private String type;
    }


}
