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