using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Mvc;
|
using Newtonsoft.Json;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_Core.Helper;
|
using WIDESEA_ISystemService;
|
using WIDESEA_Model.Models;
|
using WIDESEA_DTO.System;
|
using WIDESEA_Core;
|
using WIDESEA_Model;
|
using WIDESEA_Model.Models.System.Request;
|
using WIDESEA_Model.Models.System.Reponse;
|
|
namespace WIDESEA_WMSServer.Controllers.System
|
{
|
[Route("api/Sys_Job")]
|
[ApiController]
|
public class Sys_JobController : ApiBaseController<ISys_JobService, Sys_Job>
|
{
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
private readonly ISys_JobService _sys_JobService;
|
public Sys_JobController(ISys_JobService service, IHttpContextAccessor httpContextAccessor) : base(service)
|
{
|
_httpContextAccessor = httpContextAccessor;
|
_sys_JobService = service;
|
}
|
/// <summary>
|
/// 同步比亚迪WMS条码主数据
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost, Route("SyncLabMaster"), AllowAnonymous]
|
public WebResponseContent SyncLabMaster()
|
{
|
return _sys_JobService.SyncLabMaster();
|
}
|
|
/// <summary>
|
/// 回调比亚迪WMS上架结果回传
|
/// </summary>
|
/// <param name="putAway"></param>
|
/// <returns></returns>
|
[HttpPost, Route("CallPutAway"), AllowAnonymous]
|
public WebResponseContent CallPutAway([FromBody] PutAwayRequest putAway)
|
{
|
return _sys_JobService.CallPutAway(putAway);
|
}
|
|
/// <summary>
|
/// 比亚迪出库指令接口
|
/// </summary>
|
/// <param></param>
|
/// <returns></returns>
|
[HttpPost, Route("SelectOutStoreOrder"), AllowAnonymous]
|
public WebResponseContent SelectOutStoreOrder()
|
{
|
return _sys_JobService.SelectOutStoreOrder();
|
}
|
|
|
/// <summary>
|
/// 回调比亚迪WMS出库完成信息接口
|
/// </summary>
|
/// <param name="pickAndPost"></param>
|
/// <returns></returns>
|
[HttpPost, Route("CallPickAndPost"), AllowAnonymous]
|
public WebResponseContent CallPickAndPost([FromBody] PickAndPostRequest pickAndPost)
|
{
|
return _sys_JobService.CallPickAndPost(pickAndPost);
|
}
|
|
|
|
|
|
/// <summary>
|
/// 回调比亚迪WMS余料回库完成信息接口
|
/// </summary>
|
/// <param name="putAway"></param>
|
/// <returns></returns>
|
[HttpPost, Route("CallPutAwayReturn"), AllowAnonymous]
|
public WebResponseContent CallPutAwayReturn([FromBody] PutAwayReturnRequest putAwayReturn)
|
{
|
return _sys_JobService.CallPutAwayReturn(putAwayReturn);
|
}
|
|
|
|
|
|
|
|
}
|
}
|