1、调整电梯逻辑代码
2、新增内部测试类
This commit is contained in:
36
WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs
Normal file
36
WarehouseMgr/Tnb.WarehouseMgr/WmsInternalTempTestService.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Extension;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
public class WmsInternalTempTestService
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
public WmsInternalTempTestService(ISqlSugarRepository<BasLocation> repo)
|
||||
{
|
||||
_db = repo.AsSugarClient();
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改列
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public void UpdateCol()
|
||||
{
|
||||
List<BasLocation> list = new List<BasLocation>();
|
||||
foreach (var loc in list)
|
||||
{
|
||||
ReadOnlySpan<char> inputSpan= loc.location_code.AsSpan();
|
||||
ReadOnlySpan<char> lastTwoCharacters = inputSpan.Slice(inputSpan.Length - 2);
|
||||
var num = lastTwoCharacters.ToString().Match(@"\d+");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user