| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- package com.cyksj.model.excel;
- import com.alibaba.excel.annotation.ExcelIgnore;
- import com.alibaba.excel.annotation.ExcelProperty;
- import com.cyksj.model.entity.OrderDon;
- 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;
- /*
- *项目名: netflix
- *文件名: ExcelRealGoodsOrderData
- *创建者: JavaZou
- *创建时间:2023/3/8 12:01
- */
- @Getter
- @Setter
- @SearchBean(tables = "order_don o left join goods_don_sku sku on o.sku_id = sku.id " +
- "left join goods_don g on g.id = sku.goods_id " +
- "left join user u on o.user_id = u.id " +
- "left join groups_relation gr on gr.id = o.relation_id " +
- "left join channel_popularize cp on o.popularize_id = cp.id " +
- "left join channel c on c.id = cp.channel_id " +
- "left join order_don_transport odt on odt.order_id = o.id")
- public class ExcelRealGoodsOrderData {
- @DbField("c.id")
- @ExcelIgnore
- private Long channelId;
- @DbField("o.relation_id")
- @ExcelIgnore
- private Long relationId;
- @DbField("gr.groups_id")
- @ExcelIgnore
- private Long groupsId;
- @DbField("gr.account")
- @ExcelIgnore
- private String account;
- @DbField("g.type")
- @ExcelIgnore
- private Integer goodsDonType;
- @DbField("g.second_type")
- @ExcelIgnore
- private Integer secondType;
- @DbField("o.order_no")
- @ExcelIgnore
- private String orderNo;
- @DbField("o.transaction_id")
- @ExcelIgnore
- private String transactionId;
- @DbField("g.title")
- @ExcelIgnore
- private String title;
- @DbField("u.id")
- @ExcelIgnore
- private Long userId;
- @DbField("case when u.login_phone != '' then 'phone' when u.email != '' then 'email' when u.open_id != '' then 'wechat' else 'wechat' end")
- @ExcelIgnore
- private String register;
- @DbField("o.status")
- @ExcelIgnore
- private OrderDon.Status status;
- @DbField("o.type")
- @ExcelIgnore
- private OrderDon.Type type;
- @DbField("o.order_type")
- @ExcelIgnore
- private Integer orderType;
- @DbField("o.num")
- @ExcelIgnore
- private Integer num;
- @DbField("o.created_time")
- @ExcelIgnore
- private Date createdTime;
- @DbField("o.ex_code")
- @ExcelIgnore
- private String exCode;
- /**
- * 收货人
- */
- @ExcelProperty("序号")
- @DbIgnore
- private Integer index;
- /**
- * 收货人
- */
- @ExcelProperty("姓名")
- @DbField("odt.receiver")
- private String receiver;
- /**
- * 手机号
- */
- @ExcelProperty("手机号码")
- @DbField("odt.phone")
- private String phone;
- @ExcelProperty("座机号")
- private String landLine;
- @ExcelProperty("公司名称")
- private String company;
- /**
- * 省份
- */
- @ExcelProperty("省")
- @DbField("odt.province")
- private String province;
- /**
- * 城市
- */
- @ExcelProperty("市")
- @DbField("odt.city")
- private String city;
- /**
- * 区/县
- */
- @ExcelProperty("区")
- @DbField("odt.district")
- private String district;
- /**
- * 详细地址
- */
- @ExcelProperty("详细地址")
- @DbField("odt.address")
- private String address;
- @ExcelProperty("付款方式")
- private String payType;
- @ExcelProperty("月结卡号")
- private String monthCardNo;
- @ExcelProperty("托寄物名称")
- private String realGoodName;
- @ExcelProperty("代收卡号(可选增加服务)")
- private String toMoneyCardNumber;
- @ExcelProperty("代收金额(可选增值服务)")
- private String toMoney;
- @ExcelProperty("收件统编")
- private String deliveryNumber;
- @ExcelProperty("备注")
- private String remark;
- }
|