37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
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+");
|
|
}
|
|
}
|
|
}
|
|
}
|