| | |
| | | FROM |
| | | blade_dept dept |
| | | WHERE |
| | | dept.parent_id = #{param2} AND dept.is_deleted = 0 |
| | | dept.is_deleted = 0 |
| | | <if test="param2!=null and param2!=0"> |
| | | and dept.parent_id = #{param2} |
| | | </if> |
| | | <if test="param1!=null and param1!=''"> |
| | | and dept.tenant_id = #{param1} |
| | | </if> |
| | |
| | | |
| | | <select id="selectIn" resultType="java.util.HashMap"> |
| | | SELECT |
| | | id, |
| | | dept_name |
| | | id as deptid, |
| | | dept_name as deptname |
| | | FROM |
| | | blade_dept |
| | | blade_dept where is_deleted = 0 |
| | | </select> |
| | | |
| | | <!--统计单位类型数量--> |
| | | <select id="selectCount" resultType="java.util.HashMap"> |
| | | SELECT dept.id as jurisdiction,dept.dept_name AS title FROM blade_dept dept WHERE dept.dept_name like concat(concat('%', #{name}),'%') |
| | | SELECT |
| | | id as jurisdiction, |
| | | dept_name AS title |
| | | FROM |
| | | sys_jurisdiction |
| | | WHERE |
| | | is_deleted = 0 AND parent_id!=0 |
| | | </select> |
| | | |
| | | <select id="selectHold" resultType="java.util.HashMap"> |