From 6bc9483b5bf1d72f6365e23ebcd5703a180bbb90 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期一, 30 一月 2023 02:33:42 +0800
Subject: [PATCH] 优化配置
---
java110-service/src/main/java/com/java110/service/smo/impl/CmdServiceSMOImpl.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/java110-service/src/main/java/com/java110/service/smo/impl/CmdServiceSMOImpl.java b/java110-service/src/main/java/com/java110/service/smo/impl/CmdServiceSMOImpl.java
index d360c3c..1053db9 100644
--- a/java110-service/src/main/java/com/java110/service/smo/impl/CmdServiceSMOImpl.java
+++ b/java110-service/src/main/java/com/java110/service/smo/impl/CmdServiceSMOImpl.java
@@ -9,6 +9,7 @@
import com.java110.core.event.cmd.ServiceCmdEventPublishing;
import com.java110.core.factory.DataFlowFactory;
import com.java110.core.smo.ISaveTransactionLogSMO;
+import com.java110.core.trace.Java110TraceLog;
import com.java110.entity.center.DataFlowLinksCost;
import com.java110.service.smo.ICmdServiceSMO;
import com.java110.utils.cache.MappingCache;
@@ -60,6 +61,7 @@
* @throws SMOException
*/
@Override
+ @Java110TraceLog
public ResponseEntity<String> cmd(String reqJson, Map<String, String> headers) throws Exception {
ICmdDataFlowContext cmdDataFlowContext = null;
@@ -92,7 +94,7 @@
* @param cmdDataFlowContext
* @throws BusinessException
*/
- private void invokeBusinessSystem(ICmdDataFlowContext cmdDataFlowContext) throws BusinessException {
+ private void invokeBusinessSystem(ICmdDataFlowContext cmdDataFlowContext) throws Exception {
ServiceCmdEventPublishing.multicastEvent(cmdDataFlowContext);
}
@@ -105,7 +107,7 @@
private void saveLogMessage(String requestJson, String responseJson) {
try {
- if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.KEY_LOG_ON_OFF))) {
+ if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.DOMAIN_SYSTEM_SWITCH,MappingConstant.KEY_LOG_ON_OFF))) {
JSONObject log = new JSONObject();
log.put("request", requestJson);
log.put("response", responseJson);
@@ -123,7 +125,7 @@
*/
private void saveCostTimeLogMessage(DataFlow cmdDataFlowContext) {
try {
- if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.KEY_COST_TIME_ON_OFF))) {
+ if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.DOMAIN_SYSTEM_SWITCH,MappingConstant.KEY_COST_TIME_ON_OFF))) {
List<DataFlowLinksCost> cmdDataFlowContextLinksCosts = cmdDataFlowContext.getLinksCostDates();
JSONObject costDate = new JSONObject();
JSONArray costDates = new JSONArray();
--
Gitblit v1.8.0