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

附加行为补充异常处理

上级 1b3618ba
...@@ -2307,7 +2307,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2307,7 +2307,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()> <#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et); ${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);
<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''> <#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''>
<@addActionLogic actionlogic/> <@addActionLogic deaction actionlogic/>
</#if> </#if>
</#if> </#if>
</#list> </#list>
...@@ -2315,12 +2315,17 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2315,12 +2315,17 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
</#macro> </#macro>
<#comment>附加实体行为</#comment> <#comment>附加实体行为</#comment>
<#macro addActionLogic actionlogic> <#macro addActionLogic deaction actionlogic>
<#assign actionLogicDE=actionlogic.getDstPSDE()> <#assign actionLogicDE=actionlogic.getDstPSDE()>
<#assign actionLogicDEAction=actionlogic.getDstPSDEAction()> <#assign actionLogicDEAction=actionlogic.getDstPSDEAction()>
<#assign logicActionType=actionLogicDEAction.getActionType()> <#assign sourceActionType=deaction.getActionType()>
<#assign logicCodeName=actionLogicDEAction.getCodeName()?lower_case> <#assign sourceCodeName=deaction.getCodeName()?lower_case>
<#if (logicActionType=='USERCUSTOM')|| logicActionType=='DELOGIC'|| logicCodeName == "create" || logicCodeName == "update" || logicCodeName == "save" || logicCodeName == "getdraft" || logicCodeName == "checkkey"> <#assign targetActionType=actionLogicDEAction.getActionType()>
<#assign targetCodeName=actionLogicDEAction.getCodeName()?lower_case>
<#if ((sourceActionType=='USERCUSTOM')|| sourceActionType=='DELOGIC'|| sourceCodeName == "create" || sourceCodeName == "update" ||
sourceCodeName == "save" || sourceCodeName == "getdraft" || sourceCodeName == "checkkey") &&
((targetActionType=='USERCUSTOM')|| targetActionType=='DELOGIC'|| targetCodeName == "create" || targetCodeName == "update" ||
targetCodeName == "save" || targetCodeName == "getdraft" || targetCodeName == "checkkey")>
<#if actionlogic.isIgnoreException()?? && actionlogic.isIgnoreException()==true> <#if actionlogic.isIgnoreException()?? && actionlogic.isIgnoreException()==true>
try{ try{
<@actionLogic_entity actionlogic/> <@actionLogic_entity actionlogic/>
...@@ -2331,7 +2336,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2331,7 +2336,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#else> <#else>
<@actionLogic_entity actionlogic/> <@actionLogic_entity actionlogic/>
</#if> </#if>
<#elseif logicCodeName == "remove"> <#elseif sourceCodeName=='remove' && targetCodeName == "remove">
<#if actionlogic.isIgnoreException()?? && actionlogic.isIgnoreException()==true> <#if actionlogic.isIgnoreException()?? && actionlogic.isIgnoreException()==true>
try{ try{
<@actionLogic_remove actionlogic/> <@actionLogic_remove actionlogic/>
...@@ -2369,7 +2374,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2369,7 +2374,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()> <#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et); ${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);
<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''> <#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!=''>
<@addActionLogic actionlogic/> <@addActionLogic deaction actionlogic/>
</#if> </#if>
</#if> </#if>
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册