1、修改企业企业名称数据来源

main
shenzhidan 2026-01-29 15:24:10 +08:00
parent df356c694f
commit 6f3958f297
1 changed files with 5 additions and 3 deletions

View File

@ -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=")">