비즈니스로그 조회 수정 및 쿼리 조정

This commit is contained in:
2025-09-15 16:01:46 +09:00
parent 5a3a5eaf41
commit 3b76682616
3 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -181,7 +181,7 @@ public class BusinessLogService {
.build();
return saveLog(
LogCategory.MESSAGE_QUEUE,
LogCategory.S3,
status,
message,
domain,

View File

@@ -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")
)
)