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

补充事务开关

上级 9dbc1b0c
...@@ -2601,10 +2601,12 @@ ${deaction.getRender().code} ...@@ -2601,10 +2601,12 @@ ${deaction.getRender().code}
<#comment>事务注解</#comment> <#comment>事务注解</#comment>
<#macro transactionalAnno deaction> <#macro transactionalAnno deaction>
<#if deaction.getUserTag?? && deaction.getUserTag()?? && deaction.getUserTag()='GlobalTransactional'> <#if deaction.getTransactionMode?? && deaction.getTransactionMode()??>
<#if deaction.getTransactionMode()=='GLOBAL'>
@GlobalTransactional @GlobalTransactional
<#else> <#elseif deaction.getTransactionMode()=='DEFAULT'>
@Transactional @Transactional
</#if>
</#if> </#if>
</#macro> </#macro>
......
...@@ -175,10 +175,12 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl { ...@@ -175,10 +175,12 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
<#comment>事务注解</#comment> <#comment>事务注解</#comment>
<#macro transactionalAnno deaction> <#macro transactionalAnno deaction>
<#if deaction.getUserTag?? && deaction.getUserTag()?? && deaction.getUserTag()='GlobalTransactional'> <#if deaction.getTransactionMode?? && deaction.getTransactionMode()??>
<#if deaction.getTransactionMode()=='GLOBAL'>
@GlobalTransactional @GlobalTransactional
<#else> <#elseif deaction.getTransactionMode()=='DEFAULT'>
@Transactional @Transactional
</#if>
</#if> </#if>
</#macro> </#macro>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册