添加机构名称字段
This commit is contained in:
parent
4a09cfb609
commit
9f533843d4
|
|
@ -101,4 +101,7 @@ public class EmployeesOrg implements Serializable {
|
||||||
/**机构访问地址*/
|
/**机构访问地址*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String serverUrl;
|
private String serverUrl;
|
||||||
|
/**机构访问地址*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String departName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
<select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg">
|
<select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg">
|
||||||
SELECT
|
SELECT
|
||||||
a.org_code as orgCode,
|
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
|
FROM nu_biz_employees_org a
|
||||||
LEFT JOIN sys_depart b
|
LEFT JOIN sys_depart b
|
||||||
ON a.org_code = b.org_code
|
ON a.org_code = b.org_code
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue