From 10b700dad2a510b83a5066aa5002dea8f4eb0e38 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 04 六月 2021 15:41:30 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Services/IntentionCustomerService.cs |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/Services/IntentionCustomerService.cs b/zhengcaioa/Services/IntentionCustomerService.cs
index c4d47ee..e287578 100644
--- a/zhengcaioa/Services/IntentionCustomerService.cs
+++ b/zhengcaioa/Services/IntentionCustomerService.cs
@@ -112,6 +112,23 @@
         return intentionCustomerDTO;
     }
 
+        public IntentionCustomerDTO GetByName(string name)
+        {
+            
+            var entity = _context.IntentionCustomers.Where(x=>x.Name == name).FirstOrDefault();
+
+            if (entity==null || entity.RecStatus != "A")
+            {
+                entity = new IntentionCustomer();
+            }
+
+            var intentionCustomerDTO = _mapper.Map<IntentionCustomerDTO>(entity);
+
+
+            return intentionCustomerDTO;
+        }
+
+        
     public ResultDataEntity<IntentionCustomerDTO> SearchByPaging(IntentionCustomerDTOSearch searchEntity)
     {
 

--
Gitblit v1.9.1