Browse Source

修改userResiInfoDao.selectUserResiInfoDTO,头像取user_base_info表

master
yinzuomei 5 years ago
parent
commit
b7e0eff993
  1. 3
      epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml

3
epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml

@ -66,11 +66,10 @@
ubi.SURNAME, ubi.SURNAME,
( CASE WHEN ubi.GENDER = '1' THEN '先生' WHEN ubi.GENDER = '2' THEN '女士' ELSE '先生/女士' END ) ( CASE WHEN ubi.GENDER = '1' THEN '先生' WHEN ubi.GENDER = '2' THEN '女士' ELSE '先生/女士' END )
) AS show_name, ) AS show_name,
uw.HEAD_IMG_URL AS head_photo ubi.HEAD_IMG_URL AS head_photo
FROM FROM
user_base_info ubi user_base_info ubi
LEFT JOIN user_resi_info uri ON ( ubi.USER_ID = uri.USER_ID AND uri.DEL_FLAG = '0' ) LEFT JOIN user_resi_info uri ON ( ubi.USER_ID = uri.USER_ID AND uri.DEL_FLAG = '0' )
LEFT JOIN user_wechat uw ON ( uri.USER_ID = uw.USER_ID AND uw.DEL_FLAG = '0' )
WHERE WHERE
ubi.USER_ID =#{userId} ubi.USER_ID =#{userId}
AND ubi.DEL_FLAG = '0' AND ubi.DEL_FLAG = '0'

Loading…
Cancel
Save