| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询学历统计信息--> |
| | | <select id="getEducationStatistics" resultType="java.util.HashMap"> |
| | | SELECT |
| | | ifnull(b.num,0) value,a.dict_value name |
| | | FROM |
| | | ( SELECT dict_key, dict_value FROM blade_dict_biz WHERE CODE = "educationType" AND parent_id = 1442114073897521153 ) a |
| | | LEFT JOIN ( |
| | | SELECT |
| | | count( * ) num, |
| | | education |
| | | FROM |
| | | blade_user bu |
| | | left join blade_dept bd on bu.dept_id = bd.id |
| | | left join sys_information si on si.departmentid = bd.id |
| | | left join sys_jurisdiction sj on sj.id = si.jurisdiction |
| | | where 1=1 |
| | | <if test="jurisdiction!=null and jurisdiction != '' and jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{jurisdiction} or sj.parent_id = #{jurisdiction}) |
| | | </if> |
| | | <if test="deptId!=null and deptId != ''"> |
| | | and bu.dept_id = #{deptId} |
| | | </if> |
| | | GROUP BY |
| | | education ) b ON a.dict_key = b.education |
| | | </select> |
| | | |
| | | </mapper> |