|
@@ -51,7 +51,7 @@ func MsgDelete(id string) (int, error) {
|
|
}
|
|
}
|
|
|
|
|
|
func MsgDetail(id int) (*map[string]interface{}, error) {
|
|
func MsgDetail(id int) (*map[string]interface{}, error) {
|
|
- info := util.JysqlDB.FindOne("message_send_log", map[string]interface{}{"id": id}, Str, "")
|
|
|
|
|
|
+ info := util.JysqlDB.FindOne("message_send_log", map[string]interface{}{"id": id}, "", "")
|
|
if info != nil && len(*info) > 0 {
|
|
if info != nil && len(*info) > 0 {
|
|
link := qutil.ObjToString((*info)["link"])
|
|
link := qutil.ObjToString((*info)["link"])
|
|
log.Println("详情连接:", link)
|
|
log.Println("详情连接:", link)
|
|
@@ -73,11 +73,11 @@ func MsgDetail(id int) (*map[string]interface{}, error) {
|
|
return nil, errors.New("查询出错")
|
|
return nil, errors.New("查询出错")
|
|
}
|
|
}
|
|
|
|
|
|
-var Str = "id,send_usergroup_name,msg_type,title,content,send_mode,send_time,send_status,update_time,createtime,link,isdel,send_name,send_usergroup_id"
|
|
|
|
|
|
+//var Str = "id,send_usergroup_name,msg_type,title,content,send_mode,send_time,send_status,update_time,createtime,link,isdel,send_name,send_usergroup_id"
|
|
|
|
|
|
//消息列表查询
|
|
//消息列表查询
|
|
func MsgList(param *MsgListParam, isLookAllMsg, loginUserId int) (*[]map[string]interface{}, int) {
|
|
func MsgList(param *MsgListParam, isLookAllMsg, loginUserId int) (*[]map[string]interface{}, int) {
|
|
- sql := "SELECT " + Str + " FROM message_send_log "
|
|
|
|
|
|
+ sql := "SELECT * FROM message_send_log "
|
|
str := ""
|
|
str := ""
|
|
sqlc := "SELECT COUNt(*) FROM message_send_log "
|
|
sqlc := "SELECT COUNt(*) FROM message_send_log "
|
|
if param.UserGroupName != "" {
|
|
if param.UserGroupName != "" {
|