package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.page.BasePage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * (TurnMembershipCardMx)实体类
 *
 * @author makejava
 * @since 2022-07-01 09:24:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class TurnMembershipCardMxRequest  extends BasePage implements Serializable {
    private static final long serialVersionUID = -29652603417544505L;
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * 会员转卡包Id
     */
    @Column(name = "turn_membership_card_id")
    private Long turnMembershipCardId;
    /**
     * 类型(0=充值卡，1-疗程卡)
     */
    @Column(name = "type")
    private Integer type;
    /**
     * 转出卡包账户Id
     */
    @Column(name = "account_id")
    private Long accountId;
    /**
     * 转出金额
     */
    @Column(name = "out_card_rest_money")
    private BigDecimal outCardRestMoney;
    /**
     * 账户可用金额
     */
    @Column(name = "card_consume_money")
    private BigDecimal cardConsumeMoney;
    /**
     * 转出赠送金额
     */
    @Column(name = "out_gift_consume_money")
    private BigDecimal outGiftConsumeMoney;
    /**
     * 充值类别或项目ID
     */
    @Column(name = "recharge_or_project_id")
    private Long rechargeOrProjectId;
    /**
     * 充值类别或项目名称
     */
    @Column(name = "recharge_or_project_name")
    private String rechargeOrProjectName;
    /**
     * 充值类别或项目名称
     */
    @Column(name = "recharge_or_project_num")
    private String rechargeOrProjectNum;
    /**
     * 转出次数
     */
    @Column(name = "out_course_rest_count")
    private Integer outCourseRestCount;
    /**
     * 开卡可用次数
     */
    @Column(name = "course_consume_count")
    private Integer courseConsumeCount;
    /**
     * 剩余金额
     */
    @Column(name = "course_rest_price")
    private BigDecimal courseRestPrice;
    /**
     * 可用金额
     */
    @Column(name = "course_consume_price")
    private BigDecimal courseConsumePrice;
    /**
     * 取消前单价
     */
    @Column(name = "before_price")
    private BigDecimal beforePrice;
    /**
     * 取消前剩余金额
     */
    @Column(name = "before_rest_money")
    private BigDecimal beforeRestMoney;
    /**
     * 取消前可用金额
     */
    @Column(name = "before_consume_money")
    private BigDecimal beforeConsumeMoney;
    /**
     * 取消前剩余次数
     */
    @Column(name = "before_rest_count")
    private Integer beforeRestCount;
    /**
     * 取消前可用次数
     */
    @Column(name = "before_consume_count")
    private Integer beforeConsumeCount;
    /**
     * 取消后单价
     */
    @Column(name = "back_price")
    private BigDecimal backPrice;
    /**
     * 取消后剩余金额
     */
    @Column(name = "back_rest_money")
    private BigDecimal backRestMoney;
    /**
     * 取消后可用金额
     */
    @Column(name = "back_consume_money")
    private BigDecimal backConsumeMoney;
    /**
     * 取消后剩余次数
     */
    @Column(name = "back_rest_count")
    private Integer backRestCount;
    /**
     * 取消后可用次数
     */
    @Column(name = "back_consume_count")
    private Integer backConsumeCount;
    /**
     * 取消前剩余赠送金额
     */
    @Column(name = "before_gift_rest_money")
    private BigDecimal beforeGiftRestMoney;
    /**
     * 取消前可用赠送金额
     */
    @Column(name = "before_gift_consume_money")
    private BigDecimal beforeGiftConsumeMoney;
    /**
     * 取消后剩余赠送金额
     */
    @Column(name = "back_gift_rest_money")
    private BigDecimal backGiftRestMoney;
    /**
     * 取消后可用赠送金额
     */
    @Column(name = "back_gift_consume_money")
    private BigDecimal backGiftConsumeMoney;

    /**
     * 转入的会员ID
     */
    @Column(name = "roll_in_member_id")
    private Long rollInMemberId;
    /**
     * 转入的会员编码
     */
    @Column(name = "roll_in_member_num")
    private String rollInMemberNum;
    /**
     * 转入的会员名称
     */
    @Column(name = "roll_in_member_name")
    private String rollInMemberName;
    /**
     * 转出的会员手机号码
     */
    @Column(name = "roll_in_mobile_phone")
    private String rollInMobilePhone;
    /**
     * 转入的账户Id
     */
    @Column(name = "roll_in_acoount_id")
    private Long rollInAcoountId;


    /**
     * 取消前单价
     */
    @Column(name = "roll_in_before_price")
    private BigDecimal rollInBeforePrice;
    /**
     * 取消前剩余金额
     */
    @Column(name = "roll_in_before_rest_money")
    private BigDecimal rollInBeforeRestMoney;
    /**
     * 取消前可用金额
     */
    @Column(name = "roll_in_before_consume_money")
    private BigDecimal rollInBeforeConsumeMoney;
    /**
     * 取消前剩余次数
     */
    @Column(name = "roll_in_before_rest_count")
    private Integer rollInBeforeRestCount;
    /**
     * 取消前可用次数
     */
    @Column(name = "roll_in_before_consume_count")
    private Integer rollInBeforeConsumeCount;
    /**
     * 取消后单价
     */
    @Column(name = "roll_in_back_price")
    private BigDecimal rollInBackPrice;
    /**
     * 取消后剩余金额
     */
    @Column(name = "roll_in_back_rest_money")
    private BigDecimal rollInBackRestMoney;
    /**
     * 取消后可用金额
     */
    @Column(name = "roll_in_back_consume_money")
    private BigDecimal rollInBackConsumeMoney;
    /**
     * 取消后剩余次数
     */
    @Column(name = "roll_in_back_rest_count")
    private Integer rollInBackRestCount;
    /**
     * 取消后可用次数
     */
    @Column(name = "roll_in_back_consume_count")
    private Integer rollInBackConsumeCount;
    /**
     * 取消前剩余赠送金额
     */
    @Column(name = "roll_in_before_gift_rest_money")
    private BigDecimal rollInBeforeGiftRestMoney;
    /**
     * 取消前可用赠送金额
     */
    @Column(name = "roll_in_before_gift_consume_money")
    private BigDecimal rollInBeforeGiftConsumeMoney;
    /**
     * 取消后剩余赠送金额
     */
    @Column(name = "roll_in_back_gift_rest_money")
    private BigDecimal rollInBackGiftRestMoney;
    /**
     * 取消后可用赠送金额
     */
    @Column(name = "roll_in_back_gift_consume_money")
    private BigDecimal rollInBackGiftConsumeMoney;
}

