This commit is contained in:
苏尹岚
2020-09-27 09:47:23 +08:00
parent 80f5789401
commit 12488b62a2

View File

@@ -42,7 +42,7 @@ func GetJxShopUsers(ctx *jxcontext.Context, keyword string, offset, pageSize int
utils.DefaultTimeValue,
}
if keyword != "" {
sql += " AND (a.user_id LIKE ? OR a.name LIKE ? OR a.moblie LIKE ? OR a.user_id2 LIKE ?)"
sql += " AND (a.user_id LIKE ? OR a.name LIKE ? OR a.mobile LIKE ? OR a.user_id2 LIKE ?)"
sqlParams = append(sqlParams, "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%")
}
sql += "LIMIT ? OFFSET ?"