|
|
|
@ -6,11 +6,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getSentimentType" resultType="com.ruoyi.screen.domain.response.ZongzhiSentimentTypeResponse">
|
|
|
|
|
select count(*) as count ,sentiment_type as type,publish_time as publishTime
|
|
|
|
|
|
|
|
|
|
from tc_network_sentiment
|
|
|
|
|
where sentiment_type in ("1", "2")
|
|
|
|
|
GROUP BY sentiment_type,publish_time
|
|
|
|
|
select count(*) as count , type,date_time as publishTime
|
|
|
|
|
from tc_yq_zs
|
|
|
|
|
GROUP BY type,publish_time
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getSentimenCount" resultType="com.ruoyi.screen.domain.response.ZongzhiSentimentCountResponse">
|
|
|
|
|
select count(*) as count ,sentiment_type as type,ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt
|
|
|
|
@ -20,14 +18,14 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getSentimenClassificationBymediaType"
|
|
|
|
|
resultType="com.ruoyi.screen.domain.response.ZongzhiSentimenClassificationResponse">
|
|
|
|
|
select media_type as type, ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt
|
|
|
|
|
from tc_network_sentiment
|
|
|
|
|
select media_type as type,sum(media_count)as pt
|
|
|
|
|
from tc_yq_fl
|
|
|
|
|
GROUP BY media_type
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getSentimenClassificationByeventType"
|
|
|
|
|
resultType="com.ruoyi.screen.domain.response.ZongzhiSentimenClassificationResponse">
|
|
|
|
|
select event_type as type, ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt
|
|
|
|
|
from tc_network_sentiment
|
|
|
|
|
select event_type as type, sum(event_count)as pt
|
|
|
|
|
from tc_yq_fl
|
|
|
|
|
GROUP BY event_type
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getWordCloud" resultType="com.ruoyi.screen.domain.response.ZongzhiSentimenWordCloudResponse">
|
|
|
|
|