|
|
@@ -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
|
|