Browse Source

sql 关键字注解

zhaoxian 1 year ago
parent
commit
6812307887

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

@@ -641,7 +641,7 @@
         IF(SUM( d.charge ) / SUM( d.activation ) > 0.0001,ROUND( SUM( d.charge ) / SUM( d.activation ), 2 ),0) AS
         activationPrice,
         IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM(
-        d.activation ) * 100, 2 ),'%'),0.00)AS leave,
+        d.activation ) * 100, 2 ),'%'),0.00)AS 'leave',
         IFNULL(SUM( d.event_pay ),0) AS eventPay,
         IF(SUM( d.charge ) / SUM( d.event_pay ) > 0.0001,ROUND( SUM( d.charge ) / SUM( d.event_pay ), 2 ),0) AS
         eventPayCost,
@@ -837,7 +837,7 @@
         IFNULL(SUM( d.activation ),0) AS activation,
         IFNULL(ROUND( SUM( d.charge ) / SUM( d.activation ), 2 ),0) AS activationPrice,
         IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM(
-        d.activation ) * 100, 2 ),'%'),0.00) AS leave,
+        d.activation ) * 100, 2 ),'%'),0.00) AS 'leave',
         IFNULL(SUM( d.event_pay ),0) AS eventPay,
         IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_pay ), 2 ),0) AS eventPayCost,
         IF(SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001,CONCAT(ROUND( SUM( d.event_pay ) /
@@ -1250,7 +1250,7 @@
             SUM( d.event_next_day_stay ) AS eventNextDayStay,
         </if>
         <if test='type == "leave"'>
-            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS leave,
+            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS 'leave',
         </if>
         d.ad_scene AS adScene
         FROM
@@ -1346,7 +1346,7 @@
             SUM( d.event_next_day_stay ) AS eventNextDayStay,
         </if>
         <if test='type == "leave"'>
-            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS leave,
+            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS 'leave',
         </if>
         d.age_segment AS ageSegment
         FROM
@@ -1397,7 +1397,7 @@
             SUM( d.event_next_day_stay ) AS eventNextDayStay,
         </if>
         <if test='type == "leave"'>
-            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS leave,
+            IFNULL( ROUND( SUM( d.event_next_day_stay ) / SUM( d.activation ), 2 ), 0 ) AS 'leave',
         </if>
         d.gender AS gender
         FROM