|
|
@@ -10,7 +10,6 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.constant.ServerCode;
|
|
|
import com.fdkankan.manage.config.SaTokenConfigure;
|
|
|
-import com.fdkankan.manage.entity.OperLog;
|
|
|
import com.fdkankan.manage.entity.SysUser;
|
|
|
import com.fdkankan.manage.service.ISysUserService;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
@@ -23,7 +22,6 @@ import org.aspectj.lang.annotation.Pointcut;
|
|
|
import org.aspectj.lang.reflect.MethodSignature;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
@@ -42,8 +40,6 @@ public class VisitLogInterceptor {
|
|
|
@Autowired
|
|
|
private RedisUtil redisUtil;
|
|
|
|
|
|
- @Autowired
|
|
|
- private MongoTemplate mongoTemplate;
|
|
|
|
|
|
@Autowired
|
|
|
private ISysUserService userService;
|
|
|
@@ -109,21 +105,6 @@ public class VisitLogInterceptor {
|
|
|
nickName = sysUser.getNickName();
|
|
|
}
|
|
|
}
|
|
|
- //写入mongodb
|
|
|
- OperLog operLog = new OperLog();
|
|
|
- operLog.setUserId(userId);
|
|
|
- operLog.setUserName(userName);
|
|
|
- operLog.setNickName(nickName);
|
|
|
- operLog.setRequestPath(requestPath);
|
|
|
- operLog.setUri(uri);
|
|
|
- operLog.setMethod(method);
|
|
|
- operLog.setParams(params);
|
|
|
- operLog.setIp(clientIP);
|
|
|
- operLog.setBrowser(browser);
|
|
|
- operLog.setCreateTime(Calendar.getInstance().getTime());
|
|
|
- operLog.setResult(msg);
|
|
|
- operLog.setOperationType("manage");
|
|
|
- mongoTemplate.insert(operLog);
|
|
|
|
|
|
return result;
|
|
|
}
|