|
@@ -19,7 +19,6 @@
|
|
|
|
|
|
package com.dragon.tj.portal.component.log.aspect;
|
|
package com.dragon.tj.portal.component.log.aspect;
|
|
|
|
|
|
-import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.dragon.tj.portal.auth.model.LoginUser;
|
|
import com.dragon.tj.portal.auth.model.LoginUser;
|
|
import com.dragon.tj.portal.auth.service.TokenService;
|
|
import com.dragon.tj.portal.auth.service.TokenService;
|
|
@@ -37,21 +36,15 @@ import org.aspectj.lang.reflect.MethodSignature;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.ApplicationEventPublisher;
|
|
import org.springframework.context.ApplicationEventPublisher;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
-import org.springframework.util.StreamUtils;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
-import java.io.BufferedReader;
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
-import java.io.InputStreamReader;
|
|
|
|
import java.lang.annotation.Annotation;
|
|
import java.lang.annotation.Annotation;
|
|
-import java.nio.charset.StandardCharsets;
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
-import java.util.SortedMap;
|
|
|
|
-import java.util.TreeMap;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author huey China.
|
|
* @author huey China.
|
|
@@ -92,6 +85,8 @@ public class SysLogAspect {
|
|
}
|
|
}
|
|
SysLogDTO logDTO = SysLogUtils.getSysLog();
|
|
SysLogDTO logDTO = SysLogUtils.getSysLog();
|
|
logDTO.setTitle(sysLog.value());
|
|
logDTO.setTitle(sysLog.value());
|
|
|
|
+ logDTO.setModuleType(sysLog.module().getCode());
|
|
|
|
+ logDTO.setModuleName(sysLog.module().getDesc());
|
|
logDTO.setCreateBy(createBy);
|
|
logDTO.setCreateBy(createBy);
|
|
logDTO.setCreateUser(createUser);
|
|
logDTO.setCreateUser(createUser);
|
|
logDTO.setParams(this.params(request, point));
|
|
logDTO.setParams(this.params(request, point));
|
|
@@ -138,7 +133,7 @@ public class SysLogAspect {
|
|
Object arg = args[index];
|
|
Object arg = args[index];
|
|
String s = JSON.toJSONString(arg);
|
|
String s = JSON.toJSONString(arg);
|
|
if (Objects.nonNull(s)) {
|
|
if (Objects.nonNull(s)) {
|
|
- params.append("POST-PARAM:"+s);
|
|
|
|
|
|
+ params.append("POST-PARAM:" + s);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|