tangzy
2021-07-14 c2c50ffadc3e9cf100dfe7910b60bea0b9ce9158
src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -92,7 +92,10 @@
        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>
@@ -142,10 +145,10 @@
    <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>
    <!--统计单位类型数量-->