Commit 981868304b1d34ae057bdaa4b6950ba3162ce251
1 parent
5d3d1c01
Exists in
master
1.fix a bug about repository invoke
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/main/resources/template/bazhuayun/ServiceImplTemplate.ftl
@@ -32,7 +32,7 @@ public class ${serviceImplClassSimpleName} implements ${serviceClassSimpleName} | @@ -32,7 +32,7 @@ public class ${serviceImplClassSimpleName} implements ${serviceClassSimpleName} | ||
32 | @Override | 32 | @Override |
33 | public ResultInfo getOneV1(Integer id) { | 33 | public ResultInfo getOneV1(Integer id) { |
34 | try { | 34 | try { |
35 | - return UtilResultInfo.getSuccess("查询成功", this.${repositoryClassFieldName}.findEntityById(id)); | 35 | + return UtilResultInfo.getSuccess("查询成功", this.${repositoryClassFieldName}.findEntityByID(id)); |
36 | } catch (Exception e) { | 36 | } catch (Exception e) { |
37 | UtilLog.errorForException(e, this.getClass()); | 37 | UtilLog.errorForException(e, this.getClass()); |
38 | return UtilResultInfo.getFailure(e.getMessage()); | 38 | return UtilResultInfo.getFailure(e.getMessage()); |
@@ -52,7 +52,7 @@ public class ${serviceImplClassSimpleName} implements ${serviceClassSimpleName} | @@ -52,7 +52,7 @@ public class ${serviceImplClassSimpleName} implements ${serviceClassSimpleName} | ||
52 | @Override | 52 | @Override |
53 | public ResultInfo getOneManage(Integer id) { | 53 | public ResultInfo getOneManage(Integer id) { |
54 | try { | 54 | try { |
55 | - return UtilResultInfo.getSuccess("查询成功", this.${repositoryClassFieldName}.findEntityById(id)); | 55 | + return UtilResultInfo.getSuccess("查询成功", this.${repositoryClassFieldName}.findEntityByID(id)); |
56 | } catch (Exception e) { | 56 | } catch (Exception e) { |
57 | return UtilResultInfo.getFailure(e.getMessage()); | 57 | return UtilResultInfo.getFailure(e.getMessage()); |
58 | } | 58 | } |