Compare commits
2 Commits
8fd74f4f0e
...
29afc5ee2e
Author | SHA1 | Date |
---|---|---|
liuwu | 29afc5ee2e | |
liuwu | 94fd631ea7 |
|
@ -50,10 +50,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="advanceDept" resultType="map">
|
||||
SELECT
|
||||
`dept`,
|
||||
`events`
|
||||
a.`events`,
|
||||
c.type,
|
||||
b.dept_name dept,
|
||||
SUM( c.score ) score,
|
||||
sum( c.now_score ) nowScore
|
||||
FROM
|
||||
t_ament_advanced_dept
|
||||
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
|
||||
</select>
|
||||
|
||||
<insert id="insertTAmentAdvancedDept" parameterType="TAmentAdvancedDept" useGeneratedKeys="true" keyProperty="id">
|
||||
|
|
Loading…
Reference in New Issue