| | |
| | | |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Yixiangtime) || (a.Yixiangtime >= Yixiangtimestart && a.Yixiangtime <= Yixiangtimeend)) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Yixiang) || ( a.Yixiang == searchEntity.Yixiang.Trim() && (a.Ywjl == null || a.Ywjl == searchEntity.YwjlYx) )) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Shifouweixin) || (searchEntity.Shifouweixin == "A" && a.Weixin != null) || (searchEntity.Shifouweixin != "A" && a.Weixin == null)) |
| | | //&& (string.IsNullOrWhiteSpace(searchEntity.Shifouweixin) || a.Shifoutianjiaweixin == searchEntity.Shifouweixin.Trim()) |
| | | select new IntentionCustomerDTO |
| | | { |
| | | Id = a.Id, |
| | |
| | | } |
| | | ).OrderByDescending(x => x.Modifytime).ToList(); |
| | | |
| | | |
| | | if (!string.IsNullOrWhiteSpace(searchEntity.Shifouweixin)) |
| | | { |
| | | query = query.Where( a=>a.Shifoutianjiaweixin == searchEntity.Shifouweixin.Trim()).ToList(); |
| | | } |
| | | |
| | | if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | |
| | | var list = _mapper.Map<List<IntentionCustomerDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | |
| | | public List<IntentionCustomerDTO> GetListsalaryweixin(string userid, DateTime datemin, DateTime datemax) |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.IntentionCustomers.Where(r => r.RecStatus == "A" && r.Weixiner == userid && r.Weixintime >= datemin && r.Weixintime < datemax).ToList(); |
| | | |
| | | var list = _mapper.Map<List<IntentionCustomerDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | |
| | | public List<IntentionCustomerDTO> GetListsalaryyixiang(string userid, DateTime datemin, DateTime datemax) |
| | | { |
| | | |
| | | |
| | | var listPosition = _context.IntentionCustomers.Where(r => r.RecStatus == "A" && r.Dianxiaozhuanyuan == userid && r.Yixiangtime >= datemin && r.Yixiangtime < datemax).ToList(); |
| | | |
| | | var list = _mapper.Map<List<IntentionCustomerDTO>>(listPosition); |
| | | return list; |
| | | } |
| | | |
| | | } |
| | | } |