修改 保存操作日志

This commit is contained in:
Wang Chen Chen
2023-03-27 09:30:24 +08:00
parent 98a1471a59
commit 117286a889
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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;