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.
107 lines
2.7 KiB
C#
107 lines
2.7 KiB
C#
5 months ago
|
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;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 派车信息-服务
|
||
|
/// </summary>
|
||
|
public class OpBusinessTruckController : ApiController
|
||
|
{
|
||
|
private readonly IOpBusinessTruckService _invokeService;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="invokeService"></param>
|
||
|
public OpBusinessTruckController(IOpBusinessTruckService invokeService)
|
||
|
{
|
||
|
_invokeService = invokeService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列表
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("GetOpBusinessTruckList")]
|
||
|
public DataResult<List<OpBusinessTruckRes>> GetOpBusinessTruckList([FromBody] PageRequest request)
|
||
|
{
|
||
|
var res = _invokeService.GetListByPage(request);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 编辑
|
||
|
/// </summary>
|
||
|
/// <param name="model"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("EditOpBusinessTruck")]
|
||
|
public DataResult EditOpBusinessTruck([FromBody] OpBusinessTruckReq model)
|
||
|
{
|
||
|
var res = _invokeService.EditOpBusinessTruck(model);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 详情
|
||
|
/// </summary>
|
||
|
/// <param name="id"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("GetOpBusinessTruckInfo")]
|
||
|
public DataResult<OpBusinessTruckRes> GetOpBusinessTruckInfo([FromQuery] string id)
|
||
|
{
|
||
|
var res = _invokeService.GetOpBusinessTruckInfo(id);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 批量删除
|
||
|
/// </summary>
|
||
|
/// <param name="req">主表Ids</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("BatchDelOpBusinessTruck")]
|
||
|
public DataResult BatchDelOpBusinessTruck([FromBody] IdModel req)
|
||
|
{
|
||
|
var res = _invokeService.BatchDelOpBusinessTruck(req);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 箱型列表
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("GetTruckCtnList")]
|
||
|
public DataResult<List<OpBusinessTruckCtnRes>> GetTruckCtnList([FromBody] PageRequest request)
|
||
|
{
|
||
|
var res = _invokeService.GetTruckCtnList(request);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 批量删除派车箱信息
|
||
|
/// </summary>
|
||
|
/// <param name="req">箱型Ids</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("BatchDelTruckCtns")]
|
||
|
public DataResult BatchDelTruckCtns([FromBody] IdModel req)
|
||
|
{
|
||
|
var res = _invokeService.BatchDelTruckCtns(req);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
}
|