包装信息必填去除

usertest
cjy 3 months ago
parent f437009c8b
commit 2c50fcb981

@ -50,8 +50,8 @@ public class CodePackageReqValidator : AbstractValidator<CodePackageReq>
{
this.RuleFor(o => o.PackageName)
.NotEmpty().WithName("包装类型");
this.RuleFor(o => o.CnExplain)
.NotEmpty().WithName("中文名称");
//this.RuleFor(o => o.CnExplain)
// .NotEmpty().WithName("中文名称");
//this.RuleFor(o => o.EdiCode)
// .NotEmpty().WithName("EDI代码");
}

@ -86,7 +86,11 @@ namespace DS.WMS.Core.Code.Method
AfrCode = item.AfrCode,
EdiCode = item.EdiCode,
};
packages.Add(package);
if (!string.IsNullOrEmpty(package.PackageName))
{
packages.Add(package);
}
}
//var codes = configs.Select(c => c.SystemCode).ToList();
//if (tenantDb.Queryable<BookingGoodsStatusConfig>().Where(x => codes.Contains(x.SystemCode)).Any())

Loading…
Cancel
Save