...
|
...
|
@@ -84,6 +84,31 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide |
|
|
return updateDividendsReturnedOrderCommand, nil
|
|
|
}
|
|
|
|
|
|
// 更新分红退货单服务
|
|
|
func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDividendsOrder(selectorDividendsOrderQuery *query.SelectorDividendsOrderQuery) (
|
|
|
int, interface{}, error) {
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(selectorDividendsOrderQuery.Operator)
|
|
|
result, err := creationCooperationGateway.DividendsOrderSearch(allied_creation_cooperation.ReqDividendsOrderSearch{
|
|
|
DividendsOrderNumber: selectorDividendsOrderQuery.DividendsOrderNumber,
|
|
|
PageNumber: 1,
|
|
|
PageSize: 999,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
listData := []map[string]interface{}{}
|
|
|
for _, v := range result.Gride.List {
|
|
|
m := map[string]interface{}{
|
|
|
"dividendsOrderNumber": v.DividendsOrderNumber,
|
|
|
"dividendsOriginalOrderNum": v.DividendsOriginalOrderNum,
|
|
|
"dividendsOrderId": strconv.Itoa(v.DividendsOrderID),
|
|
|
"dividendTime": v.DividendTime.Unix(),
|
|
|
}
|
|
|
listData = append(listData, m)
|
|
|
}
|
|
|
return result.Gride.Total, listData, nil
|
|
|
}
|
|
|
|
|
|
func NewDividendsReturnedOrderService(options map[string]interface{}) *DividendsReturnedOrderService {
|
|
|
newDividendsReturnedOrderService := &DividendsReturnedOrderService{}
|
|
|
return newDividendsReturnedOrderService
|
...
|
...
|
|