tyb 2 месяцев назад
Родитель
Сommit
397f897c28
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/resources/mybatis/mapper/reports/TTempClueMapper.xml

+ 1 - 1
src/main/resources/mybatis/mapper/reports/TTempClueMapper.xml

@@ -189,7 +189,7 @@
         #客单价
         SELECT
         f.city_name as cityName,
-        IFNULL(sum(e.pay_amount)/count(DISTINCT a.id),0) as payAmount
+        IFNULL(convert(sum(e.pay_amount)/count(DISTINCT a.id),decimal(10,2)),0) as payAmount
         FROM
             jlife_nurse.jzbm_order a
         Left JOIN jlife_nurse.jzbm_contract b ON a.order_no = b.order_no AND b.contract_type IN ( 1, 2 )