using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Check.Dtos;
using DS.WMS.Core.Check.Interface;
using DS.WMS.Core.Check.View;
using DS.WMS.Core.Op.Dtos;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.CheckApi.Controllers;
///
/// 客户对账服务
///
public class CheckBillController : ApiController
{
private readonly ICheckBillService _invokeService;
///
/// 构造函数
///
///
public CheckBillController(ICheckBillService invokeService)
{
_invokeService = invokeService;
}
///
/// 客户对账明细查询列表
///
///
///
[HttpPost]
[Route("GetBusinessQueryList")]
public DataResult> GetBusinessQueryList([FromBody] PageRequest request)
{
var res = _invokeService.GetBusinessQueryList(request);
return res;
}
///
/// 客户对账明细查询列表
///
///
///
[HttpPost]
[Route("GetFeeRecordQueryList")]
public DataResult> GetFeeRecordQueryList([FromBody] PageRequest request)
{
var res = _invokeService.GetFeeRecordQueryList(request);
return res;
}
///
/// 客户对账列表
///
///
///
[HttpPost]
[Route("GetCheckBillList")]
public DataResult> GetCheckBillList([FromBody] PageRequest request)
{
var res = _invokeService.GetCheckBillList(request);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCheckBillInfo")]
public DataResult GetCheckBillInfo([FromQuery] string id)
{
var res = _invokeService.GetCheckBillInfo(id);
return res;
}
///
/// 客户对账明细列表
///
///
///
[HttpPost]
[Route("GetCheckBillBusinessList")]
public DataResult> GetCheckBillBusinessList([FromBody] PageRequest request)
{
var res = _invokeService.GetCheckBillBusinessList(request);
return res;
}
///
/// 客户对账明细对应费用列表
///
///
///
[HttpPost]
[Route("GetCheckBillFeeRecordsList")]
public DataResult> GetCheckBillFeeRecordsList([FromBody] PageRequest request)
{
var res = _invokeService.GetCheckBillFeeRecordsList(request);
return res;
}
///
/// 对账明细批量删除
///
/// 主表Id及明细业务Ids
///
[HttpPost]
[Route("BatchDelCheckBillDetail")]
public DataResult BatchDelCheckBillDetail([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCheckBillDetail(req);
return res;
}
///
/// 对账明细费用批量删除
///
/// 主表Id及费用Ids
///
[HttpPost]
[Route("BatchDelCheckBillFeeRecords")]
public DataResult BatchDelCheckBillFeeRecords([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCheckBillFeeRecords(req);
return res;
}
///
/// 对账明细添加
///
/// 主表Id及明细业务Ids
///
[HttpPost]
[Route("AddCheckBillDetail")]
public DataResult AddCheckBillDetail([FromBody] IdModel req)
{
var res = _invokeService.AddCheckBillDetail(req);
return res;
}
///
/// 对账明细费用添加
///
/// 主表Id及费用Ids
///
[HttpPost]
[Route("AddCheckBillFeeRecords")]
public DataResult AddCheckBillFeeRecords([FromBody] IdModel req)
{
var res = _invokeService.AddCheckBillFeeRecords(req);
return res;
}
///
/// 锁定
///
/// 主表Ids
///
[HttpPost]
[Route("CheckBillLocking")]
public DataResult CheckBillLocking([FromBody] IdModel req)
{
var res = _invokeService.CheckBillLocking(req);
return res;
}
///
/// 解除锁定
///
/// 主表Ids
///
[HttpPost]
[Route("CheckBillUnLocking")]
public DataResult CheckBillUnLocking([FromBody] IdModel req)
{
var res = _invokeService.CheckBillUnLocking(req);
return res;
}
}