| | |
| | | using System.Security.Claims; |
| | | using System.Threading.Tasks; |
| | | using Model.ModelDto.SysDto; |
| | | using WMS.BLL.LogServer; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 托盘明细备注 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <param name="demo"></param> |
| | | /// <param name="userId"></param> |
| | | /// <exception cref="Exception"></exception> |
| | | [HttpGet] |
| | | public IActionResult EditStockDetailDemo(int id, string demo) |
| | | { |
| | | try |
| | | { |
| | | var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | string userId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value; |
| | | if (string.IsNullOrWhiteSpace(userId)) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | |
| | | _stockDetail.EditStockDetailDemo(id, demo, int.Parse(userId)); |
| | | |
| | | |
| | | return Ok(new { code = 0, msg = "编辑备注成功" }); |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { code = 1, msg = e.Message }); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取箱码明细 |