|
|
@ -161,6 +161,11 @@
|
|
|
|
<select id="getSysDepartList" resultType="org.jeecg.modules.system.vo.SysDepartExportVo">
|
|
|
|
<select id="getSysDepartList" resultType="org.jeecg.modules.system.vo.SysDepartExportVo">
|
|
|
|
SELECT id,depart_name,parent_id,depart_name_en,depart_order,description,org_category,org_code,mobile,fax,address,memo FROM sys_depart
|
|
|
|
SELECT id,depart_name,parent_id,depart_name_en,depart_order,description,org_category,org_code,mobile,fax,address,memo FROM sys_depart
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
|
|
|
|
1=1
|
|
|
|
|
|
|
|
<if test="null != tenantId and 0 != tenantId">
|
|
|
|
|
|
|
|
AND tenant_id = #{tenantId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="parentId != null and parentId != ''">
|
|
|
|
<when test="parentId != null and parentId != ''">
|
|
|
|
parent_id = #{parentId}
|
|
|
|
parent_id = #{parentId}
|
|
|
@ -169,9 +174,6 @@
|
|
|
|
parent_id IS NULL OR parent_id=''
|
|
|
|
parent_id IS NULL OR parent_id=''
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
<if test="null != tenantId and 0 != tenantId">
|
|
|
|
|
|
|
|
AND tenant_id = #{tenantId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
ORDER BY depart_order DESC
|
|
|
|
ORDER BY depart_order DESC
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|