From 90dd02e591779ead7a79421b610542f00c3a9227 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 03 四月 2023 09:21:13 +0800 Subject: [PATCH] 后台app推送 --- 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