| | |
| | | and A.jurisdiction =#{jurisdiction} |
| | | </if> |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and d.dept_name like concat(concat('%', #{deptid}),'%') |
| | | and d.enterpriseName like concat(concat('%', #{deptid}),'%') |
| | | </if> |
| | | <if test="stats!=null and stats!=''"> |
| | | and d.stats =#{stats} |
| | |
| | | |
| | | <select id="selectAge" resultType="java.util.HashMap"> |
| | | SELECT |
| | | YEAR (now()) - YEAR (substring(bu.cardid, 7, 8)) AS age |
| | | IFNULL(YEAR (now()) - YEAR (substring(bu.cardid, 7, 8)),0) AS age |
| | | FROM |
| | | blade_user bu |
| | | LEFT JOIN sys_information si ON si.departmentid = bu.dept_id |