|
@@ -45,7 +45,7 @@ func (l *MyPublishListLogic) MyPublishList(in *consumerinfo.MyPublishListReq) (*
|
|
case 1: //阳光采购
|
|
case 1: //阳光采购
|
|
queryName += `and type=8 `
|
|
queryName += `and type=8 `
|
|
default:
|
|
default:
|
|
- queryName += ` and type !=8`
|
|
|
|
|
|
+ queryName += ` and type !=8 `
|
|
if in.MsgType != 0 {
|
|
if in.MsgType != 0 {
|
|
queryName += ` and type=` + mc.InterfaceToStr(in.MsgType)
|
|
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
|
|
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
|
|
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 {
|
|
if allData != nil && len(*allData) > 0 {
|
|
for _, v := range *allData {
|
|
for _, v := range *allData {
|
|
var vs = consumerinfo.ListResp{}
|
|
var vs = consumerinfo.ListResp{}
|