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

save改为对象返回

上级 8569aaaf
...@@ -69,7 +69,7 @@ public interface ${item.codeName}FeignClient { ...@@ -69,7 +69,7 @@ public interface ${item.codeName}FeignClient {
@RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}/save") @RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}/save")
${refDE.codeName} saveEntity(@RequestBody ${refDE.codeName} ${refDE.codeName?lower_case}); ${refDE.codeName} saveEntity(@RequestBody ${refDE.codeName} ${refDE.codeName?lower_case});
default Boolean save(@RequestBody ${refDE.codeName} ${refDE.codeName?lower_case}) { return saveEntity(${refDE.codeName?lower_case})!=null; }; default Boolean save(@RequestBody ${refDE.codeName} ${refDE.codeName?lower_case}) { return saveEntity(${refDE.codeName?lower_case})!=null; }
@RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}/savebatch") @RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}/savebatch")
Boolean saveBatch(@RequestBody List<${refDE.codeName}> ${srfpluralize(refDE.getCodeName()?lower_case)}); Boolean saveBatch(@RequestBody List<${refDE.codeName}> ${srfpluralize(refDE.getCodeName()?lower_case)});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册