| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- package com.dk.oauth.entity;
- import cn.afterturn.easypoi.excel.annotation.Excel;
- import com.baomidou.mybatisplus.annotation.*;
- import com.dk.common.infrastructure.annotaiton.ExportTitle;
- import com.dk.common.infrastructure.handler.TimestampTypeHandler;
- import com.dk.common.infrastructure.handler.UuidListTypeHandler;
- import com.dk.common.infrastructure.handler.UuidTypeHandler;
- import com.dk.common.model.pojo.PageInfo;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.AllArgsConstructor;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import lombok.NoArgsConstructor;
- import lombok.experimental.Accessors;
- import java.io.Serializable;
- import java.math.BigDecimal;
- import java.time.LocalDate;
- import java.time.LocalDateTime;
- import java.util.List;
- /**
- * 交易记录
- */
- @Data
- @AllArgsConstructor
- @NoArgsConstructor
- @EqualsAndHashCode(callSuper = true)
- @Accessors(chain = true)
- @ExportTitle("企业")
- @TableName(value = "t_cp_trade", schema = "dkic_a", autoResultMap = true)
- @ApiModel(value = "实体类:交易记录", description = "表名:t_cp_trade")
- public class Trade extends PageInfo<Trade> implements Serializable {
- /**
- * 交易ID
- */
- @TableId(value = "trade_id", type = IdType.AUTO)
- @ApiModelProperty(value = "交易ID")
- private Integer tradeId;
- /**
- * 企业ID
- */
- @ApiModelProperty(value = "企业ID")
- private Integer cpId;
- /**
- * 交易单号
- */
- @Excel(name = "交易单号")
- @ApiModelProperty(value = "交易单号")
- private String tradeNo;
- /**
- * 员工工种
- */
- @Excel(name = "微信用户")
- @ApiModelProperty(value = "微信用户")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String wxUserId;
- /**
- * 交易金额
- */
- @Excel(name = "交易金额")
- @ApiModelProperty(value = "交易金额")
- private BigDecimal tradeAmount;
- /**
- * 订单金额
- */
- @Excel(name = "订单金额")
- @ApiModelProperty(value = "订单金额")
- private BigDecimal orderAmount;
- /**
- * 交易时间
- */
- @Excel(name = "交易时间")
- @ApiModelProperty(value = "交易时间")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @TableField(typeHandler = TimestampTypeHandler.class)
- private LocalDate tradeTime;
- /**
- * 交易类型 (版本升级、功能单买、。。。)
- */
- @Excel(name = "交易类型")
- @ApiModelProperty(value = "交易类型")
- private String tradeType;
- /**
- * 购买时长 (1天、1月、1年。。)
- */
- @Excel(name = "购买时长 (1天、1月、1年。。)")
- @ApiModelProperty(value = "购买时长 (1天、1月、1年。。)")
- private String buyLong;
- /**
- * 开始日期
- */
- @Excel(name = "开始日期")
- @ApiModelProperty(value = "开始日期")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @TableField(typeHandler = TimestampTypeHandler.class, updateStrategy = FieldStrategy.IGNORED)
- private LocalDate buyBeginDate;
- /**
- * 结束日期
- */
- @Excel(name = "结束日期")
- @ApiModelProperty(value = "结束日期")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @TableField(typeHandler = TimestampTypeHandler.class, updateStrategy = FieldStrategy.IGNORED)
- private LocalDate buyEndDate;
- /**
- * @desc : 购买功能
- */
- @ApiModelProperty(value = "购买功能")
- @Excel(name = "购买功能")
- @TableField(typeHandler = UuidListTypeHandler.class)
- private List<String> buyFunId;
- @Excel(name = "开票标识")
- @ApiModelProperty(value = "开票标识")
- private String receiptStatus;
- /**
- * 购买版本
- */
- @Excel(name = "购买版本")
- @ApiModelProperty(value = "购买版本")
- private String buyGradeCode;
- /**
- * 微信交易单号
- */
- @Excel(name = "微信交易单号")
- @ApiModelProperty(value = "微信交易单号")
- private String wxTradeNo;
- /**
- * 延长日期 (单位天:按月购买时可以是28、30、31,按年时可以是365、366等)
- */
- @Excel(name = "延长日期 (单位天:按月购买时可以是28、30、31,按年时可以是365、366等)'")
- @ApiModelProperty(value = "延长日期 (单位天:按月购买时可以是28、30、31,按年时可以是365、366等)'")
- private Integer extendDays;
- /**
- * @desc : 东科用户 (null:自缴费)
- */
- @ApiModelProperty(value = "东科用户")
- @Excel(name = "东科用户")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String dkUserId;
- /**
- * @desc : 交易状态
- */
- private String tradeStatus;
- /**
- * @desc : 活动Id-要用数组的,因为续费有多个
- */
- @ApiModelProperty(value = "活动Id")
- @Excel(name = "活动Id")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String activityId;
- /**
- * @desc : 活动明细Id-要用数组的,因为续费有多个
- */
- @ApiModelProperty(value = "活动明细Id")
- @Excel(name = "活动明细Id")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String activityItemId;
- /**
- * @desc : 活动明细Id数组--续费时候是多个id
- */
- @ApiModelProperty(value = "活动明细Id数组")
- @Excel(name = "活动明细Id数组")
- @TableField(typeHandler = UuidListTypeHandler.class)
- private List<String> activityItemIds;
- /**
- * @desc : 活动Id数组--续费时候是多个id
- */
- @ApiModelProperty(value = "活动Id数组")
- @Excel(name = "活动Id数组")
- @TableField(typeHandler = UuidListTypeHandler.class)
- private List<String> activityIds;
- /**
- * @desc : 优惠券使用ID
- */
- @ApiModelProperty(value = "优惠券使用ID")
- @Excel(name = "优惠券使用ID")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String couponUseId;
- /**
- * @desc : 积分分享ID-使用积分的时候使用
- */
- @ApiModelProperty(value = "积分分享ID")
- @Excel(name = "积分分享ID")
- @TableField(typeHandler = UuidTypeHandler.class)
- private String integralShareId;
- /**
- * 积分
- */
- @Excel(name = "积分")
- @ApiModelProperty(value = "积分")
- private Integer integral;
- /**
- * 操作员工
- */
- @Excel(name = "操作员工")
- @ApiModelProperty(value = "操作员工")
- private String staffName;
- /**
- * @desc : 交易描述
- */
- private String tradeDesc;
- /*
- * 相关属性
- * @TableField(exist = false)
- */
- /*
- * 关联属性 + 查询条件
- * @TableField(exist = false)
- */
- /**
- * 创建时间
- */
- @ApiModelProperty(value = "创建时间")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @TableField(exist = false)
- private LocalDate tradeTimeStart;
- /**
- * 创建时间
- */
- @ApiModelProperty(value = "创建时间")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @TableField(exist = false)
- private LocalDate tradeTimeEnd;
- private static final long serialVersionUID = 1L;
- }
|