Browse Source

销售来源统计导出百分比处理

anderx 3 years ago
parent
commit
f821cfe29f

+ 16 - 16
src/main/java/com/goafanti/order/bo/OutOrderSalesSource.java

@@ -6,39 +6,39 @@ import java.math.BigDecimal;
 
 public class OutOrderSalesSource {
     private Integer province;
-    @Excel(name = "省份")
+    @Excel(name = "省份",width = 10)
     private String name;
     @Excel(name = "签单金额(万元)",scale=6)
     private BigDecimal totalAmount;
-    @Excel(name = "签单数(个)")
+    @Excel(name = "签单数(个)",width = 10)
     private Integer counts;
-    @Excel(name = "电话")
+    @Excel(name = "电话",width = 10)
     private Integer dh;
-    @Excel(name = "电话占比",suffix = "%",percentage = 1)
+    @Excel(name = "电话占比",suffix = "%",percentage = 1,width = 10)
     private String dhl;
-    @Excel(name = "网络")
+    @Excel(name = "网络",width = 10)
     private Integer wl;
-    @Excel(name = "网络占比",suffix = "%",percentage = 1)
+    @Excel(name = "网络占比",suffix = "%",percentage = 1,width = 10)
     private String wll;
-    @Excel(name = "渠道")
+    @Excel(name = "渠道",width = 10)
     private Integer qd;
-    @Excel(name = "渠道占比",suffix = "%",percentage = 1)
+    @Excel(name = "渠道占比",suffix = "%",percentage = 1,width = 10)
     private String qdl;
-    @Excel(name = "转介绍")
+    @Excel(name = "转介绍",width = 10)
     private Integer zjs;
-    @Excel(name = "转介绍占比",suffix = "%",percentage = 1)
+    @Excel(name = "转介绍占比",suffix = "%",percentage = 1,width = 10)
     private String zjsl;
-    @Excel(name = "其他")
+    @Excel(name = "其他",width = 10)
     private Integer qt;
-    @Excel(name = "其他占比",suffix = "%",percentage = 1)
+    @Excel(name = "其他占比",suffix = "%",percentage = 1,width = 10)
     private String qtl;
-    @Excel(name = "高新复购")
+    @Excel(name = "高新复购",width = 10)
     private Integer gxfg;
-    @Excel(name = "高新复购占比",suffix = "%",percentage = 1)
+    @Excel(name = "高新复购占比",suffix = "%",percentage = 1,width = 10)
     private String gxfgl;
-    @Excel(name = "其他复购")
+    @Excel(name = "其他复购",width = 10)
     private Integer qtfg;
-    @Excel(name = "其他复购占比",suffix = "%",percentage = 1)
+    @Excel(name = "其他复购占比",suffix = "%",percentage = 1,width = 10)
     private String qtfgl;
 
     public Integer getProvince() {

+ 5 - 5
src/main/resources/props/config_local.properties

@@ -1,12 +1,12 @@
 dev.name=local
 jdbc.driverClassName=com.mysql.jdbc.Driver
 #jdbc.url=jdbc\:mysql://localhost:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
-jdbc.url=jdbc\:mysql://localhost:3306/aft20220318?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
-jdbc.username=root
-jdbc.password=123456
-#jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+#jdbc.url=jdbc\:mysql://localhost:3306/aft20220318?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 #jdbc.username=root
-#jdbc.password=aftdev
+#jdbc.password=123456
+jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+jdbc.username=root
+jdbc.password=aftdev
 jdbc.validationQuery=SELECT 'x'
 jdbc.initialSize=3
 jdbc.maxActive=20