package com.hzs.common.domain.member.detail;

import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考核业绩变化明细表
 * </p>
 *
 * @author hzs
 * @since 2022-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("CU_MEMBER_ASSESS_DETAIL")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberAssessDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 主表主键
     */
    @TableField("PK_ASSESS")
    private Long pkAssess;

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 订单主键
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 变化类型 (0=复购考核新增1=复购考核扣除，2=分红考核新增,3=分红考核扣除)
     */
    @TableField("CHANGE_TYPE")
    private Integer changeType;

    /**
     * 交易时间
     */
    @TableField("TRADE_TIME")
    private Date tradeTime;

    /**
     * 交易金额
     */
    @TableField("TRADE_ACHIEVE")
    private BigDecimal tradeAchieve;

}
