Browse Source

修改会员添加

mengjie 5 years ago
parent
commit
81bd7de3f8

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

102
             }
102
             }
103
             if (!string.IsNullOrEmpty(tousercode))
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
             if (!string.IsNullOrEmpty(fromusercode))
107
             if (!string.IsNullOrEmpty(fromusercode))
108
             {
108
             {
155
         {
155
         {
156
             if (id <= 0)
156
             if (id <= 0)
157
                 return Error("参数错误");
157
                 return Error("参数错误");
158
+            else
159
+            {
158
                 var ml = await _cus_msgRepository.GetSingle(x => x.F_ID == id);
160
                 var ml = await _cus_msgRepository.GetSingle(x => x.F_ID == id);
159
                 ml.F_State = state;
161
                 ml.F_State = state;
160
-                
162
+
161
                 if (_cus_msgRepository.Update(ml).Result)
163
                 if (_cus_msgRepository.Update(ml).Result)
162
                 {
164
                 {
163
                     return Success("状态更新成功");
165
                     return Success("状态更新成功");
164
                 }
166
                 }
165
                 else
167
                 else
166
                     return Error("状态更新失败");
168
                     return Error("状态更新失败");
167
-            
169
+            }
168
         }
170
         }
169
     }
171
     }
170
 }
172
 }

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

188
             model.F_Area = input.area;
188
             model.F_Area = input.area;
189
             model.F_Town = input.town;
189
             model.F_Town = input.town;
190
             model.F_Postcode = input.postcode;
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
             if (input.shoesize != null && input.shoesize.ToString() != "")
196
             if (input.shoesize != null && input.shoesize.ToString() != "")
192
             {
197
             {
193
                 model.F_ShoeSize = input.shoesize;
198
                 model.F_ShoeSize = input.shoesize;
263
             model.F_Area = input.area;
268
             model.F_Area = input.area;
264
             model.F_Town = input.town;
269
             model.F_Town = input.town;
265
             model.F_Postcode = input.postcode;
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
             if (input.shoesize != null && input.shoesize.ToString() != "")
276
             if (input.shoesize != null && input.shoesize.ToString() != "")
267
             {
277
             {
268
                 model.F_ShoeSize = input.shoesize;
278
                 model.F_ShoeSize = input.shoesize;

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

79
         public string type { get; set; }
79
         public string type { get; set; }
80
 
80
 
81
         public DateTime regtime { get; set; }
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
 }