Parcourir la Source

修改会员添加

mengjie il y a 5 ans
Parent
commit
81bd7de3f8

+ 5 - 3
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/CusMsgController.cs

@@ -102,7 +102,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
102 102
             }
103 103
             if (!string.IsNullOrEmpty(tousercode))
104 104
             {
105
-                conModels.Add(new ConditionalModel() { FieldName = "F_ToPerson", ConditionalType = ConditionalType.Like  , FieldValue = tousercode });
105
+                conModels.Add(new ConditionalModel() { FieldName = "F_ToPerson", ConditionalType = ConditionalType.Like, FieldValue = tousercode });
106 106
             }
107 107
             if (!string.IsNullOrEmpty(fromusercode))
108 108
             {
@@ -155,16 +155,18 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
155 155
         {
156 156
             if (id <= 0)
157 157
                 return Error("参数错误");
158
+            else
159
+            {
158 160
                 var ml = await _cus_msgRepository.GetSingle(x => x.F_ID == id);
159 161
                 ml.F_State = state;
160
-                
162
+
161 163
                 if (_cus_msgRepository.Update(ml).Result)
162 164
                 {
163 165
                     return Success("状态更新成功");
164 166
                 }
165 167
                 else
166 168
                     return Error("状态更新失败");
167
-            
169
+            }
168 170
         }
169 171
     }
170 172
 }

+ 10 - 0
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VIPInfoController.cs

@@ -188,6 +188,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
188 188
             model.F_Area = input.area;
189 189
             model.F_Town = input.town;
190 190
             model.F_Postcode = input.postcode;
191
+            model.F_Province1 = input.province1;
192
+            model.F_Area1 = input.area1;
193
+            model.F_Town1 = input.town1;
194
+            model.F_Postcode1 = input.postcode1;
195
+            model.F_City1 = input.city1;
191 196
             if (input.shoesize != null && input.shoesize.ToString() != "")
192 197
             {
193 198
                 model.F_ShoeSize = input.shoesize;
@@ -263,6 +268,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
263 268
             model.F_Area = input.area;
264 269
             model.F_Town = input.town;
265 270
             model.F_Postcode = input.postcode;
271
+            model.F_Province1 = input.province1;
272
+            model.F_Area1 = input.area1;
273
+            model.F_Town1 = input.town1;
274
+            model.F_Postcode1 = input.postcode1;
275
+            model.F_City1 = input.city1;
266 276
             if (input.shoesize != null && input.shoesize.ToString() != "")
267 277
             {
268 278
                 model.F_ShoeSize = input.shoesize;

+ 18 - 0
代码/TVShoppingCallCenter_ZLJ/Models/Inputs/VIPInfoInput.cs

@@ -79,5 +79,23 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
79 79
         public string type { get; set; }
80 80
 
81 81
         public DateTime regtime { get; set; }
82
+
83
+        /// <summary>
84
+        /// 省
85
+        /// </summary>				
86
+        public string province1 { get; set; } = "";
87
+        /// <summary>
88
+        /// 县、区
89
+        /// </summary>				
90
+        public string area1 { get; set; } = "";
91
+        /// <summary>
92
+        /// 乡镇
93
+        /// </summary>				
94
+        public string town1 { get; set; } = "";
95
+        /// <summary>
96
+        /// 邮编
97
+        /// </summary>				
98
+        public string postcode1 { get; set; } = "";
99
+        public string city1 { get; set; } = "";
82 100
     }
83 101
 }