using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Interface; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace DS.WMS.OpApi.Controllers; /// /// 场站入货通知-服务 /// public class OpBusinessYardController : ApiController { private readonly IOpBusinessYardService _invokeService; /// /// 构造函数 /// /// public OpBusinessYardController(IOpBusinessYardService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOpBusinessYardList")] public DataResult> GetOpBusinessYardList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 列表 /// /// /// [HttpPost] [Route("GetYardHistoryList")] public async Task>> GetYardHistoryList([FromBody] PageRequest request) { var res = await _invokeService.GetYardHistoryList(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOpBusinessYard")] public DataResult EditOpBusinessYard([FromBody] OpBusinessYardReq model) { var res = _invokeService.EditOpBusinessYard(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOpBusinessYardInfo")] public DataResult GetOpBusinessYardInfo([FromQuery] string id) { var res = _invokeService.GetOpBusinessYardInfo(id); return res; } /// /// 根据业务id详情 /// /// /// [HttpGet] [Route("GetBusinessYardByKeyId")] public DataResult GetBusinessYardByKeyId([FromQuery] string id) { var res = _invokeService.GetBusinessYardByKeyId(id); return res; } /// /// 批量删除 /// /// 主表Ids /// [HttpPost] [Route("BatchDelOpBusinessYard")] public DataResult BatchDelOpBusinessYard([FromBody] IdModel req) { var res = _invokeService.BatchDelOpBusinessYard(req); return res; } }