using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Rhea.Common; using Tiger.Model; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Tiger.IBusiness; namespace Tiger.Api.Controllers.WMS { /// /// 仓库业务流程 /// public partial class WMSController : ControllerBase { /// /// 获取相应的二维码 /// /// /// [HttpGet] [Route("api/[controller]/Item/GetQRCode")] public IActionResult Item_GetQRCode(string? sn) { ApiAction response = new(); try { response = response.GetResponse(iBiz.WMS.WmsItem.GetQRCode(sn)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } [HttpPost] [Route("api/[controller]/Item/QueryLocation")] public async Task Item_QueryLocation([FromBody] ApiAction action) { ApiAction response = new(); try { response = response.GetResponse(iBiz.WMS.WmsItem.QueryLocation(action.Data)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } } }