|
|
@ -207,13 +207,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
p.publish_channels publishChannels, |
|
|
|
COALESCE(SUM(CASE WHEN m.publish_channels = p.publish_channels THEN 1 ELSE 0 END), 0) AS number |
|
|
|
FROM ( |
|
|
|
SELECT 1 AS publish_channels UNION ALL |
|
|
|
SELECT 2 AS publish_channels UNION ALL |
|
|
|
SELECT 3 AS publish_channels UNION ALL |
|
|
|
SELECT 4 AS publish_channels UNION ALL |
|
|
|
SELECT 5 AS publish_channels UNION ALL |
|
|
|
SELECT 6 UNION ALL |
|
|
|
SELECT 7 |
|
|
|
SELECT 7 UNION ALL |
|
|
|
SELECT 8 |
|
|
|
) AS p |
|
|
|
LEFT JOIN dc_publish_manage AS m ON p.publish_channels = m.publish_channels |
|
|
|
AND DATE(m.publish_time) = CURDATE() |
|
|
@ -258,10 +254,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
SELECT 23 |
|
|
|
) AS h |
|
|
|
CROSS JOIN ( |
|
|
|
SELECT 1 AS publish_channels |
|
|
|
UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL |
|
|
|
SELECT 5 UNION ALL SELECT 6 UNION ALL |
|
|
|
SELECT 7 |
|
|
|
SELECT 4 AS publish_channels |
|
|
|
UNION ALL SELECT 7 UNION ALL SELECT 8 |
|
|
|
) AS pc |
|
|
|
LEFT JOIN ( |
|
|
|
SELECT HOUR(publish_time) AS hour, publish_channels, COUNT(*)AS number |
|
|
@ -295,10 +289,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
SELECT 11 |
|
|
|
) AS h |
|
|
|
CROSS JOIN ( |
|
|
|
SELECT 1 AS publish_channels |
|
|
|
UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL |
|
|
|
SELECT 5 UNION ALL SELECT 6 UNION ALL |
|
|
|
SELECT 7 |
|
|
|
SELECT 4 AS publish_channels |
|
|
|
UNION ALL SELECT 7 UNION ALL SELECT 8 |
|
|
|
) AS pc |
|
|
|
LEFT JOIN ( |
|
|
|
SELECT publish_channels ,dc_event.event_type eventType, COUNT(*)AS number |
|
|
@ -323,10 +315,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
SELECT 11 |
|
|
|
) AS h |
|
|
|
CROSS JOIN ( |
|
|
|
SELECT 1 AS publish_channels |
|
|
|
UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL |
|
|
|
SELECT 5 UNION ALL SELECT 6 UNION ALL |
|
|
|
SELECT 7 |
|
|
|
SELECT 4 AS publish_channels |
|
|
|
UNION ALL SELECT 7 UNION ALL |
|
|
|
SELECT 8 |
|
|
|
) AS pc |
|
|
|
LEFT JOIN ( |
|
|
|
SELECT publish_channels ,dc_event.event_type eventType, COUNT(*)AS number |
|
|
|