Explorar o código

修改已发送列表sql

renjiaojiao %!s(int64=3) %!d(string=hai) anos
pai
achega
285cf80a56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 != "" {