|
...
|
...
|
@@ -119,7 +119,7 @@ public class AiragButtonController extends JeecgController<AiragButton, IAiragBu |
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
|
public Result<String> edit(@RequestBody AiragButton airagButton) {
|
|
|
|
// 唯一性校验
|
|
|
|
if (!airagButtonService.isCodeUnique(airagButton.getCode(), null)) {
|
|
|
|
if (!airagButtonService.isCodeUnique(airagButton.getCode(), airagButton.getId())) {
|
|
|
|
return Result.error("按钮编码已存在,请重新输入!");
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|