浏览代码

消息列表权限修改

renjiaojiao 3 年之前
父节点
当前提交
2a4a6da585
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 != "" {
 	if param.UpdateTimeEnd != "" {
 		str += " a.update_time <= '" + param.UpdateTimeEnd + " 23:59:59" + "' and"
 		str += " a.update_time <= '" + param.UpdateTimeEnd + " 23:59:59" + "' and"
 	}
 	}
+	log.Println("isLookAllMsg", isLookAllMsg)
 	if isLookAllMsg == 0 {
 	if isLookAllMsg == 0 {
 		str += " a.send_userid = " + strconv.Itoa(loginUserId) + " and"
 		str += " a.send_userid = " + strconv.Itoa(loginUserId) + " and"
-	} else if isLookAllMsg != 1 {
+	} else if isLookAllMsg == 1 {
 		if param.Creator != "" {
 		if param.Creator != "" {
 			str += " a.send_name = '" + loginUserName + "' and"
 			str += " a.send_name = '" + loginUserName + "' and"
 		}
 		}