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.
81 lines
2.3 KiB
C#
81 lines
2.3 KiB
C#
4 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_BuyCtn_DetailController : ApiController
|
||
|
{
|
||
|
private readonly ICM_BuyCtn_DetailService _invokeService;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="invokeService"></param>
|
||
|
public CM_BuyCtn_DetailController(ICM_BuyCtn_DetailService invokeService)
|
||
|
{
|
||
|
_invokeService = invokeService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列表
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("GetCM_BuyCtn_DetailList")]
|
||
|
public async Task<DataResult<List<CM_BuyCtn_DetailRes>>> GetCM_BuyCtn_DetailList([FromBody] PageRequest request)
|
||
|
{
|
||
|
var res = await _invokeService.GetListByPage(request);
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 直接编辑
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
//[HttpPost]
|
||
|
//[Route("EditCM_BuyCtn_Detail")]
|
||
|
//public DataResult EditCM_BuyCtn_Detail([FromBody] CM_BuyCtn_DetailReq model)
|
||
|
//{
|
||
|
// var res = _invokeService.EditCM_BuyCtn_Detail(model);
|
||
|
// return res;
|
||
|
//}
|
||
|
|
||
|
///// <summary>
|
||
|
///// 查看买箱明细详情
|
||
|
///// </summary>
|
||
|
///// <param name="id"></param>
|
||
|
///// <returns></returns>
|
||
|
//[HttpGet]
|
||
|
//[Route("GetCM_BuyCtn_Detail")]
|
||
|
//public DataResult<CM_BuyCtn_DetailRes> GetCM_BuyCtn_Detail([FromQuery] string id)
|
||
|
//{
|
||
|
// var res = _invokeService.GetCM_BuyCtn_Detail(id);
|
||
|
// return res;
|
||
|
//}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 删除买箱
|
||
|
/// </summary>
|
||
|
/// <param name="model">删除买箱</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost, Route("DeleteCM_BuyCtn_Detail")]
|
||
|
public async Task<DataResult> DeleteCM_BuyCtn_DetailAsync([FromBody] IdModel model)
|
||
|
{
|
||
|
if (!ModelState.IsValid)
|
||
|
return DataResult.Failed(ModelState.GetErrorMessage(), MultiLanguageConst.IllegalRequest);
|
||
|
|
||
|
return await _invokeService.DeleteCM_BuyCtn_DetailAsync(model.Ids);
|
||
|
}
|
||
|
}
|