Browse Source

修改已发送列表sql

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

+ 1 - 1
src/customerService/newsService.go

@@ -80,7 +80,7 @@ var Str = "a.send_usergroup_name,a.msg_type,a.title,a.content,a.send_mode,a.send
 
 //消息列表查询
 func MsgList(param *MsgListParam, isLookAllMsg, loginUserId int, loginUserName string) (*[]map[string]interface{}, int) {
-	sql := "SELECT DISTINCT(a.id) " + Str + " FROM message_send_log as a LEFT JOIN sendmsg_customer_info as b on a.id = b.msg_id "
+	sql := "SELECT DISTINCT(a.id)," + Str + " FROM message_send_log as a LEFT JOIN sendmsg_customer_info as b on a.id = b.msg_id "
 	str := ""
 	sqlc := "SELECT DISTINCT(COUNt(*)) FROM message_send_log as a  LEFT JOIN sendmsg_customer_info as b on a.id = b.msg_id "
 	if param.UserGroupName != "" {