비즈니스로그 조회 수정 및 쿼리 조정
This commit is contained in:
@@ -3,6 +3,7 @@ package com.caliverse.admin.mongodb.domain;
|
||||
import com.caliverse.admin.domain.entity.log.LogAction;
|
||||
import com.caliverse.admin.domain.entity.log.LogCategory;
|
||||
import com.caliverse.admin.domain.entity.log.LogStatus;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -42,6 +43,7 @@ public class BusinessLog {
|
||||
|
||||
private String procId;
|
||||
|
||||
@JsonIgnoreProperties(value = {"messageContent"}, allowSetters = true)
|
||||
private Object domain;
|
||||
|
||||
@CompoundIndex(def = "{'category': 1, 'action': 1, 'logTime': -1}")
|
||||
|
||||
@@ -181,7 +181,7 @@ public class BusinessLogService {
|
||||
.build();
|
||||
|
||||
return saveLog(
|
||||
LogCategory.MESSAGE_QUEUE,
|
||||
LogCategory.S3,
|
||||
status,
|
||||
message,
|
||||
domain,
|
||||
|
||||
@@ -45,7 +45,7 @@ public class HistoryLogService {
|
||||
new Document("$addFields",
|
||||
new Document("logTimeString",
|
||||
new Document("$dateToString",
|
||||
new Document("format", "%Y-%m-%d")
|
||||
new Document("format", "%Y-%m-%dT%H:%M:%S")
|
||||
.append("date", "$logTime")
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user