Browse Source

菜单按钮bug处理

zhengbingbing 5 years ago
parent
commit
e09b148d65

+ 1 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/System/ModuleButtonInfoController.cs

258
             if (string.IsNullOrEmpty(input.code))
258
             if (string.IsNullOrEmpty(input.code))
259
                 return Error("请输入按钮代码");
259
                 return Error("请输入按钮代码");
260
 
260
 
261
-            var entity_ModuleInfoButton = await _sys_modulebuttoninfoRepository.GetSingle(x=>x.F_Id==input.id && x.F_State == (int)EnumDelState.Enabled);
261
+            var entity_ModuleInfoButton = await _sys_modulebuttoninfoRepository.GetSingle(x=>x.F_Id==input.id && x.F_State != (int)EnumDelState.Enabled);
262
             if (entity_ModuleInfoButton != null)
262
             if (entity_ModuleInfoButton != null)
263
             {
263
             {
264
                 entity_ModuleInfoButton.F_MenuId = input.moduleid;
264
                 entity_ModuleInfoButton.F_MenuId = input.moduleid;