소스 검색

快手-盯盘排序

yangzian 3 년 전
부모
커밋
d745bb5f4e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

+ 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,