|
@@ -141,12 +141,14 @@ func (m *CustomerDAO) GetCustWithWXByOpenID(openid string) (*CustWithWX, error)
|
141
|
141
|
|
142
|
142
|
cust := CustWithWX{}
|
143
|
143
|
query := `
|
144
|
|
- SELECT a.*, b.*,b.user_id as map_user,c.type_id as user_type_id
|
|
144
|
+ SELECT a.*, b.*,b.user_id as map_user,c.type_id as user_type_id,d.real_name
|
145
|
145
|
FROM
|
146
|
146
|
ta_user_mapping a
|
147
|
147
|
LEFT JOIN ta_customer b ON a.user_id = b.customer_id
|
|
148
|
+ LEFT JOIN sys_user c on a.user_id=c.user_id
|
148
|
149
|
AND a.account_type = '` + models.ACCMAP_WECHAT + `'
|
149
|
150
|
LEFT JOIN sys_user_type c on b.user_id = c.user_id
|
|
151
|
+ LEFT JOIN sys_user d ON a.user_id = d.user_id
|
150
|
152
|
WHERE
|
151
|
153
|
a.openid = ?
|
152
|
154
|
`
|