|
|
@@ -1,5 +1,10 @@
|
|
|
package com.ruoyi.logistics.domain.dto;
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import com.alibaba.excel.annotation.format.DateTimeFormat;
|
|
|
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.ruoyi.common.core.annotation.Excel;
|
|
|
|
|
|
@@ -10,15 +15,19 @@ import java.util.Date;
|
|
|
/**
|
|
|
* 批量下单 DTO 对象
|
|
|
*/
|
|
|
+@HeadRowHeight(20)
|
|
|
+@ExcelIgnoreUnannotated
|
|
|
public class JDOrderDTO implements Serializable {
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
/** 寄件人姓名 */
|
|
|
- @Excel(name = "寄件人姓名")
|
|
|
+ @ExcelProperty(value = "寄件人姓名", order = 0)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String senderName;
|
|
|
|
|
|
/** 寄件人电话 */
|
|
|
- @Excel(name = "寄件人电话")
|
|
|
+ @ExcelProperty(value = "寄件人电话", order = 1)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String senderPhone;
|
|
|
|
|
|
/** 寄件省 */
|
|
|
@@ -31,15 +40,18 @@ public class JDOrderDTO implements Serializable {
|
|
|
private String senderCounty;
|
|
|
|
|
|
/** 寄件详细地址 */
|
|
|
- @Excel(name = "寄件详细地址")
|
|
|
+ @ExcelProperty(value = "寄件详细地址", order = 2)
|
|
|
+ @ColumnWidth(30)
|
|
|
private String senderAddress;
|
|
|
|
|
|
/** 收件人姓名 */
|
|
|
- @Excel(name = "收件人姓名")
|
|
|
+ @ExcelProperty(value = "收件人姓名", order = 3)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String receiverName;
|
|
|
|
|
|
/** 收件人电话 */
|
|
|
- @Excel(name = "收件人电话")
|
|
|
+ @ExcelProperty(value = "收件人电话", order = 4)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String receiverPhone;
|
|
|
|
|
|
/** 收件省 */
|
|
|
@@ -52,40 +64,48 @@ public class JDOrderDTO implements Serializable {
|
|
|
private String receiverCounty;
|
|
|
|
|
|
/** 收件详细地址 */
|
|
|
- @Excel(name = "收件详细地址")
|
|
|
+ @ExcelProperty(value = "收件详细地址", order = 5)
|
|
|
+ @ColumnWidth(30)
|
|
|
private String receiverAddress;
|
|
|
|
|
|
/** 物品名称 */
|
|
|
- @Excel(name = "物品名称")
|
|
|
+ @ExcelProperty(value = "物品名称", order = 6)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String goodsName;
|
|
|
|
|
|
/** 物品重量 */
|
|
|
- @Excel(name = "物品重量", cellType = Excel.ColumnType.NUMERIC)
|
|
|
+ @ExcelProperty(value = "物品重量", order = 7)
|
|
|
+ @ColumnWidth(15)
|
|
|
private BigDecimal goodsWeight;
|
|
|
|
|
|
/** 物品体积 */
|
|
|
- @Excel(name = "物品体积", cellType = Excel.ColumnType.NUMERIC)
|
|
|
+ @ExcelProperty(value = "物品体积", order = 8)
|
|
|
+ @ColumnWidth(15)
|
|
|
private BigDecimal goodsVolume;
|
|
|
|
|
|
/** 物品数量 */
|
|
|
- @Excel(name = "物品数量", cellType = Excel.ColumnType.NUMERIC)
|
|
|
+ @ExcelProperty(value = "物品数量", order = 9)
|
|
|
+ @ColumnWidth(15)
|
|
|
private Long goodsQty;
|
|
|
|
|
|
/** 取件类型 */
|
|
|
private Integer pickupType;
|
|
|
|
|
|
/** 上门取件开始时间 */
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
- @Excel(name = "上门取件开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
- private Date sendStartTime;
|
|
|
+// @DateTimeFormat("yyyy-MM-dd HH:00:00")
|
|
|
+ @ExcelProperty(value = "上门取件开始时间", order = 10, format = "TEXT")
|
|
|
+ @ColumnWidth(30)
|
|
|
+ private String sendStartTime;
|
|
|
|
|
|
/** 上门取件结束时间 */
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
- @Excel(name = "上门取件结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
- private Date sendEndTime;
|
|
|
+// @DateTimeFormat("yyyy-MM-dd HH:00:00")
|
|
|
+ @ExcelProperty(value = "上门取件结束时间", order = 11, format = "TEXT")
|
|
|
+ @ColumnWidth(30)
|
|
|
+ private String sendEndTime;
|
|
|
|
|
|
/** 产品类型 */
|
|
|
- @Excel(name = "产品类型", combo = {"京东标快", "京东特快", "特快重货"})
|
|
|
+ @ExcelProperty(value = "产品类型", order = 12)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String productCode;
|
|
|
|
|
|
/** 增值服务 */
|
|
|
@@ -95,15 +115,18 @@ public class JDOrderDTO implements Serializable {
|
|
|
private String remark;
|
|
|
|
|
|
/** 包装服务 */
|
|
|
- @Excel(name = "包装服务", combo = {"是", "否"})
|
|
|
+ @ExcelProperty(value = "包装服务", order = 13)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String isPack;
|
|
|
|
|
|
/** 保价金额 */
|
|
|
- @Excel(name = "保价金额", cellType = Excel.ColumnType.NUMERIC)
|
|
|
+ @ExcelProperty(value = "保价金额", order = 14)
|
|
|
+ @ColumnWidth(15)
|
|
|
private BigDecimal guaranteeMoney;
|
|
|
|
|
|
/** 签单返还 */
|
|
|
- @Excel(name = "签单返还", combo = {"是", "否"})
|
|
|
+ @ExcelProperty(value = "签单返还", order = 15)
|
|
|
+ @ColumnWidth(15)
|
|
|
private String isReceiptCollect;
|
|
|
|
|
|
public String getSenderName() {
|
|
|
@@ -242,19 +265,19 @@ public class JDOrderDTO implements Serializable {
|
|
|
this.pickupType = pickupType;
|
|
|
}
|
|
|
|
|
|
- public Date getSendStartTime() {
|
|
|
+ public String getSendStartTime() {
|
|
|
return sendStartTime;
|
|
|
}
|
|
|
|
|
|
- public void setSendStartTime(Date sendStartTime) {
|
|
|
+ public void setSendStartTime(String sendStartTime) {
|
|
|
this.sendStartTime = sendStartTime;
|
|
|
}
|
|
|
|
|
|
- public Date getSendEndTime() {
|
|
|
+ public String getSendEndTime() {
|
|
|
return sendEndTime;
|
|
|
}
|
|
|
|
|
|
- public void setSendEndTime(Date sendEndTime) {
|
|
|
+ public void setSendEndTime(String sendEndTime) {
|
|
|
this.sendEndTime = sendEndTime;
|
|
|
}
|
|
|
|