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; /// /// 集装箱管理 /// public class CM_CurrentStateController : ApiController { private readonly ICM_CurrentStateService _invokeService; /// /// 构造函数 /// /// public CM_CurrentStateController(ICM_CurrentStateService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCM_CurrentStateList")] public async Task>> GetCM_CurrentStateList([FromBody] PageRequest request) { var res = await _invokeService.GetListByPage(request); return res; } /// /// 直接编辑状态 /// /// [HttpPost] [Route("EditCM_CurrentState")] public DataResult EditCM_CurrentState([FromBody] CM_CurrentStateReq model) { var res = _invokeService.EditCM_CurrentState(model); return res; } /// /// 查看状态详情 /// /// /// [HttpGet] [Route("GetCM_CurrentStateInfo")] public DataResult GetCM_CurrentStateInfo([FromQuery] string id) { var res = _invokeService.GetCM_CurrentState(id); 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; //} }