New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.kidgrow.common.model.BaseModel; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @version 1.0 |
| | | * @Description: <br> |
| | | * @Project: 运营中心<br> |
| | | * @CreateDate: Created in 2020-06-23 15:07:14 <br> |
| | | * @Author: <a href="411269194@kidgrow.com">houruijun</a> |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("consumption_record") |
| | | public class ConsumptionRecord extends BaseModel { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * 上次消费记录id(用于退费,扣费) |
| | | */ |
| | | @TableId |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | /** |
| | | * 上次消费记录id(用于退费,扣费) |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long lastRecordId; |
| | | /** |
| | | * 用户充值的套餐id |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @NotNull(message = "用户充值的套餐id不能为空") |
| | | private Long proOrderDetailId; |
| | | /** |
| | | * 调用方业务编号,光片名称 |
| | | */ |
| | | private String businessId; |
| | | /** |
| | | * 记录类型 |
| | | * 1:预扣费 |
| | | * 2:退预扣费(需要关联预扣费编号) |
| | | * 3:退扣费(需要关联扣费编号) |
| | | * 4:扣费(需要关联预扣费编号) |
| | | */ |
| | | @NotNull(message = "记录类型不能为空") |
| | | private Integer recordType; |
| | | /** |
| | | * 业务返回结果 |
| | | * bcode 含义 |
| | | * --------------------------------- |
| | | * 100 余额充足 |
| | | * 101 余额不足 |
| | | * 200 已经预扣 |
| | | * 201 已经扣费 |
| | | * 300 退还预扣 |
| | | * 301 退还扣费 |
| | | * 400 义务执行出错 |
| | | * 401 参数为空异常 |
| | | * 402 业务失败 |
| | | */ |
| | | @NotEmpty(message = "业务返回结果不能为空") |
| | | private Integer businessCode; |
| | | /** |
| | | * 扣费数量/金额 |
| | | */ |
| | | @NotNull(message = "扣费数量/金额不能为空") |
| | | private Integer consumptionCount; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @NotNull(message = "创建时间不能为空") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | } |