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 async Task> GetCheckBillList([FromBody] PageRequest request) { var res = await _invokeService.GetCheckBillList(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCheckBill")] public DataResult EditCheckBill([FromBody] CheckBillReq req) { var res = _invokeService.EditCheckBill(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCheckBillInfo")] public DataResult GetCheckBillInfo([FromQuery] string id) { var res = _invokeService.GetCheckBillInfo(id); return res; } /// /// 客户对账明细列表 /// /// /// [HttpPost] [Route("GetCheckBillBusinessList")] public async Task> GetCheckBillBusinessList([FromBody] PageRequest request) { var res = await _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; } /// /// 对账列表批量删除 /// /// 主表Ids /// [HttpPost] [Route("BatchDelCheckBill")] public async Task BatchDelCheckBill([FromBody] IdModel req) { var res = await _invokeService.BatchDelCheckBill(req); return res; } /// /// 对账明细添加 /// /// 主表Id及明细业务Ids /// [HttpPost] [Route("AddCheckBillDetail")] public async Task AddCheckBillDetail([FromBody] AddCheckBillDetailReq req) { var res = await _invokeService.AddCheckBillDetail(req); return res; } /// /// 对账明细费用添加 /// /// 主表Id及费用Ids /// [HttpPost] [Route("AddCheckBillFeeRecords")] public async Task AddCheckBillFeeRecords([FromBody] IdModel req) { var res = await _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; } /// /// 客户对账模板下拉列表 /// /// [HttpGet] [Route("GetCheckBillTemplateList")] public DataResult> GetCheckBillTemplateList() { var res = _invokeService.GetCheckBillTemplateList(); return res; } }