using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Finance.Interface; using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.Op.View; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.FinanceApi.Controllers; /// /// 业务锁定-服务 /// public class BusinessLockingController : ApiController { private readonly IBusinessLockService _invokeService; /// /// 构造函数 /// /// public BusinessLockingController(IBusinessLockService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetBusinessLockingList")] public async Task>> GetBusinessLockingList([FromBody] PageRequest request) { var res = await _invokeService.GetListByPage(request); return res; } /// /// 业务锁定 /// /// 主表Ids /// [HttpPost] [Route("BusinessLocking")] public DataResult BusinessLocking([FromBody] IdModel req) { var res = _invokeService.BusinessLocking(req); return res; } /// /// 业务解除锁定 /// /// 主表Ids /// [HttpPost] [Route("BusinessUnLocking")] public DataResult BusinessUnLocking([FromBody] IdModel req) { var res = _invokeService.BusinessUnLocking(req); return res; } /// /// 费用锁定 /// /// 主表Ids /// [HttpPost] [Route("FeeLocking")] public DataResult FeeLocking([FromBody] IdModel req) { var res = _invokeService.FeeLocking(req); return res; } /// /// 费用解除锁定 /// /// 主表Ids /// [HttpPost] [Route("FeeUnLocking")] public DataResult FeeUnLocking([FromBody] IdModel req) { var res = _invokeService.FeeUnLocking(req); return res; } }