|
|
@ -219,6 +219,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
) AS p |
|
|
|
LEFT JOIN dc_publish_manage AS m ON p.publish_channels = m.publish_channels |
|
|
|
AND DATE(m.publish_time) = CURDATE() |
|
|
|
where m.publish_status=1 |
|
|
|
GROUP BY p.publish_channels |
|
|
|
ORDER BY p.publish_channels; |
|
|
|
</select> |
|
|
@ -238,6 +239,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
FROM dc_publish_manage |
|
|
|
LEFT JOIN dc_event on dc_publish_manage.event_id=dc_event.id |
|
|
|
where event_id is not NULL AND DATE(publish_time) = CURDATE() |
|
|
|
and dc_publish_manage.publish_status=1 |
|
|
|
GROUP BY eventType |
|
|
|
) AS m ON h.eventType = m.eventType |
|
|
|
ORDER BY h.eventType |
|
|
@ -267,6 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
SELECT HOUR(publish_time) AS hour, publish_channels, COUNT(*)AS number |
|
|
|
FROM dc_publish_manage |
|
|
|
WHERE DATE(publish_time) = CURDATE() |
|
|
|
and dc_publish_manage.publish_status=1 |
|
|
|
GROUP BY HOUR(publish_time), publish_channels |
|
|
|
) AS m ON h.hour = m.hour AND pc.publish_channels = m.publish_channels |
|
|
|
ORDER BY h.hour, pc.publish_channels; |
|
|
@ -279,6 +282,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
FROM dc_publish_manage AS pm |
|
|
|
where MONTH(pm.publish_time) = MONTH(#{publishTime}) |
|
|
|
AND pm.publish_time is not null |
|
|
|
and pm.publish_status =1 |
|
|
|
GROUP BY publishTime, pm.publish_channels |
|
|
|
ORDER BY publishTime |
|
|
|
</select> |
|
|
@ -303,6 +307,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
FROM dc_publish_manage |
|
|
|
LEFT JOIN dc_event on dc_publish_manage.event_id=dc_event.id |
|
|
|
where dc_event.event_type is not null |
|
|
|
and dc_publish_manage.publish_status=1 |
|
|
|
GROUP BY dc_event.event_type,publish_channels |
|
|
|
) AS m ON h.eventType = m.eventType AND pc.publish_channels = m.publish_channels |
|
|
|
ORDER BY h.eventType, pc.publish_channels; |
|
|
@ -332,6 +337,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
WHERE YEAR(publish_time) = YEAR(CURDATE()) |
|
|
|
AND MONTH(publish_time) = MONTH(#{publishTime}) |
|
|
|
AND dc_event.event_type is not NULL |
|
|
|
and dc_publish_manage.publish_status=1 |
|
|
|
GROUP BY eventType,publish_channels |
|
|
|
) AS m ON h.eventType = m.eventType AND pc.publish_channels = m.publish_channels |
|
|
|
ORDER BY h.eventType, pc.publish_channels; |
|
|
|