Browse Source

消息列表权限修改

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

+ 2 - 1
src/customerService/newsService.go

@@ -111,9 +111,10 @@ func MsgList(param *MsgListParam, isLookAllMsg, loginUserId int, loginUserName s
 	if param.UpdateTimeEnd != "" {
 		str += " a.update_time <= '" + param.UpdateTimeEnd + " 23:59:59" + "' and"
 	}
+	log.Println("isLookAllMsg", isLookAllMsg)
 	if isLookAllMsg == 0 {
 		str += " a.send_userid = " + strconv.Itoa(loginUserId) + " and"
-	} else if isLookAllMsg != 1 {
+	} else if isLookAllMsg == 1 {
 		if param.Creator != "" {
 			str += " a.send_name = '" + loginUserName + "' and"
 		}