企业微信默认用工号

master
zhaoxiaolin 8 months ago
parent 21ac32c35c
commit ef2cae1d7b

@ -348,7 +348,7 @@
sn.notice_type noticeType,
sn.notice_content noticeContent,
btu.user_name userCode,
btu.wx_id wxId
case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId
from sys_notice_group sng
left join sys_notice sn on sng.notice_id = sn.notice_id
left join base_team_user btu on sng.group_code = btu.team_code

@ -392,7 +392,7 @@
sn.notice_type noticeType,
sn.notice_content noticeContent,
btu.user_name userCode,
btu.wx_id wxId
case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId
from sys_notice_group sng
left join sys_notice sn on sng.notice_id = sn.notice_id
left join base_team_user btu on sng.group_code = btu.team_code

@ -492,7 +492,7 @@
sn.notice_type noticeType,
sn.notice_content noticeContent,
btu.user_name userCode,
btu.wx_id wxId
case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId
from sys_notice_group sng
left join sys_notice sn on sng.notice_id = sn.notice_id
left join base_team_user btu on sng.group_code = btu.team_code

Loading…
Cancel
Save