Kaynağa Gözat

fix:阳光采购信息发布相关需求修改

duxin 9 ay önce
ebeveyn
işleme
54ea65361a

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

@@ -45,7 +45,7 @@ func (l *MyPublishListLogic) MyPublishList(in *consumerinfo.MyPublishListReq) (*
 	case 1: //阳光采购
 		queryName += `and type=8 `
 	default:
-		queryName += ` and type !=8`
+		queryName += ` and type !=8 `
 		if in.MsgType != 0 {
 			queryName += ` and type=` + mc.InterfaceToStr(in.MsgType)
 		}
@@ -102,7 +102,7 @@ func (l *MyPublishListLogic) MyPublishList(in *consumerinfo.MyPublishListReq) (*
 	}
 	allData := model.Mysql.SelectBySql(fmt.Sprintf(`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= '%s' %s 
                                                                                                                                                                  union all
-			SELECT id,type,title,create_time,status,published,id as publish_id from   WHERE is_del = 1 and user_id= '%s' %s  ) a  order by a.create_time desc limit %d,%d `, in.UserId, queryName, in.UserId, queryName, 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= '%s' %s  ) a  order by a.create_time desc limit %d,%d `, in.UserId, queryName, in.UserId, queryName, offset, in.PageSize))
 	if allData != nil && len(*allData) > 0 {
 		for _, v := range *allData {
 			var vs = consumerinfo.ListResp{}