| | |
| | | |
| | | using HH.WCS.Mobox3.NFLZ.device; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using System.Web.Http; |
| | | using static HH.WCS.Mobox3.NFLZ.api.ApiHelper; |
| | | using static HH.WCS.Mobox3.NFLZ.api.ApiModel; |
| | |
| | | [Route("bindCntr")] |
| | | public ReturnResult bindCntr(bindModel model) |
| | | { |
| | | ReturnResult result = new ReturnResult(); |
| | | LogHelper.Info($"bindCntr requst:{JsonConvert.SerializeObject(model)}"); |
| | | ApiHelper.bindCntr(model); |
| | | return new ReturnResult(); |
| | | result = ApiHelper.bindCntr(model); |
| | | return result; |
| | | |
| | | } |
| | | |
| | |
| | | [Route("unBindCntr")] |
| | | public ReturnResult unBindCntr(unBindModel model) |
| | | { |
| | | ReturnResult result = new ReturnResult(); |
| | | LogHelper.Info($"unBindCntr requst:{JsonConvert.SerializeObject(model)}"); |
| | | ApiHelper.unBindCntr(model); |
| | | return new ReturnResult(); |
| | | result = ApiHelper.unBindCntr(model); |
| | | return result; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 外调接驳入库 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("JBIn")] |
| | | public ReturnResult JBIn(JBInModel model) |
| | | { |
| | | ReturnResult result = new ReturnResult(); |
| | | LogHelper.Info($"JBIn requst:{JsonConvert.SerializeObject(model)}"); |
| | | result = ApiHelper.JBIn(model); |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 点到点转运 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("PtpTask")] |
| | | public ReturnResult PtpTask(PtpTaskModel model) |
| | | { |
| | | ReturnResult result = new ReturnResult(); |
| | | LogHelper.Info($"PtpTask requst:{JsonConvert.SerializeObject(model)}"); |
| | | result = ApiHelper.PtpTask(model, result); |
| | | return result; |
| | | } |
| | | } |
| | | } |