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

save改为对象返回

上级 83e96335
......@@ -70,8 +70,8 @@ public class ${item.codeName}Fallback implements ${item.codeName}FeignClient {
}
<#elseif apiMethod.getCodeName()?lower_case == 'save'>
<#--@RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}")-->
public Boolean saveEntity(${refDE.codeName} ${refDE.codeName?lower_case}) {
return false;
public ${refDE.codeName} saveEntity(${refDE.codeName} ${refDE.codeName?lower_case}) {
return null;
}
public Boolean save(${refDE.codeName} ${refDE.codeName?lower_case}) {
......
......@@ -67,9 +67,9 @@ public interface ${item.codeName}FeignClient {
<#elseif apiMethod.getCodeName()?lower_case == 'save'>
@RequestMapping(method = RequestMethod.<#if apiMethod.getRequestMethod()??>${apiMethod.getRequestMethod()}<#else>POST</#if>, value = "${fullpath}/save")
Boolean 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}) { 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")
Boolean saveBatch(@RequestBody List<${refDE.codeName}> ${srfpluralize(refDE.getCodeName()?lower_case)});
......
......@@ -1744,7 +1744,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<@addBoforeLogic deaction/>
${item.getCodeName()} rt = ${subSysServiceApiDECodeName?uncap_first}FeignClient.saveEntity(et);
if(rt == null)
return false;
return false;
<#comment>1N关系中,在父实体中创建子实体的List集合</#comment>
<#if de.getMajorPSDERs?? && de.getMajorPSDERs()??>
<#list de.getMajorPSDERs() as MajorPSDER>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册