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 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 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 activityItemIds; /** * @desc : 活动Id数组--续费时候是多个id */ @ApiModelProperty(value = "活动Id数组") @Excel(name = "活动Id数组") @TableField(typeHandler = UuidListTypeHandler.class) private List 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; }