Commit 75358593 authored by litengwei's avatar litengwei

任务 13908 13912 13910 13925

parent 912a6169
...@@ -50,6 +50,8 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -50,6 +50,8 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springframework.transaction.support.TransactionSynchronizationManager;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.typroject.tyboot.core.foundation.context.RequestContext; import org.typroject.tyboot.core.foundation.context.RequestContext;
...@@ -341,8 +343,13 @@ public class ContingencyAction implements CustomerAction { ...@@ -341,8 +343,13 @@ public class ContingencyAction implements CustomerAction {
e.printStackTrace(); e.printStackTrace();
} }
result.add(tempmap1); result.add(tempmap1);
sendcmd("recordarea", paramObj, result); TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronization() {
sendweb("recordarea", paramObj, result); @Override
public void afterCommit() {
sendcmd("recordarea", paramObj, result);
sendweb("recordarea", paramObj, result);
}
});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment