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.*,