From 6df3075965f20feb2da775c8913a82f03cee3092 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Tue, 26 Dec 2023 17:44:49 +0800 Subject: [PATCH] commit --- .../mapper/xml/EnterpriseCertificationMapper.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/users/src/main/java/com/huoran/users/mapper/xml/EnterpriseCertificationMapper.xml b/users/src/main/java/com/huoran/users/mapper/xml/EnterpriseCertificationMapper.xml index d7946b0..9a5c621 100644 --- a/users/src/main/java/com/huoran/users/mapper/xml/EnterpriseCertificationMapper.xml +++ b/users/src/main/java/com/huoran/users/mapper/xml/EnterpriseCertificationMapper.xml @@ -22,7 +22,21 @@ FROM ( SELECT - IFNULL( info.real_name, u.user_name ) AS proposer, + IFNULL( + info.real_name, + ( + SELECT + u.user_name + FROM + hr_user_account ua + INNER JOIN hr_user_info u ON u.user_id = ua.user_id + AND u.is_del = 0 + WHERE + ua.is_del = 0 + AND ua.app_open_id = c.open_id + AND ua.platform_id = 7 + ) + ) AS proposer, a.phone AS contactInformation, a.account, c.*,