Commit 82b85ea9 authored by 赵啸非's avatar 赵啸非

修改操作日志过滤

parent 19b65bc5
...@@ -41,8 +41,9 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService { ...@@ -41,8 +41,9 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
public void doHandlerLog(String platformMark, Long userId, String userName, String loginName, String requestUrl, public void doHandlerLog(String platformMark, Long userId, String userName, String loginName, String requestUrl,
String content, String ip, Date logDate) { String content, String ip, Date logDate) {
super.doHandlerLog(platformMark, userId, userName, loginName, requestUrl, content, ip, logDate); super.doHandlerLog(platformMark, userId, userName, loginName, requestUrl, content, ip, logDate);
//操作日志 只记录用户侧
if(userId==null) return;
operLogService.insertOperLog(ip, requestUrl, userId, userName, loginName, content); operLogService.insertOperLog(ip, requestUrl, userId, userName, loginName, content);
OperateLogPdu operateLogPdu = new OperateLogPdu(); OperateLogPdu operateLogPdu = new OperateLogPdu();
operateLogPdu.initAttrValue(); operateLogPdu.initAttrValue();
operateLogPdu.setIp(ip); operateLogPdu.setIp(ip);
......
...@@ -14,16 +14,17 @@ Content-Type: application/json ...@@ -14,16 +14,17 @@ Content-Type: application/json
###节假日更新与保存 ###节假日更新与保存
POST {{baseUrl}}/holiday/save POST {{baseUrl}}/holiday/save
Authorization: {{authToken}}
Content-Type: application/json Content-Type: application/json
{ {
"siteId":3374, "siteId":1,
"name":"rlubyj", "name":"rlubyj",
"summary":"70cuql", "summary":"70cuql",
"year":2788, "year":2023,
"startTime":"2022-01-20", "startTime":"2022-01-20",
"endTime":"2022-01-20", "endTime":"2022-01-20",
"workorholiday":9809 "workorholiday":1
} }
> {% > {%
......
...@@ -13,14 +13,6 @@ POST {{baseUrl}}/workman/list ...@@ -13,14 +13,6 @@ POST {{baseUrl}}/workman/list
Content-Type: application/json Content-Type: application/json
{ {
"deptId":6389 ,
"deptName":"ne8rqn" ,
"windowId":4325 ,
"windowName":"xrj91w" ,
"siteId":6949 ,
"siteName":"ifug3n" ,
"name":"fujlcs" ,
"number":"kpg7fk" ,
"page":1, "page":1,
"size":10 "size":10
} }
......
...@@ -25,12 +25,10 @@ public class MessageProducer implements IMessageProduceService { ...@@ -25,12 +25,10 @@ public class MessageProducer implements IMessageProduceService {
private RabbitTemplate rabbitTemplate; private RabbitTemplate rabbitTemplate;
public void syncAccessSend(AccessLogPdu accessLogPdu) { public void syncAccessSend(AccessLogPdu accessLogPdu) {
// new Message()
//new Message(JSON.toJSONString(accessLogPdu).getBytes(StandardCharsets.UTF_8)) //new Message(JSON.toJSONString(accessLogPdu).getBytes(StandardCharsets.UTF_8))
rabbitTemplate.send(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE,new Message(JSON.toJSONString(accessLogPdu).getBytes(StandardCharsets.UTF_8))); //rabbitTemplate.send(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE,new Message(JSON.toJSONString(accessLogPdu).getBytes(StandardCharsets.UTF_8)));
//rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, JSON.toJSONString(accessLogPdu)); rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, JSON.toJSONString(accessLogPdu));
//rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, accessLogPdu); //rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, accessLogPdu);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment