打印模板修改

dev
cjy 2 months ago
parent dbad47b959
commit 5441b21e18

@ -102,7 +102,7 @@ namespace DS.WMS.Core.Sys.Method
{
if (req.Id == 0)
{
if (db.Queryable<SysPrintTemplate>().Where(x => x.TemplateCode == req.TemplateCode).WhereIF(req.CarrierId != 0, x => x.CarrierId == req.CarrierId).Any())
if (db.Queryable<SysPrintTemplate>().Where(x => x.TemplateCode == req.TemplateCode && x.TemplateName == req.TemplateName).WhereIF(req.CarrierId != 0, x => x.CarrierId == req.CarrierId).Any())
{
return await Task.FromResult(DataResult.Failed("打印模板唯一编码已存在!"));
}

Loading…
Cancel
Save