添加机构名称字段

This commit is contained in:
yangjun 2025-10-20 16:11:32 +08:00
parent 4a09cfb609
commit 9f533843d4
2 changed files with 5 additions and 1 deletions

View File

@ -101,4 +101,7 @@ public class EmployeesOrg implements Serializable {
/**机构访问地址*/
@TableField(exist = false)
private String serverUrl;
/**机构访问地址*/
@TableField(exist = false)
private String departName;
}

View File

@ -5,7 +5,8 @@
<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) - 1) 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