You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
5.6 KiB
C#
203 lines
5.6 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// 客户对账服务
|
|
/// </summary>
|
|
public class CheckBillController : ApiController
|
|
{
|
|
private readonly ICheckBillService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public CheckBillController(ICheckBillService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户对账业务查询列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetBusinessQueryList")]
|
|
public DataResult<List<VW_CheckBill_Detail>> GetBusinessQueryList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetBusinessQueryList(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户对账业务费用明细查询列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetFeeRecordQueryList")]
|
|
public DataResult<List<CheckBillFeeRecordRes>> GetFeeRecordQueryList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetFeeRecordQueryList(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户对账列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetCheckBillList")]
|
|
public async Task<DataResult<CheckBillListRes>> GetCheckBillList([FromBody] PageRequest request)
|
|
{
|
|
var res = await _invokeService.GetCheckBillList(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditCheckBill")]
|
|
public DataResult EditCheckBill([FromBody] CheckBillReq req)
|
|
{
|
|
var res = _invokeService.EditCheckBill(req);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCheckBillInfo")]
|
|
public DataResult<CheckBillInfoRes> GetCheckBillInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetCheckBillInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 客户对账明细列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetCheckBillBusinessList")]
|
|
public async Task<DataResult<CheckBillBusinessRes>> GetCheckBillBusinessList([FromBody] PageRequest request)
|
|
{
|
|
var res = await _invokeService.GetCheckBillBusinessList(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户对账明细对应费用列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetCheckBillFeeRecordsList")]
|
|
public DataResult<List<VW_CheckBill_Fee_Records>> GetCheckBillFeeRecordsList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetCheckBillFeeRecordsList(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 对账明细批量删除
|
|
/// </summary>
|
|
/// <param name="req">主表Id及明细业务Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BatchDelCheckBillDetail")]
|
|
public DataResult BatchDelCheckBillDetail([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BatchDelCheckBillDetail(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 对账明细费用批量删除
|
|
/// </summary>
|
|
/// <param name="req">主表Id及费用Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BatchDelCheckBillFeeRecords")]
|
|
public DataResult BatchDelCheckBillFeeRecords([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BatchDelCheckBillFeeRecords(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 对账明细添加
|
|
/// </summary>
|
|
/// <param name="req">主表Id及明细业务Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("AddCheckBillDetail")]
|
|
public DataResult AddCheckBillDetail([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.AddCheckBillDetail(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 对账明细费用添加
|
|
/// </summary>
|
|
/// <param name="req">主表Id及费用Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("AddCheckBillFeeRecords")]
|
|
public DataResult AddCheckBillFeeRecords([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.AddCheckBillFeeRecords(req);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("CheckBillLocking")]
|
|
public DataResult CheckBillLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.CheckBillLocking(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 解除锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("CheckBillUnLocking")]
|
|
public DataResult CheckBillUnLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.CheckBillUnLocking(req);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 客户对账模板下拉列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCheckBillTemplateList")]
|
|
public DataResult<List<CheckBillTemplateSelectRes>> GetCheckBillTemplateList()
|
|
{
|
|
var res = _invokeService.GetCheckBillTemplateList();
|
|
return res;
|
|
}
|
|
} |