From 2e2a241d0365acf73dfe17087f2541b1a1edb337 Mon Sep 17 00:00:00 2001
From: 罗元桥 <2376770955@qq.com>
Date: 星期一, 18 十月 2021 18:05:23 +0800
Subject: [PATCH] Merge branch 'test' into 'test_bak'

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/warehouse/ComActWarehouseApplyExcelVO.java |  123 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/warehouse/ComActWarehouseApplyExcelVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/warehouse/ComActWarehouseApplyExcelVO.java
new file mode 100644
index 0000000..bd6b698
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/warehouse/ComActWarehouseApplyExcelVO.java
@@ -0,0 +1,123 @@
+package com.panzhihua.common.model.vos.community.warehouse;
+
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.converters.string.StringImageConverter;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.panzhihua.common.utlis.StringUtils;
+import lombok.Data;
+
+import java.net.URL;
+import java.util.Date;
+
+/**
+ * @author zzj
+ */
+@Data
+public class ComActWarehouseApplyExcelVO {
+
+    @ExcelProperty(value = "申领流水",index = 10)
+    private Integer id;
+
+    /**
+     * 物品数量
+     */
+    @ExcelProperty(value = "物品数量",index = 6)
+    private Integer goodsNum;
+
+    /**
+     * 预约时间
+     */
+    @ExcelProperty(value = "预约领用时间",index = 7)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date reserveTime;
+
+    /**
+     * 实际时间
+     */
+    @ExcelProperty(value = "实际领用时间",index = 8)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date actualTime;
+
+    /**
+     * 理由
+     */
+    @ExcelProperty(value = "主要困难",index = 9)
+    private String reason;
+
+    /**
+     * 领取图片
+     */
+    @ExcelIgnore
+    private URL receiveUrl;
+
+    /**
+     * 提交时间
+     */
+    @ExcelProperty(value = "提交时间",index = 13)
+    private Date createTime;
+
+    /**
+     * 状态 0待处理 1 待领取 2已拒绝 3已领取 -1已取消
+     */
+    @ExcelProperty(value = "状态",index =14)
+    private String status;
+    @ExcelProperty(value = "核销人",index = 12)
+    private String writeOffUserName;
+
+    /**
+     * 申请人
+     */
+    @ExcelProperty(value = "申请人",index = 0)
+    private String applyName;
+
+    /**
+     * 申请人联系电话
+     */
+    @ExcelProperty(value = "申请人联系电话",index = 1)
+    private String applyPhone;
+
+    /**
+     * 申请物品
+     */
+    @ExcelProperty(value = "申请物品",index = 2)
+    private String item;
+
+    /**
+     * 捐赠人
+     */
+    @ExcelProperty(value = "捐赠人",index = 3)
+    private String donateName;
+
+    /**
+     * 捐赠人联系方式
+     */
+    @ExcelProperty(value = "捐赠人联系方式",index = 4)
+    private String donatePhone;
+
+    /**
+     * 物品图片
+     */
+    @ExcelIgnore
+    private URL image;
+
+    public void setStatus(String status) {
+        if(StringUtils.isNotEmpty(status)){
+            if("-1".equals(status)){
+                status="已取消";
+            }else if("0".equals(status)){
+                status="待处理";
+            }
+            else if("1".equals(status)){
+                status="待领取";
+            }
+            else if("2".equals(status)){
+                status="已驳回";
+            }
+            else if("3".equals(status)){
+                status="已领取";
+            }
+            this.status=status;
+        }
+    }
+}

--
Gitblit v1.7.1