From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Services/IntentionCustomerService.cs |   34 +++++++++++++++++++++++++++++++---
 1 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/zhengcaioa/Services/IntentionCustomerService.cs b/zhengcaioa/Services/IntentionCustomerService.cs
index 22e37f2..3b528fb 100644
--- a/zhengcaioa/Services/IntentionCustomerService.cs
+++ b/zhengcaioa/Services/IntentionCustomerService.cs
@@ -97,6 +97,8 @@
 
                     updateproject.Weixin = intentionCustomer.Weixin;
                     updateproject.Shifoutianjiaweixin = intentionCustomer.Shifoutianjiaweixin;
+                    updateproject.Weixiner = intentionCustomer.Weixiner;
+                    updateproject.Weixintime = intentionCustomer.Weixintime;
 
                 }
 
@@ -230,7 +232,7 @@
                                 
                                     && (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,
@@ -273,6 +275,8 @@
                          Remark = a.Remark,
                          Weixin = a.Weixin,
                          Shifoutianjiaweixin = a.Shifoutianjiaweixin,
+                         Weixiner = a.Weixiner,
+                         Weixintime = a.Weixintime,
                          RecStatus = a.RecStatus,
                          Modifier = a.Modifier,
                          Modifytime = a.Modifytime,
@@ -287,9 +291,12 @@
                              }
                     ).OrderByDescending(x => x.Modifytime).ToList();
 
+            if (!string.IsNullOrWhiteSpace(searchEntity.Shifouweixin))
+            {
+                query = query.Where( a=>a.Shifoutianjiaweixin == searchEntity.Shifouweixin.Trim()).ToList();
+            }
 
-
-        if (searchEntity.totalrows == 0)
+        //if (searchEntity.totalrows == 0)
             searchEntity.totalrows = query.Count();
         var lianlist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList();
         data.LoadData(searchEntity, lianlist);
@@ -367,5 +374,26 @@
             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;
+        }
+
     }
 }

--
Gitblit v1.9.1