|
|
@@ -23,6 +23,8 @@ import work.baiyun.chronicdiseaseapp.util.SecurityUtils;
|
|
|
import java.lang.reflect.Field;
|
|
|
import java.lang.reflect.Method;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -158,7 +160,7 @@ public class HealthDataCriticalAlertAspect {
|
|
|
Map<String, Object> anomalyPayload = new HashMap<>();
|
|
|
anomalyPayload.put("patientId", userId);
|
|
|
anomalyPayload.put("anomalies", warnings);
|
|
|
- anomalyPayload.put("detectedAt", java.time.LocalDateTime.now().toString());
|
|
|
+ anomalyPayload.put("detectedAt", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
|
|
|
|
|
|
// prepare base request
|
|
|
SystemAnomalySendRequest baseReq = new SystemAnomalySendRequest();
|