|
@@ -631,7 +631,8 @@ func AdminParticipateList(in *bxcore.ParticipateListReq, conditionSql string) (d
|
|
|
count := IC.BaseMysql.CountBySql(adminCountSql, in.EntId)
|
|
|
if count > 0 {
|
|
|
data.Count = count
|
|
|
- adminListSql := fmt.Sprintf(adminSql, "pt.*, pug.ent_user_id,pug.update_date") + conditionSql
|
|
|
+ in.PageNum = (in.PageNum - 1) * in.PageSize
|
|
|
+ adminListSql := fmt.Sprintf(adminSql, " pt.*, pug.ent_user_id,pug.update_date ") + conditionSql + fmt.Sprintf(" LIMIT %d,%d", in.PageNum, in.PageSize)
|
|
|
list := IC.BaseMysql.SelectBySql(adminListSql, in.EntId)
|
|
|
if list != nil && len(*list) > 0 {
|
|
|
for _, v := range *list {
|