提交 ce1ed782 编写于 作者: zhouweidong's avatar zhouweidong

调整 get entity=null 处理

上级 39b0fdc7
......@@ -1181,8 +1181,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
Optional<${item.getCodeName()}> result = repository.findById(key);
if(!result.isPresent()) {
throw new BadRequestAlertException("数据不存在", this.getClass().getSimpleName(), key);
<@addAfterLogic deaction/>
return et;
<#--<@addAfterLogic deaction/>-->
}
else{
${item.getCodeName()} et=result.get();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册