修复bug

This commit is contained in:
18942506660
2023-12-12 18:00:02 +08:00
parent 7e5b72ac72
commit b23e2ebfe6
2 changed files with 2 additions and 2 deletions

View File

@@ -309,8 +309,9 @@ namespace WMS.Web.Api.Controllers
if (loginInfo == null || loginInfo.UserInfo == null)
return ResultList<BoxResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
boxBillNos = boxBillNos.ConvertAll(d => d.ToLower());
var res = await _boxRepositories.GetBox(boxBillNos);
var bStrList = res.Select(s => s.BoxBillNo).ToList();
var bStrList = res.Select(s => s.BoxBillNo.ToLower()).ToList();
var ex = boxBillNos.Except(bStrList).ToList();
if (ex.Count() > 0)
return ResultList<BoxResponse>.ReFailure("箱号" + JsonConvert.SerializeObject(ex) + "不存在", 800000);