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.

95 lines
2.5 KiB
C#

5 months ago
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.ContainerManagement.Info.Dtos;
using DS.WMS.ContainerManagement.Info.Entity;
using DS.WMS.ContainerManagement.Info.Interface;
using DS.WMS.Core.Code.Dtos;
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.ContainerManagementApi.Controllers;
/// <summary>
/// 集装箱管理
/// </summary>
public class CM_CurrentStateController : ApiController
{
private readonly ICM_CurrentStateService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public CM_CurrentStateController(ICM_CurrentStateService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetCM_CurrentStateList")]
public async Task<DataResult<List<CM_CurrentStateRes>>> GetCM_CurrentStateList([FromBody] PageRequest request)
{
var res = await _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 直接编辑状态
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("EditCM_CurrentState")]
public DataResult EditCM_CurrentState([FromBody] CM_CurrentStateReq model)
{
var res = _invokeService.EditCM_CurrentState(model);
return res;
}
/// <summary>
/// 查看状态详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetCM_CurrentStateInfo")]
public DataResult<CM_CurrentStateRes> GetCM_CurrentStateInfo([FromQuery] string id)
{
var res = _invokeService.GetCM_CurrentState(id);
5 months ago
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;
//}
}