|
@@ -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"
|
|
}
|
|
}
|