From 9dbd8ebe81301e2bbd4e0ee8fd7cdf16012bdeec Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Sat, 21 Dec 2024 19:34:32 +0800 Subject: [PATCH] update --- consume/egg_energy_team_assistance_consume.go | 7 ++++++- go.mod | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/consume/egg_energy_team_assistance_consume.go b/consume/egg_energy_team_assistance_consume.go index 3e5faac..8b788f0 100644 --- a/consume/egg_energy_team_assistance_consume.go +++ b/consume/egg_energy_team_assistance_consume.go @@ -76,7 +76,11 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { assistanceDb := implement.NewEggEnergyTeamAssistanceDb(db.Db) now := time.Now() date := now.Format("2006-01-02") - teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOne(msg.Uid, date) + session := db.Db.Where("") + teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOneByParamsBySession(session, map[string]interface{}{ + "key": "sign_id", + "value": msg.SignId, + }) if err != nil { return err } @@ -87,6 +91,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { AssistedTimes: 1, RewardScore: utils2.Float64ToStr(msg.AssistanceValue), Date: date, + SignId: msg.SignId, CreateAt: now.Format("2006-01-02 15:04:05"), UpdateAt: now.Format("2006-01-02 15:04:05"), } diff --git a/go.mod b/go.mod index 3d66fe0..7b90b81 100644 --- a/go.mod +++ b/go.mod @@ -4,11 +4,11 @@ go 1.19 // replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models -//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules +replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241220062624-0d8e6dd68add - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241220073933-42987f91e880 + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221112843-1f1b3d2101e4 + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241221113325-b85d5be48888 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/boombuler/barcode v1.0.1