Browse Source

1.控制台 费用校验平均时间保留两位小数

wuhp 1 year ago
parent
commit
4baa7d7e72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

+ 1 - 1
src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

@@ -1969,7 +1969,7 @@
         SELECT
         IFNULL(count(io.licenseno),0) as "orderNumber",
         IFNULL(sum(TIMESTAMPDIFF(SECOND, iac.createtime, iac.audittime)),0) as "sumSecond",
-        IFNULL(sum(TIMESTAMPDIFF(SECOND, iac.createtime, iac.audittime)),0) / count(io.licenseno)  as "averageSecond"
+        ROUND(IFNULL(sum(TIMESTAMPDIFF(SECOND, iac.createtime, iac.audittime)),0) / count(io.licenseno),2)  as "averageSecond"
         FROM
             ins_fee_audit ifa
             LEFT JOIN ins_orders io ON io.orderno = ifa.orderno