作者 tangxuhui

更新调试

... ... @@ -47,14 +47,8 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
data := struct {
DividendsOrderId int
command.CreateDividendsOrderCommand
}{
DividendsOrderId: result.DividendsOrderID,
CreateDividendsOrderCommand: *createDividendsOrderCommand,
}
return data, nil
return dto.ToDividendsOrder(&result.DividendsOrder), nil
}
// 返回分红订单实体对象
... ...
... ... @@ -232,7 +232,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderGet(param ReqDivid
// DividendsOrderBatchRemove 批量移除分红订单
func (gateway HttplibAlliedCreationCooperation) DividendsOrderBatchRemove(param ReqDividendsOrderBatchRemove) (*DataDividendsOrderBatchRemove, error) {
url := gateway.baseUrL + "/dividends-orders/batch-remove"
method := "DELETE"
method := "POST"
req := gateway.CreateRequest(url, method)
log.Logger.Debug("向业务模块请求数据:移除分红订单。", map[string]interface{}{
"api": method + ":" + url,
... ... @@ -255,7 +255,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderBatchRemove(param
if err != nil {
return nil, fmt.Errorf("解析移除分红订单:%w", err)
}
var data DataDividendsOrderBatchRemove
err = gateway.GetResponseData(result, &data)
return &data, err
// var data []DataDividendsOrderBatchRemove
// err = gateway.GetResponseData(result, &data)
return nil, err
}
... ...