From a6b6b4303483395bf6ff745f5abf171552afae38 Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期五, 18 六月 2021 17:30:14 +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