|
|
@@ -4663,6 +4663,7 @@ type WrSearchUser struct {
|
|
|
USERNAME string `json:"username" xorm:"'USERNAME'" form:"username" binding:"required"` // 用户名称(已脱敏)
|
|
|
USERID int64 `json:"userid" xorm:"'USERID'"` // 用户ID
|
|
|
USERNAME2 string `json:"username2" xorm:"'-'"` // 用户名称(未脱敏)
|
|
|
+ USERTYPE int `json:"usertype" xorm:"'USERTYPE'"` // 账户类型 - 1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者 6:客户 7:企业成员(云平台)
|
|
|
}
|
|
|
|
|
|
func (r *WrSearchUser) calc() {
|
|
|
@@ -4672,8 +4673,8 @@ func (r *WrSearchUser) calc() {
|
|
|
|
|
|
func (r *WrSearchUser) buildSql() string {
|
|
|
var sqlId utils.SQLVal = `
|
|
|
-select t.userid, t.accountname username from useraccount t
|
|
|
-where t.accountname like '%%%v%%'
|
|
|
+select t.userid, t.usertype, t.accountname username from useraccount t
|
|
|
+where t.usertype in(2,6) and t.accountname like '%%%v%%'
|
|
|
`
|
|
|
sqlId.FormatParam(r.USERNAME)
|
|
|
return sqlId.String()
|