|
@@ -1,5 +1,6 @@
|
|
|
package com.gis.cms.zhengyuan;
|
|
|
|
|
|
+import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.gis.cms.entity.po.HotelEntity;
|
|
|
import com.gis.common.base.entity.po.LogEntity;
|
|
@@ -75,6 +76,15 @@ public class ZhengYuanService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public void testLog(){
|
|
|
+ LogService logService = SpringUtil.getBean(LogService.class);
|
|
|
+ traceId = MDC.get("TRACE_ID");
|
|
|
+ executorService.execute(() -> {
|
|
|
+ MDC.put("TRACE_ID", traceId);
|
|
|
+ logService.save(new LogEntity(1L, "1", "11111", null));
|
|
|
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|