修改大屏接口
This commit is contained in:
parent
29afc5ee2e
commit
43ff1154b8
|
@ -49,10 +49,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="advanceDept" resultType="map">
|
<select id="advanceDept" resultType="map">
|
||||||
|
SELECT
|
||||||
|
f.dept,
|
||||||
|
CONCAT( '{', GROUP_CONCAT( '"', f.type, '":', f.nowScore, '' ), '}' ) json
|
||||||
|
FROM
|
||||||
|
(
|
||||||
SELECT
|
SELECT
|
||||||
a.`events`,
|
a.`events`,
|
||||||
c.type,
|
|
||||||
b.dept_name dept,
|
b.dept_name dept,
|
||||||
|
c.type,
|
||||||
SUM( c.score ) score,
|
SUM( c.score ) score,
|
||||||
sum( c.now_score ) nowScore
|
sum( c.now_score ) nowScore
|
||||||
FROM
|
FROM
|
||||||
|
@ -60,9 +65,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_dept b ON a.dept = b.dept_id
|
LEFT JOIN sys_dept b ON a.dept = b.dept_id
|
||||||
LEFT JOIN t_ament_party_affairs c ON a.dept = c.dept_id
|
LEFT JOIN t_ament_party_affairs c ON a.dept = c.dept_id
|
||||||
WHERE
|
WHERE
|
||||||
c.type IN ( '日常考核指标', '年考核指标' )
|
c.type IN ( '日常考核指标', '年度考核指标' )
|
||||||
GROUP BY
|
GROUP BY
|
||||||
c.type
|
c.type
|
||||||
|
) f
|
||||||
|
GROUP BY
|
||||||
|
f.dept
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertTAmentAdvancedDept" parameterType="TAmentAdvancedDept" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertTAmentAdvancedDept" parameterType="TAmentAdvancedDept" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
|
Loading…
Reference in New Issue