修改bug

This commit is contained in:
yangjun 2026-03-05 15:21:43 +08:00
parent 6cda09e14b
commit 823ad2baaf
1 changed files with 4 additions and 4 deletions

View File

@ -5,15 +5,15 @@
<select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg">
SELECT
a.org_code as orgCode,
concat(CASE WHEN RIGHT(b.url, 1) = '/' THEN LEFT(b.url, LENGTH(b.url) - 1) ELSE b.url END, b.context_path ) AS serverUrl,
concat(CASE WHEN RIGHT(b.url, 1) = '/' THEN LEFT(b.url, LENGTH(b.url)) ELSE b.url END, b.context_path ) AS serverUrl,
b.depart_name
FROM nu_biz_employees_org a
LEFT JOIN sys_depart b
ON a.org_code = b.org_code
LEFT JOIN sys_depart b
ON a.org_code = b.org_code
WHERE a.employees_id = #{employeesId}
AND a.iz_freeze = 'N'
AND a.iz_history = 'N'
AND (a.status = '2' or a.apply_type = '2')
AND b.status = '1'
</select>
</mapper>