1
This commit is contained in:
@@ -214,17 +214,24 @@ func (a *API) UpdateSettleInfo(customerNo string, param *UpdateSettleInfoReq) (*
|
||||
if param != nil {
|
||||
mapParam = utils.Struct2Map(param, "", false)
|
||||
}
|
||||
result, err := a.AccessAPI2(BaseProdChangeUrl, UpdateSettleChange, http.MethodGet, customerNo, mapParam)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
if param != nil { // 变更
|
||||
result, err := a.AccessAPI2(BaseProdChangeUrl, UpdateSettleChange, http.MethodPost, customerNo, mapParam)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
data := &FeeChangeResp{}
|
||||
if err = utils.Map2StructByJson(result, data, false); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return data, nil, err
|
||||
} else { // 查询
|
||||
result, err := a.AccessAPI2(BaseProdChangeUrl, UpdateSettleChange, http.MethodGet, customerNo, mapParam)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
data := &UpdateSettleInfoReq{}
|
||||
if err = utils.Map2StructByJson(result, data, false); err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
Reference in New Issue
Block a user