修改大屏接口

This commit is contained in:
liuwu 2023-08-25 11:33:16 +08:00
parent 29afc5ee2e
commit 43ff1154b8
1 changed files with 19 additions and 11 deletions

View File

@ -50,19 +50,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="advanceDept" resultType="map">
SELECT
a.`events`,
c.type,
b.dept_name dept,
SUM( c.score ) score,
sum( c.now_score ) nowScore
f.dept,
CONCAT( '{', GROUP_CONCAT( '"', f.type, '":', f.nowScore, '' ), '}' ) json
FROM
t_ament_advanced_dept a
LEFT JOIN sys_dept b ON a.dept = b.dept_id
LEFT JOIN t_ament_party_affairs c ON a.dept = c.dept_id
WHERE
c.type IN ( '日常考核指标', '年考核指标' )
(
SELECT
a.`events`,
b.dept_name dept,
c.type,
SUM( c.score ) score,
sum( c.now_score ) nowScore
FROM
t_ament_advanced_dept a
LEFT JOIN sys_dept b ON a.dept = b.dept_id
LEFT JOIN t_ament_party_affairs c ON a.dept = c.dept_id
WHERE
c.type IN ( '日常考核指标', '年度考核指标' )
GROUP BY
c.type
) f
GROUP BY
c.type
f.dept
</select>
<insert id="insertTAmentAdvancedDept" parameterType="TAmentAdvancedDept" useGeneratedKeys="true" keyProperty="id">