小么熊🐻 vor 2 Jahren
Ursprung
Commit
c75c682b63
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      jsjp-service/src/main/resources/mapper/order/OrderInfoMapper.xml

+ 4 - 4
jsjp-service/src/main/resources/mapper/order/OrderInfoMapper.xml

@@ -60,8 +60,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select
         school,
         school_name,
-        sum(school_commission) as school_commission,
-        sum(total) as order_total,
+        IFNULL(sum(school_commission),0) as school_commission,
+        IFNULL(sum(total),0) as order_total,
         COUNT(DISTINCT logincode) as people_count,
         COUNT(id) as order_count,
         IFNULL(COUNT(DISTINCT logincode),0)*49*100 as activation_commission,
@@ -99,8 +99,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select
         school,
         school_name,
-        sum(school_commission)/100 as school_commission,
-        sum(total)/100 as order_total,
+        IFNULL(sum(school_commission)/100,0) as school_commission,
+        IFNULL(sum(total)/100,0) as order_total,
         COUNT(DISTINCT logincode) as people_count,
         COUNT(id) as order_count,
         IFNULL(COUNT(DISTINCT logincode),0)*49 as activation_commission,