作者 tangxuhui

调试 分红订单列表

... ... @@ -104,11 +104,11 @@ func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchD
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
var dataList []dto.DividendsOrder
for i := range result.Gride.List {
item := dto.ToDividendsOrder(&result.Gride.List[i])
for i := range result.Grid.List {
item := dto.ToDividendsOrder(&result.Grid.List[i])
dataList = append(dataList, *item)
}
return result.Gride.Total, dataList, nil
return result.Grid.Total, dataList, nil
}
// 更新分红订单实体对象
... ...
... ... @@ -97,7 +97,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
listData := []map[string]interface{}{}
for _, v := range result.Gride.List {
for _, v := range result.Grid.List {
m := map[string]interface{}{
"dividendsOrderNumber": v.DividendsOrderNumber,
"dividendsOriginalOrderNum": v.DividendsOriginalOrderNum,
... ... @@ -106,7 +106,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi
}
listData = append(listData, m)
}
return result.Gride.Total, listData, nil
return result.Grid.Total, listData, nil
}
func NewDividendsReturnedOrderService(options map[string]interface{}) *DividendsReturnedOrderService {
... ...
... ... @@ -115,10 +115,10 @@ type (
}
DataDividendsOrderSearch struct {
Gride struct {
Grid struct {
Total int `json:"total"`
List []DividendsOrder `json:"list"`
} `json:"gride"`
} `json:"grid"`
}
)
... ...