代码生成:增加 tree 示例

This commit is contained in:
YunaiV
2023-11-16 20:40:13 +08:00
parent 01a55b93c2
commit 5b9879ca8d
14 changed files with 459 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
if (id == null) {
throw exception(${simpleClassName_underlineCase.toUpperCase()}_${treeNameColumn_javaField_underlineCase.toUpperCase()}_DUPLICATE);
}
if (ObjectUtil.notEqual(${classNameVar}.getId(), id)) {
if (!Objects.equals(${classNameVar}.getId(), id)) {
throw exception(${simpleClassName_underlineCase.toUpperCase()}_${treeNameColumn_javaField_underlineCase.toUpperCase()}_DUPLICATE);
}
}