erp增加下推接口
This commit is contained in:
@@ -340,6 +340,22 @@ namespace WMS.Web.Domain.Services.Public
|
||||
return Result.ReFailure("错误", 10002);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下推
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> Push(ErpPushDto dto)
|
||||
{
|
||||
var token_result = await this.Init();
|
||||
if (!token_result.IsSuccess)
|
||||
return token_result;
|
||||
var query = new ErpBillQueryDto(token_result.Data);
|
||||
query.Data = JsonConvert.SerializeObject(dto);
|
||||
//下推
|
||||
var result_json = await _client.PushAsync(JsonConvert.SerializeObject(query));
|
||||
|
||||
return Result.ReSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user