From f7841c1dc1cd7f0a80d0cc77cc54481d0a8bb707 Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期二, 08 六月 2021 15:02:41 +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