mirror of
https://github.com/thousmile/molly-multi-tenant.git
synced 2025-12-30 04:32:26 +00:00
修改 保存操作日志
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.xaaef.molly.monitor.api.impl;
|
||||
|
||||
import com.xaaef.molly.common.util.BatchQueueUtils;
|
||||
import com.xaaef.molly.common.util.JsonUtils;
|
||||
import com.xaaef.molly.internal.api.ApiLogStorageService;
|
||||
import com.xaaef.molly.internal.dto.LoginLogDTO;
|
||||
import com.xaaef.molly.internal.dto.OperLogDTO;
|
||||
@@ -114,6 +115,8 @@ public class ApiLogStorageServiceImpl implements ApiLogStorageService {
|
||||
// queueHandler2.add(source);
|
||||
var target = new LmsOperLog();
|
||||
BeanUtils.copyProperties(source, target);
|
||||
target.setMethodArgs(JsonUtils.toJson(source.getMethodArgs()));
|
||||
target.setResponseResult(JsonUtils.toJson(source.getResponseResult()));
|
||||
operLogService.save(target);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
package com.xaaef.molly;
|
||||
|
||||
import cn.hutool.core.net.Ipv4Util;
|
||||
import cn.xuyanwu.spring.file.storage.EnableFileStorage;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.web.ServerProperties;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
@@ -31,8 +29,6 @@ public class MollyApplication {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
System.out.println();
|
||||
SpringApplication.run(MollyApplication.class, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.xaaef.molly.redis;
|
||||
|
||||
import com.xaaef.molly.common.util.JsonUtils;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.autoconfigure.cache.CacheProperties;
|
||||
|
||||
Reference in New Issue
Block a user