Browse Source

成本报表 发运日期报错

liuchaohui 2 years ago
parent
commit
b14328c3dd

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/entity/SyCostAllocationShipdetail.java

@@ -66,7 +66,7 @@ public class SyCostAllocationShipdetail implements Serializable {
     /**出运日期*/
     @Excel(name = "出运日期", width = 15)
     @ApiModelProperty(value = "出运日期")
-    private Data outdata;
+    private String outdata;
     /**汇率*/
     @Excel(name = "汇率", width = 15)
     @ApiModelProperty(value = "汇率")

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/service/impl/SyCostAllocationServiceImpl.java

@@ -500,7 +500,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
         //发运明细
         String sqlShipdetail = "SELECT  " +
                 "  sh.cDefine10 AS invoiceNum,  " +
-                "  max(sh.dcreatesystime) as outdata ," +
+                "  CONVERT(varchar (100), max(sh.dcreatesystime), 23) as outdata ," +
                 "  count(shs.SBVID) as shipQuantity,"+
                 "  sh.iExchRate AS exchangeRate,  " +
                 "  sh.cSOCode AS orderNum,  " +