Commit a401fe26 by Licx

姓名修改为模糊匹配

parent 6b602c3d
......@@ -885,7 +885,7 @@ public List<view_per_apr_amount> GetEmployeeMessage(int allotId, string personne
var employeeId = 0;
if (!string.IsNullOrEmpty(personnelNumber))
{
var employee = peremployeeRepository.GetEntity(w => w.AllotId == allotId && w.PersonnelNumber != null
var employee = peremployeeRepository.GetEntity(w => w.AllotId == allotId && w.PersonnelNumber != null
&& w.PersonnelNumber.Trim() == personnelNumber.Trim());
if (employee != null)
{
......@@ -896,8 +896,8 @@ public List<view_per_apr_amount> GetEmployeeMessage(int allotId, string personne
if (!string.IsNullOrEmpty(doctorName))
{
var filterEmployees = peremployeeRepository.GetEntities(w => w.AllotId == allotId && w.DoctorName != null
&& w.DoctorName.Trim() == doctorName.Trim() && w.Id != employeeId);
var filterEmployees = peremployeeRepository.GetEntities(w => w.AllotId == allotId && w.DoctorName != null
&& w.DoctorName.Trim().Contains(doctorName.Trim()) && w.Id != employeeId);
if (filterEmployees != null && filterEmployees.Any()) employees.AddRange(filterEmployees);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment