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

消息队列切点

上级 9cfebc21
...@@ -78,7 +78,7 @@ public class RocketMQAspect ...@@ -78,7 +78,7 @@ public class RocketMQAspect
<#list dataEntity.getAllPSDEDataSyncs() as dataSync> <#list dataEntity.getAllPSDEDataSyncs() as dataSync>
<#if dataSync.getOutPSSysDataSyncAgent?? && dataSync.getOutPSSysDataSyncAgent()??> <#if dataSync.getOutPSSysDataSyncAgent?? && dataSync.getOutPSSysDataSyncAgent()??>
<#assign producer=dataEntity.codeName+dataSync.codeName> <#assign producer=dataEntity.codeName+dataSync.codeName>
@AfterReturning(value = "${getPointCut(dataSync)}") @AfterReturning(value = "${getPointCut(dataEntity,dataSync)}")
@Async @Async
public void ${srfmethodname(producer)}(JoinPoint point) { public void ${srfmethodname(producer)}(JoinPoint point) {
<#if dataSync.getOutTestPSDEAction?? && dataSync.getOutTestPSDEAction()??> <#if dataSync.getOutTestPSDEAction?? && dataSync.getOutTestPSDEAction()??>
...@@ -155,7 +155,7 @@ public class RocketMQAspect ...@@ -155,7 +155,7 @@ public class RocketMQAspect
</#if> </#if>
<#comment>输出切点</#comment> <#comment>输出切点</#comment>
<#function getPointCut dataSync> <#function getPointCut dataEntity dataSync>
<#comment>数值代码表 1=新建; 2=编辑; 4=删除</#comment> <#comment>数值代码表 1=新建; 2=编辑; 4=删除</#comment>
<#assign createArray = [1,3,5,7]> <#assign createArray = [1,3,5,7]>
<#assign updateArray = [2,3,6,7]> <#assign updateArray = [2,3,6,7]>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册