commit
20dd6d37ea
|
@ -83,7 +83,7 @@ public class SysConfigController extends BaseController
|
|||
@PostMapping
|
||||
public AjaxResult add(@Validated @RequestBody SysConfig config)
|
||||
{
|
||||
if (configService.checkConfigKeyUnique(config))
|
||||
if (!configService.checkConfigKeyUnique(config))
|
||||
{
|
||||
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue