|
@@ -79,11 +79,11 @@ func (l *InfoListLogic) InfoList(in *manager.InfoListReq) (*manager.InfoListResp
|
|
|
if in.PageSize <= 0 {
|
|
|
in.PageSize = 10
|
|
|
}
|
|
|
- if in.PageIndex == 1 {
|
|
|
- count = model.Mysql.CountBySql(`SELECT count(1) from (SELECT id,type,status,phone,contact_person,contact_phone,title,create_time,is_del,published from information ` + queryInfo + `
|
|
|
+
|
|
|
+ count = model.Mysql.CountBySql(`SELECT count(1) from (SELECT id,type,status,phone,contact_person,contact_phone,title,create_time,is_del,published from information ` + queryInfo + `
|
|
|
union all
|
|
|
SELECT id,type,status,phone,contact_person,contact_phone,title,create_time,is_del,published from supply_info ` + queryInfo + ` ) a`)
|
|
|
- }
|
|
|
+
|
|
|
var offset int
|
|
|
if in.PageIndex <= 1 {
|
|
|
offset = 0
|