소스 검색

数据大屏数据修改,解决数据对应不上问题

zhangchen 3 달 전
부모
커밋
adca44435f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      alien-entity/src/main/resources/mapper/ManagementInfoMapper.xml

+ 2 - 2
alien-entity/src/main/resources/mapper/ManagementInfoMapper.xml

@@ -673,13 +673,13 @@
             store_id,
             store.store_name,
             ROUND(SUM(final_price), 2 ) AS operation_revenue,
-            ROUND(SUM(final_price) * (1-IFNULL(store.commission_rate, 3)/100),2) AS store_profit,
+            ROUND(SUM(final_price) - ROUND(SUM(final_price) * (IFNULL(store.commission_rate, 3)/100),2), 2) AS store_profit,
             ROUND(SUM(final_price) * (IFNULL(store.commission_rate, 3)/100),2) AS platform_profit
         FROM
             life_user_order `order`
                 LEFT JOIN store_info store ON store.id = `order`.store_id
         WHERE
-            `status` = 1
+            `status` = 2
         <if test="startTime != null and startTime != ''" >
             AND used_time > #{startTime}
         </if>