@@ -55,6 +55,7 @@ SELECT
END
) AS c2,
CONCAT(
+ IF(COUNT(*) = 0, 0,
FLOOR(
COUNT(
CASE
@@ -64,9 +65,10 @@ SELECT
THEN mx.id
) * 100 / COUNT(*)
- ),
- '%'
- ) AS c3
+ )
+ ),
+ '%'
+) AS c3
FROM
dbr_sorder AS mx;
@@ -76,3 +78,5 @@ DELIMITER ;
CALL lt1_shop_dash_2_left_top('', '', '', '', '', '', '', '',
'', '', '', '', '', 1, 1, 1, 1);
+