You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.1 KiB
62 lines
2.1 KiB
3 years ago
|
using BBWY.Client.Models;
|
||
|
using BBWY.Common.Http;
|
||
|
using BBWY.Common.Models;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Net.Http;
|
||
|
|
||
|
namespace BBWY.Client.APIServices
|
||
|
{
|
||
|
public class FinancialTerminalService : BaseApiService, IDenpendency
|
||
|
{
|
||
|
public FinancialTerminalService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询账单
|
||
|
/// </summary>
|
||
|
/// <param name="importShopIds"></param>
|
||
|
/// <param name="startDate"></param>
|
||
|
/// <param name="endDate"></param>
|
||
|
/// <returns></returns>
|
||
|
public ApiResponse<IList<AuditPayBillResponse>> GetAuditPayBillList(string importShopIds, DateTime startDate, DateTime endDate)
|
||
|
{
|
||
|
return SendRequest<IList<AuditPayBillResponse>>(globalContext.BBYWApiHost, "Api/FinancialTerminal/GetAuditPayBillList", new
|
||
|
{
|
||
|
importShopIds,
|
||
|
startDate,
|
||
|
endDate
|
||
|
}, null, HttpMethod.Post);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 批量插入账单
|
||
|
/// </summary>
|
||
|
/// <param name="insertList"></param>
|
||
|
/// <returns></returns>
|
||
|
public ApiResponse<object> BatchInsertAuditPayBill(IList<AuditPayBill> insertList)
|
||
|
{
|
||
|
return SendRequest<object>(globalContext.BBYWApiHost, "Api/FinancialTerminal/BatchInsertAuditPayBill", insertList, null, HttpMethod.Post);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 检测账单是否存在
|
||
|
/// </summary>
|
||
|
/// <param name="importShopIds"></param>
|
||
|
/// <param name="startDate"></param>
|
||
|
/// <param name="endDate"></param>
|
||
|
/// <returns></returns>
|
||
|
public ApiResponse<bool> IsExistAuditPayBill(string importShopIds, DateTime startDate, DateTime endDate)
|
||
|
{
|
||
|
return SendRequest<bool>(globalContext.BBYWApiHost, "Api/FinancialTerminal/IsExistAuditPayBill", new
|
||
|
{
|
||
|
importShopIds,
|
||
|
startDate,
|
||
|
endDate
|
||
|
}, null, HttpMethod.Post);
|
||
|
}
|
||
|
}
|
||
|
}
|