正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -71,6 +71,7 @@ func (service OrderInfoService) PageListOrderBase(listOrderQuery query.ListOrder | @@ -71,6 +71,7 @@ func (service OrderInfoService) PageListOrderBase(listOrderQuery query.ListOrder | ||
71 | } | 71 | } |
72 | 72 | ||
73 | orderDataReturn := make([]map[string]interface{}, 0) | 73 | orderDataReturn := make([]map[string]interface{}, 0) |
74 | + | ||
74 | for i := range orders { | 75 | for i := range orders { |
75 | partnerData := &domain.PartnerInfo{} | 76 | partnerData := &domain.PartnerInfo{} |
76 | partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{ | 77 | partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{ |
@@ -79,7 +80,9 @@ func (service OrderInfoService) PageListOrderBase(listOrderQuery query.ListOrder | @@ -79,7 +80,9 @@ func (service OrderInfoService) PageListOrderBase(listOrderQuery query.ListOrder | ||
79 | if err != nil { | 80 | if err != nil { |
80 | logs.Error("获取合伙(id=%d)失败%s", orders[i].PartnerId, err) | 81 | logs.Error("获取合伙(id=%d)失败%s", orders[i].PartnerId, err) |
81 | } | 82 | } |
83 | + listIndex := listOrderQuery.Offset + (1 + i) | ||
82 | m := map[string]interface{}{ | 84 | m := map[string]interface{}{ |
85 | + "index": listIndex, | ||
83 | "createTime": orders[i].CreateTime.Local().Format("2006-01-02 15:04:05"), | 86 | "createTime": orders[i].CreateTime.Local().Format("2006-01-02 15:04:05"), |
84 | "updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"), | 87 | "updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"), |
85 | "buyer": orders[i].Buyer.BuyerName, | 88 | "buyer": orders[i].Buyer.BuyerName, |
-
请 注册 或 登录 后发表评论