|
|
@@ -47,7 +47,7 @@ func (j JpushNoticeDb) FindJpushNoticeAndTotal(page, limit, types string) (*[]mo |
|
|
|
if types != "" { |
|
|
|
sess.In("type", strings.Split(types, ",")) |
|
|
|
} |
|
|
|
count, err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).FindAndCount(&m) |
|
|
|
count, err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).Desc("id").FindAndCount(&m) |
|
|
|
if err != nil { |
|
|
|
return nil, count, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|