Преглед изворни кода

添加ID到比较返回接口中

lutong пре 2 месеци
родитељ
комит
f8fe728bf4

+ 3 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreOperationalStatisticsServiceImpl.java

@@ -298,6 +298,9 @@ public class StoreOperationalStatisticsServiceImpl implements StoreOperationalSt
         Integer historyId = saveStatisticsHistory(storeId, currentStartTime, currentEndTime, 
                 previousStartTime, previousEndTime, comparison, null);
 
+        // 将历史记录ID设置到返回对象中
+        comparison.setHistoryId(historyId);
+
         // 异步调用AI接口进行数据分析
         if (historyId != null) {
             try {