瀏覽代碼

禅道bug调整提交

zhengbingbing 5 年之前
父節點
當前提交
cf08cc949c

+ 3 - 3
代码/TVShoppingCallCenter_ZLJ/Controllers/System/DictionaryController.cs

@@ -147,7 +147,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
147 147
         public async Task<IActionResult> AddAsync(DictionaryInput input)
148 148
         {
149 149
             if (string.IsNullOrEmpty(input.code))
150
-                return Error("字典标不能为空");
150
+                return Error("字典标不能为空");
151 151
             if (string.IsNullOrEmpty(input.name))
152 152
                 return Error("字典名称不能为空");
153 153
             if (input.isleaf)
@@ -160,7 +160,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
160 160
             {
161 161
                 long n = await _sys_dictionaryRepository.GetCount(x => x.F_State == (int)EnumDelState.Enabled && x.F_ValueCode == input.code && x.F_IsLeaf == input.isleaf);
162 162
                 if (n > 0)
163
-                    return Error("字典标已存在");
163
+                    return Error("字典标已存在");
164 164
             }
165 165
             var model = new T_Sys_DictionaryValue();
166 166
             model.F_ValueCode = input.code;
@@ -192,7 +192,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
192 192
         public async Task<IActionResult> UpdateAsync(DictionaryInput input)
193 193
         {
194 194
             if (string.IsNullOrEmpty(input.code))
195
-                return Error("字典标不能为空");
195
+                return Error("字典标不能为空");
196 196
             if (string.IsNullOrEmpty(input.name))
197 197
                 return Error("字典名称不能为空");
198 198
             if (input.id <= 0)

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

@@ -31,7 +31,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
31 31
             var list_ModuleInfoButton= new List<T_Sys_ModuleButtonInfo>();
32 32
             Expression<Func<T_Sys_ModuleButtonInfo, bool>> eq = a => a.F_State != (int)EnumDelState.Delete;
33 33
             if (menuid>0)
34
-                eq = eq.Or(b => b.F_MenuId == menuid);
34
+                eq = eq.And(b => b.F_MenuId == menuid);
35 35
 
36 36
             list_ModuleInfoButton = await _sys_modulebuttoninfoRepository.GetListALL(eq, o => o.F_Sort, SqlSugar.OrderByType.Asc);
37 37
 
@@ -69,7 +69,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
69 69
 
70 70
             Expression<Func<T_Sys_ModuleButtonInfo, bool>> eq = a => a.F_State != (int)EnumDelState.Delete;
71 71
             if (moduleId > 0)
72
-                eq = eq.Or(b => b.F_MenuId == moduleId);
72
+                eq = eq.And(b => b.F_MenuId == moduleId);
73 73
 
74 74
             list_ModuleInfoButton = await _sys_modulebuttoninfoRepository.GetListALL(eq, o => o.F_Sort, SqlSugar.OrderByType.Asc);
75 75