改了查询
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BarCode.Web.Core;
|
||||
using AutoMapper.Configuration.Annotations;
|
||||
using BarCode.Web.Core;
|
||||
using BarCode.Web.Core.Help;
|
||||
using BarCode.Web.Core.Internal.Results;
|
||||
using BarCode.Web.Domain.Services.Public;
|
||||
@@ -61,12 +62,12 @@ namespace BarCode.Web.Domain.Entitys
|
||||
/// <summary>
|
||||
/// 序列号
|
||||
/// </summary>
|
||||
[Column("SuitNumber")]
|
||||
[Ignore]
|
||||
public string SuitNumber { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 产生第二个
|
||||
/// </summary>
|
||||
[Column("TwoSerialNumber")]
|
||||
[Ignore]
|
||||
public string TwoSerialNumber { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 物料Id
|
||||
|
||||
@@ -133,6 +133,10 @@ namespace BarCode.Web.Domain.Services
|
||||
List<SerialNumberGenerateRecord> sgList = new List<SerialNumberGenerateRecord>();
|
||||
foreach (var d in dto.Details)
|
||||
{
|
||||
if(d.Number>1000)
|
||||
{
|
||||
d.Number = 1000;
|
||||
}
|
||||
if (d.isTwo == 0)//如果套装数为0,那么自动变成1
|
||||
{
|
||||
d.isTwo = 1;
|
||||
|
||||
Reference in New Issue
Block a user