From b3c807f0ac8dd943d6d9c3f4997b57116cef5fe6 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Thu, 15 Jan 2026 18:38:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/do/macro.go | 1 + internal/biz/group_config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/biz/do/macro.go b/internal/biz/do/macro.go index 2d7e775..9d68eda 100644 --- a/internal/biz/do/macro.go +++ b/internal/biz/do/macro.go @@ -61,6 +61,7 @@ func (m *Macro) NegativeProfitClear(ctx context.Context, content string, groupCo cond := builder.NewCond() cond = cond.And(builder.Eq{"cache_index": bbxt.IndexLossSumDetail}) cond = cond.And(builder.Eq{"cache_key": dayDate}) + cond = cond.And(builder.Eq{"status": 1}) err = m.reportDailyCacheImpl.UpdateByCond(&cond, &model.AiReportDailyCache{ Status: 2, }) diff --git a/internal/biz/group_config.go b/internal/biz/group_config.go index b68a29d..4b25bb3 100644 --- a/internal/biz/group_config.go +++ b/internal/biz/group_config.go @@ -421,6 +421,7 @@ func (g *GroupConfigBiz) GetReportCache(ctx context.Context, day time.Time, tota cond := builder.NewCond() cond = cond.And(builder.Eq{"cache_index": bbxt.IndexLossSumDetail}) cond = cond.And(builder.Eq{"cache_key": dayDate}) + cond = cond.And(builder.Eq{"status": 1}) var cache model.AiReportDailyCache err := g.reportDailyCacheImpl.GetOneBySearchToStrut(&cond, &cache) if err != nil {