From c888afad7b611e6341b8e733eff5e651ae82695b Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 10 六月 2021 14:58:43 +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