|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.System.Dtos;
|
|
|
|
|
using DS.WMS.Core.System.Entity;
|
|
|
|
|
using DS.WMS.Core.System.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CommonController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly ICommonService _invokeService;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
|
public CommonController(ICommonService invokeService)
|
|
|
|
|
{
|
|
|
|
|
_invokeService = invokeService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetTrainList")]
|
|
|
|
|
public DataResult<List<TrainListViewModel>> GetTrainList([FromBody] PageRequest request)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetTrainList(request);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCompanyList")]
|
|
|
|
|
public DataResult<List<CompanyCheckBoxViewModel>> GetCompanyList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCompanyList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取客户箱号库位信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCustBoxAreaInfo")]
|
|
|
|
|
public DataResult<CustBoxAreaInfo> GetCustBoxAreaInfo()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCustBoxAreaInfo();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取客户库位箱号列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="code"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCustAreaBoxList")]
|
|
|
|
|
public DataResult<List<VW_Cust_Box_Area>> GetCustAreaBoxList([FromQuery]string code)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCustAreaBoxList(code);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
}
|