浏览代码

快手-盯盘排序

yangzian 3 年之前
父节点
当前提交
d745bb5f4e

+ 2 - 2
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -441,7 +441,7 @@
                         IFNULL(ROUND(  (h.charge  /  h.event_pay ), 2 ),0) AS tData,
                     </if>
                     <if test='type == "eventPayRate"'>
-                        IF(( h.event_pay  /   h.activation  +  h.form_count ) > 0.0001,ROUND( ( h.event_pay  /  h.activation  +  h.form_count ) * 100, 2 ),0) AS tData,
+                        IF(( h.event_pay  /   (h.activation  +  h.form_count) ) > 0.0001,ROUND( ( h.event_pay  /  (h.activation  +  h.form_count) ) * 100, 2 ),0) AS tData,
                     </if>
                     <if test='type == "eventNewUserPay"'>
                         IFNULL( h.event_new_user_pay ,0) AS tData,
@@ -528,7 +528,7 @@
                         IFNULL(ROUND(  (h.charge  /  h.event_pay ), 2 ),0) AS yData,
                     </if>
                     <if test='type == "eventPayRate"'>
-                        IF(( h.event_pay  /   h.activation  +  h.form_count ) > 0.0001,ROUND( ( h.event_pay  /  h.activation  +  h.form_count ) * 100, 2 ),0) AS yData,
+                        IF(( h.event_pay  /   (h.activation  +  h.form_count) ) > 0.0001,ROUND( ( h.event_pay  /  (h.activation  +  h.form_count) ) * 100, 2 ),0) AS yData,
                     </if>
                     <if test='type == "eventNewUserPay"'>
                         IFNULL( h.event_new_user_pay ,0) AS yData,