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.
91 lines
2.3 KiB
C#
91 lines
2.3 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// 业务锁定-服务
|
|
/// </summary>
|
|
public class BusinessLockingController : ApiController
|
|
{
|
|
private readonly IBusinessLockService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public BusinessLockingController(IBusinessLockService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetBusinessLockingList")]
|
|
public async Task<DataResult<List<VW_Op_Business_Lock>>> GetBusinessLockingList([FromBody] PageRequest request)
|
|
{
|
|
var res = await _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 业务锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BusinessLocking")]
|
|
public DataResult BusinessLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BusinessLocking(req);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 业务解除锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("BusinessUnLocking")]
|
|
public DataResult BusinessUnLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BusinessUnLocking(req);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 费用锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("FeeLocking")]
|
|
public DataResult FeeLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.FeeLocking(req);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 费用解除锁定
|
|
/// </summary>
|
|
/// <param name="req">主表Ids</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("FeeUnLocking")]
|
|
public DataResult FeeUnLocking([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.FeeUnLocking(req);
|
|
return res;
|
|
}
|
|
} |