| package com.xzx.gc.entity; | 
|   | 
| import com.xzx.gc.common.entity.BaseEntity; | 
| import lombok.Data; | 
|   | 
| import javax.persistence.Table; | 
| import java.math.BigDecimal; | 
|   | 
| @Data | 
| @Table(name = "xzx_score_details") | 
| public class ScoreDetails extends BaseEntity { | 
|   | 
|     //订单编号 | 
|     private String orderNo; | 
|   | 
|     //用户ID | 
|     private String userId; | 
|   | 
|     //交易类型 1-用户充值2-集物员支付3-用户兑换所得4-用户消费5-消费退回6-管理员充值7-其他 | 
|     private Integer type; | 
|     public static final Integer SCORE_TYPE_USER_RECHARGE = 1; | 
|     public static final Integer SCORE_TYPE_PAY = 2; | 
|     public static final Integer SCORE_TYPE_EXCHANGE = 3; | 
|     public static final Integer SCORE_TYPE_SHOPPING = 4; | 
|     public static final Integer SCORE_TYPE_SHOPPING_RETURN = 5; | 
|     public static final Integer SCORE_TYPE_ADMIN_RECHARGE = 6; | 
|     public static final Integer SCORE_TYPE_OTHER = 7; | 
|   | 
|     //原始积分 | 
|     private BigDecimal originalScore; | 
|   | 
|     //变化积分 | 
|     private BigDecimal changeScore; | 
|   | 
|     //当前积分 | 
|     private BigDecimal currentScore; | 
| } |