@@ -702,7 +702,6 @@ func AdminParticipateList(in *bxcore.ParticipateListReq, conditionSql string) (d
count := IC.BaseMysql.CountBySql(adminCountSql, in.EntId)
if count > 0 {
data.Count = count
- in.PageNum = (in.PageNum - 1) * in.PageSize
adminListSql := fmt.Sprintf(adminSql, " pt.*, pug.ent_user_id,pug.update_date,pbr.create_date ") + conditionSql + fmt.Sprintf(" LIMIT %d,%d", in.PageNum, in.PageSize)
list := IC.BaseMysql.SelectBySql(adminListSql, in.EntId)
if list != nil && len(*list) > 0 {
@@ -32,6 +32,7 @@ func ParticipateList(in *bxcore.ParticipateListReq) (*bxcore.ParticipateListRes,
if in.PageNum < 1 {
in.PageNum = 1
}
+ in.PageNum = (in.PageNum - 1) * in.PageSize
if in.PageSize < 1 {
in.PageSize = 10