zhengbingbing лет назад: 5
Родитель
Сommit
06765463b2

+ 2 - 2
代码/System.Model/T_Cus_VipLabelInfo.cs

@@ -18,11 +18,11 @@ namespace System.Model
18 18
         /// <summary>
19 19
         /// 类型
20 20
         /// </summary>				
21
-        public string F_Type { get; set; }
21
+        //public string F_Type { get; set; }
22 22
         /// <summary>
23 23
         /// 分类
24 24
         /// </summary>				
25
-        public string F_Kind { get; set; }
25
+        //public string F_Kind { get; set; }
26 26
         /// <summary>
27 27
         /// 备注
28 28
         /// </summary>				

+ 7 - 9
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VipLabelInfoController.cs

@@ -107,16 +107,16 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
107 107
             
108 108
             var model = new T_Cus_VipLabelInfo();
109 109
             model.F_Name = input.name;
110
-            model.F_Type = input.type;
111
-            model.F_Kind = input.kind;
110
+            //model.F_Type = input.type;
111
+            //model.F_Kind = input.kind;
112 112
             model.F_LabelColor = input.labelcolor ;
113 113
             model.F_FontColor = input.fontcolor ;
114
-            model.F_State = input.state;
114
+            model.F_State = (int)EnumDelState.Enabled;
115 115
             model.F_Note = input.note;
116 116
             model.F_CreateBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value;
117 117
             model.F_CreateOn = DateTime.Now;
118 118
 
119
-            if (await _cus_vip_labelinfoRepository.GetCount(x =>  x.F_Name == input.name&&x.F_State<2 ) > 0)
119
+            if (await _cus_vip_labelinfoRepository.GetCount(x =>  x.F_Name == input.name&&x.F_State== (int)EnumDelState.Enabled) > 0)
120 120
             {
121 121
                 return Error("添加失败,存在相同标签信息");
122 122
             }
@@ -144,13 +144,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
144 144
             var model = await _cus_vip_labelinfoRepository.GetSingle(x => x.F_ID == input.id);
145 145
             if (model == null)
146 146
                 return Error("操作失败");
147
-            //model.F_VIPCode = input.vipcode;//会员卡号
148 147
             model.F_Name = input.name;
149
-            model.F_Type = input.type;
150
-            model.F_Kind = input.kind;
148
+            //model.F_Type = input.type;
149
+            //model.F_Kind = input.kind;
151 150
             model.F_LabelColor = input.labelcolor;
152 151
             model.F_FontColor = input.fontcolor;
153
-            model.F_State = input.state;
154 152
             model.F_Note = input.note;
155 153
             bool b = await _cus_vip_labelinfoRepository.Update(model);
156 154
             if (b)
@@ -200,7 +198,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
200 198
 
201 199
             #region  拼接条件
202 200
 
203
-            Expression<Func<T_Cus_VipLabelInfo, bool>> eq = a => a.F_State==1;          
201
+            Expression<Func<T_Cus_VipLabelInfo, bool>> eq = a => a.F_State== (int)EnumDelState.Enabled;          
204 202
             #endregion
205 203
             List<T_Cus_VipLabelInfo> list = await _cus_vip_labelinfoRepository.GetListALL(eq);
206 204
 

+ 3 - 3
代码/TVShoppingCallCenter_ZLJ/Models/Inputs/VipLabelInfoInput.cs

@@ -18,11 +18,11 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
18 18
         /// <summary>
19 19
         /// 类型
20 20
         /// </summary>				
21
-        public string type { get; set; }
21
+        //public string type { get; set; }
22 22
         /// <summary>
23 23
         /// 分类
24 24
         /// </summary>				
25
-        public string kind { get; set; }
25
+        //public string kind { get; set; }
26 26
         /// <summary>
27 27
         /// 备注
28 28
         /// </summary>				
@@ -38,6 +38,6 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
38 38
         /// <summary>
39 39
 		/// 状态
40 40
         /// </summary>				
41
-        public int state { get; set; }
41
+        //public int state { get; set; }
42 42
     }
43 43
 }