duxin 3 лет назад
Родитель
Сommit
c4a89515a4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      rpc/consumer/internal/logic/mypublishlistlogic.go

+ 1 - 1
rpc/consumer/internal/logic/mypublishlistlogic.go

@@ -95,7 +95,7 @@ func (l *MyPublishListLogic) MyPublishList(in *consumerinfo.MyPublishListReq) (*
 	}
 	allData := model.Mysql.SelectBySql(`SELECT a.id,a.type,a.title,a.create_time,a.published,a.publish_id,a.status  from (SELECT id,type,title,create_time,status,published,publish_id  from information WHERE is_del = 1 and user_id= "`+in.UserId+`" `+queryName+`
 			union all
-			SELECT id,type,title,create_time,status,published  from supply_info WHERE is_del = 1 and user_id= "`+in.UserId+`" `+queryName+` ) a  order by a.create_time desc limit ?,?`, offset, in.PageSize)
+			SELECT id,type,title,create_time,status,published,id as publish_id from supply_info WHERE is_del = 1 and user_id= "`+in.UserId+`" `+queryName+` ) a  order by a.create_time desc limit ?,?`, offset, in.PageSize)
 	if allData != nil && len(*allData) > 0 {
 		for _, v := range *allData {
 			var vs = consumerinfo.ListResp{}