diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs index 1e4b6f24..a8b91d9f 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs @@ -13,7 +13,7 @@ using Tnb.WarehouseMgr.Entities; namespace Tnb.WarehouseMgr { - public class WmsInternalTempTestService + public class WmsInternalTempTestService : BaseWareHouseService { private readonly ISqlSugarClient _db; public WmsInternalTempTestService(ISqlSugarRepository repo) @@ -24,18 +24,18 @@ namespace Tnb.WarehouseMgr /// 修改列 /// /// - [HttpPost] + [HttpPost] public async Task UpdateColAsync() { List list = await _db.Queryable().Where(it => it.location_code.StartsWith("CP-A", StringComparison.OrdinalIgnoreCase)).OrderBy(i => i.location_code).ToListAsync(); foreach (var loc in list) { - ReadOnlySpan inputSpan= loc.location_code.AsSpan(); + ReadOnlySpan inputSpan = loc.location_code.AsSpan(); ReadOnlySpan lastTwoCharacters = inputSpan.Slice(inputSpan.Length - 2); int num = lastTwoCharacters.ToString().Match(@"\d+").ParseToInt(); - await _db.Updateable().SetColumns(it => it.loc_column == num).Where(it => it.id==loc.id).ExecuteCommandAsync(); + await _db.Updateable().SetColumns(it => it.loc_column == num).Where(it => it.id == loc.id).ExecuteCommandAsync(); } - + } } }