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