1、修改企业企业名称数据来源
parent
df356c694f
commit
6f3958f297
|
|
@ -117,18 +117,20 @@
|
||||||
<select id="selectUserNamesByUserIds" resultType="com.zcloud.certificate.domain.model.UserBasicInfo">
|
<select id="selectUserNamesByUserIds" resultType="com.zcloud.certificate.domain.model.UserBasicInfo">
|
||||||
SELECT
|
SELECT
|
||||||
u.id AS userId,
|
u.id AS userId,
|
||||||
u.name AS userName,
|
u.username AS userName,
|
||||||
u.name AS name,
|
u.name AS name,
|
||||||
d.name AS departmentName,
|
d.name AS departmentName,
|
||||||
p.corpinfo_name AS corpinfoName,
|
c.corp_name AS corpinfoName,
|
||||||
COALESCE(NULLIF(u.post_name, ''), p.post_name) AS postName,
|
COALESCE(NULLIF(u.post_name, ''), p.post_name) AS postName,
|
||||||
u.employment_flag AS employmentStatus
|
u.employment_flag AS employmentStatus
|
||||||
FROM
|
FROM
|
||||||
user u
|
`user` u
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
department d ON d.id = u.department_id
|
department d ON d.id = u.department_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
post p ON p.id = u.post_id
|
post p ON p.id = u.post_id
|
||||||
|
LEFT JOIN
|
||||||
|
corp_info c on u.corpinfo_id = c.id
|
||||||
WHERE
|
WHERE
|
||||||
u.id IN
|
u.id IN
|
||||||
<foreach item="userId" index="index" collection="userIds" open="(" separator="," close=")">
|
<foreach item="userId" index="index" collection="userIds" open="(" separator="," close=")">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue