作者 唐旭辉

添加序号

@@ -847,7 +847,7 @@ func (service OrderInfoService) PageListOrderBonus(listOrderQuery query.ListOrde @@ -847,7 +847,7 @@ func (service OrderInfoService) PageListOrderBonus(listOrderQuery query.ListOrde
847 hasBonusPercent = true 847 hasBonusPercent = true
848 } 848 }
849 } 849 }
850 - listIndex := listOrderQuery.Offset + 1 + i 850 + listIndex := listOrderQuery.Offset + (1 + i)
851 listItem := map[string]interface{}{ 851 listItem := map[string]interface{}{
852 "index": listIndex, 852 "index": listIndex,
853 "updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"), 853 "updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"),
@@ -275,8 +275,10 @@ func (c *PartnerInfoController) ListPartnerInfo() { @@ -275,8 +275,10 @@ func (c *PartnerInfoController) ListPartnerInfo() {
275 return 275 return
276 } 276 }
277 resp := []map[string]interface{}{} 277 resp := []map[string]interface{}{}
  278 + indexBegin := query.Offset
278 for i := range partners { 279 for i := range partners {
279 m := map[string]interface{}{ 280 m := map[string]interface{}{
  281 + "index": indexBegin + (i + 1),
280 "id": partners[i].Partner.Id, 282 "id": partners[i].Partner.Id,
281 "account": partners[i].Partner.Account, 283 "account": partners[i].Partner.Account,
282 "partnerName": partners[i].Partner.PartnerName, 284 "partnerName": partners[i].Partner.PartnerName,