作者 tangxuhui

更新调试

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