package com.ssm.manage.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class MemberCsRequest {
    /**
     * 主键Id
     */
    @Id
    private Long id;

    /**
     * 会员ID
     */
    @Column(name = "member_id")
    private Long memberId;

    /**
     * 会员名称
     */
    @Column(name = "member_name")
    private String memberName;

    /**
     * 手机
     */
    @Column(name = "mobile_phone")
    private String mobilePhone;

    /**
     * 门店编码
     */
    @Column(name = "store_id")
    private Long storeId;

    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 单据服务人ID
     */
    @Column(name = "staff_ids")
    private String staffIds;

    /**
     * 单据服务人名称
     */
    @Column(name = "staff_names")
    private String staffNames;

    /**
     * 单据ID
     */
    @Column(name = "doc_id")
    private Long docId;

    /**
     * 单据号
     */
    @Column(name = "doc_num")
    private String docNum;

    /**
     * 单据时间
     */
    @Column(name = "doc_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date docDate;

    /**
     * 单据类型
     */
    @Column(name = "doc_type")
    private String docType;

    /**
     * 交易ID
     */
    @Column(name = "trade_id")
    private Long tradeId;

    /**
     * 交易名称
     */
    @Column(name = "trade_name")
    private String tradeName;

    /**
     * 交易金额
     */
    @Column(name = "trade_money")
    private BigDecimal tradeMoney;

    /**
     * 交易次数
     */
    @Column(name = "trade_count")
    private Integer tradeCount;

    /**
     * 态度评分
     */
    @Column(name = "cs_attitude_star")
    private Integer csAttitudeStar;

    /**
     * 技术评分
     */
    @Column(name = "cs_technical_star")
    private Integer csTechnicalStar;

    /**
     * 其他评分
     */
    @Column(name = "cs_other_star")
    private Integer csOtherStar;

    /**
     * 评价
     */
    @Column(name = "cs_appraise")
    private String csAppraise;

    /*
    * 0:未评价 1:已评价
    * */
    private Integer state;
}
