|
@@ -83,7 +83,7 @@ public class SysConfigController extends BaseController
|
|
83
|
@PostMapping
|
83
|
@PostMapping
|
|
84
|
public AjaxResult add(@Validated @RequestBody SysConfig config)
|
84
|
public AjaxResult add(@Validated @RequestBody SysConfig config)
|
|
85
|
{
|
85
|
{
|
|
86
|
- if (configService.checkConfigKeyUnique(config))
|
|
|
|
|
|
86
|
+ if (!configService.checkConfigKeyUnique(config))
|
|
87
|
{
|
87
|
{
|
|
88
|
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
|
88
|
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
|
|
89
|
}
|
89
|
}
|