再次测试
This commit is contained in:
@@ -310,7 +310,7 @@ namespace BarCode.Web.Domain.Services
|
|||||||
//sList.ForEach(f => f.UnBox());
|
//sList.ForEach(f => f.UnBox());
|
||||||
s.UnBox();//解绑
|
s.UnBox();//解绑
|
||||||
|
|
||||||
|
// _logger.LogInformation($"现在进行TwoSerialNumber的写入");
|
||||||
if (dto.TwoSerialNumber != null)
|
if (dto.TwoSerialNumber != null)
|
||||||
{
|
{
|
||||||
_logger.LogInformation($"获取到:TwoSerialNumber:{dto.TwoSerialNumber}");
|
_logger.LogInformation($"获取到:TwoSerialNumber:{dto.TwoSerialNumber}");
|
||||||
@@ -325,7 +325,7 @@ namespace BarCode.Web.Domain.Services
|
|||||||
//_logger.LogInformation($"获取到:TwosStr:{TwosStr}");
|
//_logger.LogInformation($"获取到:TwosStr:{TwosStr}");
|
||||||
//_logger.LogInformation($"获取到:TwosStr:{TwosStr}");
|
//_logger.LogInformation($"获取到:TwosStr:{TwosStr}");
|
||||||
|
|
||||||
var TworesUn = box.UnSerialNumber(dto.TwoSerialNumber, dto.MaterialNumber);
|
var TworesUn = box.UnSerialNumber(dto.SerialNumber, dto.MaterialNumber);
|
||||||
if (!TworesUn.IsSuccess) return TworesUn;
|
if (!TworesUn.IsSuccess) return TworesUn;
|
||||||
|
|
||||||
//var sList = await _serialNumbersRepositories.GetEntityListContainNumber(new List<string>() { dto.SerialNumber });
|
//var sList = await _serialNumbersRepositories.GetEntityListContainNumber(new List<string>() { dto.SerialNumber });
|
||||||
|
|||||||
@@ -450,12 +450,17 @@ namespace BarCode.Web.Domain.Services
|
|||||||
public async Task<Result> Use(List<int> sGIds)
|
public async Task<Result> Use(List<int> sGIds)
|
||||||
{
|
{
|
||||||
var sGList = await _sGenerateRecordRepositories.GetEntityList(sGIds,"");
|
var sGList = await _sGenerateRecordRepositories.GetEntityList(sGIds,"");
|
||||||
|
_logger.LogInformation($"获取到:sGList:{JsonConvert.SerializeObject(sGList)}");
|
||||||
|
|
||||||
var sGSNumberList = await _serialNumbersRepositories.GetEntityListByGRIds(sGIds);
|
var sGSNumberList = await _serialNumbersRepositories.GetEntityListByGRIds(sGIds);
|
||||||
|
|
||||||
|
_logger.LogInformation($"获取到:sGSNumberList:{JsonConvert.SerializeObject(sGSNumberList)}");
|
||||||
|
|
||||||
foreach (var sg in sGList)
|
foreach (var sg in sGList)
|
||||||
{
|
{
|
||||||
int number = sGSNumberList.Where(w => w.GenerateRecordId == sg.Id && w.BoxId > 0 && w.IsNotCount!="1").Count();
|
int number = sGSNumberList.Where(w => w.GenerateRecordId == sg.Id && w.BoxId > 0 && w.IsNotCount!="1").Count();
|
||||||
sg.Use(number);
|
sg.Use(number);
|
||||||
|
_logger.LogInformation($"获取到:sg:{sg}");
|
||||||
}
|
}
|
||||||
|
|
||||||
var isSuccess = await _sGenerateRecordRepositories.EditEntityList(sGList, false);
|
var isSuccess = await _sGenerateRecordRepositories.EditEntityList(sGList, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user