Bladeren bron

字段完善

mengjie 5 jaren geleden
bovenliggende
commit
7053218244

+ 8 - 1
代码/System.Model/T_Cus_VipInfo.cs

@@ -214,7 +214,14 @@ namespace System.Model
214 214
         /// 累计积分
215 215
         /// </summary>				
216 216
         public decimal F_TotalScore { get; set; }
217
-
217
+        /// <summary>
218
+        /// 销售负责人
219
+        /// </summary>				
220
+        public string F_Saleperson { get; set; }
221
+        /// <summary>
222
+        /// 联系频次
223
+        /// </summary>				
224
+        public string F_Contact { get; set; }
218 225
         #endregion Model
219 226
     }
220 227
 }

+ 51 - 6
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VIPInfoController.cs

@@ -41,23 +41,68 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
41 41
         /// <param name="pagesize"></param>
42 42
         /// <returns></returns>
43 43
         [HttpGet("getlistbypage")]
44
-        public async Task<IActionResult> GetListsByPageAsync(string keyword, int pageindex = 1, int pagesize = 20)
44
+        public async Task<IActionResult> GetListsByPageAsync(string keyword,string name,string phone,string label,string province,string city,string area,string town,string address,string birthday,string recommender,string saleperson,string contact, int pageindex = 1, int pagesize = 20)
45 45
         {
46 46
             List<IConditionalModel> conModels = new List<IConditionalModel>();
47 47
             #region 条件筛选
48 48
             conModels.Add(new ConditionalModel() { FieldName = "F_State", ConditionalType = ConditionalType.Equal, FieldValue = ((int)EnumDelState.Enabled).ToString() });
49 49
 
50
-            if (!string.IsNullOrEmpty(keyword))
50
+            if (!string.IsNullOrEmpty(phone))
51 51
                 conModels.Add(new ConditionalCollections()
52 52
                 {
53 53
                     ConditionalList = new List<KeyValuePair<WhereType, ConditionalModel>>()
54 54
                     {
55
-                        new  KeyValuePair<WhereType, ConditionalModel>(WhereType.And, new ConditionalModel() { FieldName = "F_Name", ConditionalType = ConditionalType.Like, FieldValue = keyword }),
56
-                        new  KeyValuePair<WhereType, ConditionalModel>( WhereType.Or , new ConditionalModel() { FieldName = "F_Phone", ConditionalType = ConditionalType.Like, FieldValue = keyword }),
57
-                        new  KeyValuePair<WhereType, ConditionalModel>( WhereType.Or, new ConditionalModel() { FieldName = "F_VIPCode", ConditionalType = ConditionalType.Like, FieldValue = keyword })
55
+                        new  KeyValuePair<WhereType, ConditionalModel>(WhereType.And, new ConditionalModel() { FieldName = "F_Phone", ConditionalType = ConditionalType.Like, FieldValue = phone }),
56
+                        new  KeyValuePair<WhereType, ConditionalModel>( WhereType.Or , new ConditionalModel() { FieldName = "F_Mobile", ConditionalType = ConditionalType.Like, FieldValue = phone }),
57
+                        new  KeyValuePair<WhereType, ConditionalModel>( WhereType.Or, new ConditionalModel() { FieldName = "F_Mobile1", ConditionalType = ConditionalType.Like, FieldValue = phone })
58 58
                        
59 59
                     }
60 60
                 });
61
+            if (!string.IsNullOrEmpty(name))
62
+            {
63
+                conModels.Add(new ConditionalModel() { FieldName = "F_Name", ConditionalType = ConditionalType.Like, FieldValue = name });
64
+            }
65
+            if (!string.IsNullOrEmpty(label))
66
+            {
67
+                conModels.Add(new ConditionalModel() { FieldName = "F_Label", ConditionalType = ConditionalType.Like, FieldValue = label });
68
+            }
69
+            if (!string.IsNullOrEmpty(province))
70
+            {
71
+                conModels.Add(new ConditionalModel() { FieldName = "F_Province", ConditionalType = ConditionalType.Like, FieldValue = priovince });
72
+            }
73
+
74
+            if (!string.IsNullOrEmpty(city))
75
+            {
76
+                conModels.Add(new ConditionalModel() { FieldName = "F_City", ConditionalType = ConditionalType.Like, FieldValue = city });
77
+            }
78
+            if (!string.IsNullOrEmpty(area))
79
+            {
80
+                conModels.Add(new ConditionalModel() { FieldName = "F_Area", ConditionalType = ConditionalType.Like, FieldValue = area });
81
+            }
82
+            if (!string.IsNullOrEmpty(town))
83
+            {
84
+                conModels.Add(new ConditionalModel() { FieldName = "F_Town", ConditionalType = ConditionalType.Like, FieldValue = town });
85
+            }
86
+            if (!string.IsNullOrEmpty(address))
87
+            {
88
+                conModels.Add(new ConditionalModel() { FieldName = "F_Address", ConditionalType = ConditionalType.Like, FieldValue = address });
89
+            }
90
+            if (!string.IsNullOrEmpty(birthday))
91
+            {
92
+                conModels.Add(new ConditionalModel() { FieldName = "F_Birthday", ConditionalType = ConditionalType.Like, FieldValue = birthday });
93
+            }
94
+            if (!string.IsNullOrEmpty(recommender))
95
+            {
96
+                conModels.Add(new ConditionalModel() { FieldName = "F_Recommender", ConditionalType = ConditionalType.Like, FieldValue = recommender });
97
+            }
98
+            if (!string.IsNullOrEmpty(saleperson))
99
+            {
100
+                conModels.Add(new ConditionalModel() { FieldName = "F_Saleperson", ConditionalType = ConditionalType.Like, FieldValue = saleperson });
101
+            }
102
+            if (!string.IsNullOrEmpty(contact))
103
+            {
104
+                conModels.Add(new ConditionalModel() { FieldName = "F_Contact", ConditionalType = ConditionalType.Like, FieldValue = contact });
105
+            }
61 106
             #endregion
62 107
             int recordCount = 0;
63 108
             var list = await _cus_vip_infoRepository.GetListByPage(conModels, new MyPageModel() { PageIndex = pageindex, PageSize = pagesize, PageCount = recordCount });
@@ -76,7 +121,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
76 121
         /// </summary>
77 122
         /// <param name="id">id</param>
78 123
         /// <returns></returns>
79
-        [HttpGet("getdetailes")]
124
+        [HttpGet("getdetails")]
80 125
         public async Task<IActionResult> GetDetailsAsync(int id)
81 126
         {
82 127
             if (id <= 0)

+ 1 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VipLabelInfoController.cs

@@ -79,7 +79,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
79 79
         /// </summary>
80 80
         /// <param name="id">id</param>
81 81
         /// <returns></returns>
82
-        [HttpGet("getdetailes")]
82
+        [HttpGet("getdetails")]
83 83
         public async Task<IActionResult> GetDetailsAsync(int id)
84 84
         {
85 85
             if (id <= 0)