From 43987d31cdf56e5c2de1626ec490607679297b53 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 19 四月 2023 14:18:14 +0800 Subject: [PATCH] 提交 --- zhengcaioa/Services/IntentionCustomerService.cs | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/zhengcaioa/Services/IntentionCustomerService.cs b/zhengcaioa/Services/IntentionCustomerService.cs index 883d620..5642c5f 100644 --- a/zhengcaioa/Services/IntentionCustomerService.cs +++ b/zhengcaioa/Services/IntentionCustomerService.cs @@ -627,5 +627,35 @@ return resultEntity; } + + + public ResultEntity GetZhengfuProjectDTOByTitle(string Name, string Id) + { + ResultEntity resultEntity = new ResultEntity(); + resultEntity.Result = true; + if (!string.IsNullOrWhiteSpace(Name)) + { + var checkUserSn = _context.IntentionCustomers.Where(r => r.RecStatus == "A" && r.Name == Name).FirstOrDefault(); + if (checkUserSn != null && (string.IsNullOrWhiteSpace(Id) || (!string.IsNullOrWhiteSpace(Id) && checkUserSn.Id != Id))) + { + resultEntity.Result = false; + resultEntity.Message = "璇ユ。妗堝鎴峰凡缁忓瓨鍦�"; + + } + var checkUserSncooper = _context.CooperatecustomCustomers.Where(r => r.RecStatus == "A" && r.Name == Name).FirstOrDefault(); + if (checkUserSncooper != null && (string.IsNullOrWhiteSpace(Id) || (!string.IsNullOrWhiteSpace(Id) && checkUserSncooper.Id != Id))) + { + resultEntity.Result = false; + resultEntity.Message = "璇ュ悎浣滃鎴峰凡缁忓瓨鍦�"; + + } + + } + + + + return resultEntity; + } + } } -- Gitblit v1.9.1