|
|
@@ -983,6 +983,7 @@ type QhjCustomer struct {
|
|
|
CONTACTNAME string `json:"contactname" xorm:"'contactname'"` // 联系人
|
|
|
EMAIL string `json:"email" xorm:"'EMAIL'"` // 邮件
|
|
|
USERNAME string `json:"username" xorm:"'USERNAME'"` // 用户名称
|
|
|
+ LOGINCODE string `json:"logincode" xorm:"'LOGINCODE'"` // 登录账号(代码)
|
|
|
|
|
|
COUNTRYNAME string `json:"countryname"` // 国家名称
|
|
|
CITYNAME string `json:"cityname"` // 城市名称
|
|
|
@@ -1039,7 +1040,7 @@ func (r *QhjCustomer) buildSqlWskh() string {
|
|
|
" (select t.userid, wm_concat(t.logincode) logincode" +
|
|
|
" from loginaccount t" +
|
|
|
" group by t.userid)" +
|
|
|
- "select a.*, k.logincode" +
|
|
|
+ "select a.*" +
|
|
|
" from (select t.userid," +
|
|
|
" t.memberareaid MEMBERUSERID," +
|
|
|
" t.USERINFOTYPE," +
|
|
|
@@ -1067,7 +1068,8 @@ func (r *QhjCustomer) buildSqlWskh() string {
|
|
|
" t.legalpersonname," +
|
|
|
" t.contactname," +
|
|
|
" t.email," +
|
|
|
- " t.areaid parentuserid" +
|
|
|
+ " t.areaid parentuserid," +
|
|
|
+ " t.logincode" +
|
|
|
" from wskh_userinfo t" +
|
|
|
" start with t.areaid = %v" +
|
|
|
" connect by prior t.userid = t.areaid" +
|