作者 tangxuhui

调试 分红订单列表

@@ -104,11 +104,11 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchD @@ -104,11 +104,11 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchD
104 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 104 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
105 } 105 }
106 var dataList []dto.DividendsOrder 106 var dataList []dto.DividendsOrder
107 - for i := range result.Gride.List {  
108 - item := dto.ToDividendsOrder(&result.Gride.List[i]) 107 + for i := range result.Grid.List {
  108 + item := dto.ToDividendsOrder(&result.Grid.List[i])
109 dataList = append(dataList, *item) 109 dataList = append(dataList, *item)
110 } 110 }
111 - return result.Gride.Total, dataList, nil 111 + return result.Grid.Total, dataList, nil
112 } 112 }
113 113
114 // 更新分红订单实体对象 114 // 更新分红订单实体对象
@@ -97,7 +97,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi @@ -97,7 +97,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi
97 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 97 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
98 } 98 }
99 listData := []map[string]interface{}{} 99 listData := []map[string]interface{}{}
100 - for _, v := range result.Gride.List { 100 + for _, v := range result.Grid.List {
101 m := map[string]interface{}{ 101 m := map[string]interface{}{
102 "dividendsOrderNumber": v.DividendsOrderNumber, 102 "dividendsOrderNumber": v.DividendsOrderNumber,
103 "dividendsOriginalOrderNum": v.DividendsOriginalOrderNum, 103 "dividendsOriginalOrderNum": v.DividendsOriginalOrderNum,
@@ -106,7 +106,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi @@ -106,7 +106,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi
106 } 106 }
107 listData = append(listData, m) 107 listData = append(listData, m)
108 } 108 }
109 - return result.Gride.Total, listData, nil 109 + return result.Grid.Total, listData, nil
110 } 110 }
111 111
112 func NewDividendsReturnedOrderService(options map[string]interface{}) *DividendsReturnedOrderService { 112 func NewDividendsReturnedOrderService(options map[string]interface{}) *DividendsReturnedOrderService {
@@ -115,10 +115,10 @@ type ( @@ -115,10 +115,10 @@ type (
115 } 115 }
116 116
117 DataDividendsOrderSearch struct { 117 DataDividendsOrderSearch struct {
118 - Gride struct { 118 + Grid struct {
119 Total int `json:"total"` 119 Total int `json:"total"`
120 List []DividendsOrder `json:"list"` 120 List []DividendsOrder `json:"list"`
121 - } `json:"gride"` 121 + } `json:"grid"`
122 } 122 }
123 ) 123 )
124 124