|
|
@@ -0,0 +1,79 @@
|
|
|
+package com.cyksj.model.excel;
|
|
|
+
|
|
|
+
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import com.ejlchina.searcher.bean.DbField;
|
|
|
+import com.ejlchina.searcher.bean.DbIgnore;
|
|
|
+import com.ejlchina.searcher.bean.SearchBean;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+@SearchBean(tables = "gpt_recharge_card_key gk left join gpt_recharge_card_key_channel gc on gc.id = gk.channel_id")
|
|
|
+@ExcelIgnoreUnannotated
|
|
|
+public class GptCardKeyExcelData {
|
|
|
+
|
|
|
+ @DbField("gk.id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @DbField("gk.card_key")
|
|
|
+ @ExcelProperty("卡密")
|
|
|
+ private String cardKey;
|
|
|
+
|
|
|
+ @DbField("gk.status")
|
|
|
+ private Boolean status;
|
|
|
+
|
|
|
+ @DbIgnore
|
|
|
+ @ExcelProperty("使用状态")
|
|
|
+ private String statusStr;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 卡密支持类型 0月付 1.季、年付
|
|
|
+ */
|
|
|
+ @DbField("gk.type")
|
|
|
+ private Integer type;
|
|
|
+
|
|
|
+ @DbIgnore
|
|
|
+ @ExcelProperty("类型")
|
|
|
+ private String typeStr;
|
|
|
+
|
|
|
+ @DbField("gk.order_id")
|
|
|
+ private Long orderId;
|
|
|
+
|
|
|
+ @DbField("gk.order_no")
|
|
|
+ @ExcelProperty("订单号")
|
|
|
+ private String orderNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 渠道id
|
|
|
+ */
|
|
|
+ @DbField("gk.channel_id")
|
|
|
+ private Long channelId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 渠道
|
|
|
+ */
|
|
|
+ @DbField("gc.channel")
|
|
|
+ @ExcelProperty("渠道")
|
|
|
+ private String channel;
|
|
|
+
|
|
|
+ @DbField("gk.created_time")
|
|
|
+ @ExcelProperty("创建时间")
|
|
|
+ private Date createdTime;
|
|
|
+
|
|
|
+ @DbField("gk.update_time")
|
|
|
+ @ExcelProperty("更新时间")
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
+ public String getStatusStr() {
|
|
|
+ return status ? "已使用" : "未使用";
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTypeStr() {
|
|
|
+ return type == 0 ? "月付" : "季/年付";
|
|
|
+ }
|
|
|
+}
|