Browse Source

修改消息列表sql

renjiaojiao 3 years ago
parent
commit
03c4bf15d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/customerService/newsService.go

+ 1 - 1
src/customerService/newsService.go

@@ -122,7 +122,7 @@ func MsgList(param *MsgListParam, isLookAllMsg, loginUserId int, loginUserName s
 		str += " b.register_phone like '%" + param.Phone + "%' and"
 	}
 	if param.UserId != "" {
-		str += " b.user_id like '%" + param.Phone + "%' and"
+		str += " b.user_id like '%" + param.UserId + "%' and"
 	}
 	page := " order by a.id desc limit " + fmt.Sprint(param.Page.Offset) + " " + "," + " " + fmt.Sprint(param.Page.PageSize)
 	sql += " WHERE a.isdel = 1 and"