You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.8 KiB
41 lines
1.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.screen.mapper.ZongzhiScreenManageMapper">
|
|
|
|
|
|
<select id="getWorkDynamics" resultType="com.ruoyi.screen.domain.response.ZongzhiWorkDynamicsResponse">
|
|
SELECT type, materials_name as name,id
|
|
FROM `tc_work_dongtai` where materials_name is not null
|
|
GROUP BY type, materials_name
|
|
</select>
|
|
<select id="getNetworkReport" resultType="com.ruoyi.screen.domain.response.ZongzhiNetworkReportResponse">
|
|
select count(*) as count, ROUND(count(case when state=2 THEN 1 ELSE NULL END ) * 100.0/ sum(count(*)) OVER (), 1 )as handle
|
|
FROM tc_network_report
|
|
|
|
</select>
|
|
<select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse">
|
|
select count(*) as count, zhuanxiang_time as zhuanxiangTime ,ROUND(count(*) * 100.0/ sum(count(*)) OVER (), 1 ) as pt,zhuanxiang_type as type
|
|
from tc_qinglang_zhuanxiang
|
|
GROUP BY zhuanxiang_type, zhuanxiang_time
|
|
|
|
</select>
|
|
<select id="getReportByYear" resultType="com.ruoyi.screen.domain.response.ZongzhiReportByYearResponse">
|
|
SELECT count(*)as count,source,DATE_FORMAT(NOW(), '%Y') as year
|
|
FROM `tc_network_report`
|
|
GROUP BY source
|
|
</select>
|
|
<select id="getActionDynamicst"
|
|
resultType="com.ruoyi.screen.domain.response.ZongzhiActionDynamicstResponse">
|
|
select zhuanxiang_img as zhuanxiangImg,zhuanxiang_content as content,zhuanxiang_title as title,id
|
|
from tc_qinglang_zhuanxiang
|
|
</select>
|
|
<select id="getWorkDynamicsCount" resultType="java.lang.Integer">
|
|
SELECT count(*) as count
|
|
FROM `tc_work_dongtai`
|
|
where materials_name is not null
|
|
</select>
|
|
|
|
|
|
</mapper> |