From 5441b21e18ae9fefe0952edc4fc8e82e32a7f32b Mon Sep 17 00:00:00 2001 From: cjy Date: Mon, 23 Sep 2024 09:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A8=A1=E6=9D=BF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Sys/Method/SysPrintTemplateService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/SysPrintTemplateService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/SysPrintTemplateService.cs index 8f26b8f7..447aec69 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/SysPrintTemplateService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/SysPrintTemplateService.cs @@ -102,7 +102,7 @@ namespace DS.WMS.Core.Sys.Method { if (req.Id == 0) { - if (db.Queryable().Where(x => x.TemplateCode == req.TemplateCode).WhereIF(req.CarrierId != 0, x => x.CarrierId == req.CarrierId).Any()) + if (db.Queryable().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("打印模板唯一编码已存在!")); }