@@ -76,7 +76,11 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { | |||||
assistanceDb := implement.NewEggEnergyTeamAssistanceDb(db.Db) | assistanceDb := implement.NewEggEnergyTeamAssistanceDb(db.Db) | ||||
now := time.Now() | now := time.Now() | ||||
date := now.Format("2006-01-02") | 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 { | if err != nil { | ||||
return err | return err | ||||
} | } | ||||
@@ -87,6 +91,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { | |||||
AssistedTimes: 1, | AssistedTimes: 1, | ||||
RewardScore: utils2.Float64ToStr(msg.AssistanceValue), | RewardScore: utils2.Float64ToStr(msg.AssistanceValue), | ||||
Date: date, | Date: date, | ||||
SignId: msg.SignId, | |||||
CreateAt: now.Format("2006-01-02 15:04:05"), | CreateAt: now.Format("2006-01-02 15:04:05"), | ||||
UpdateAt: now.Format("2006-01-02 15:04:05"), | UpdateAt: now.Format("2006-01-02 15:04:05"), | ||||
} | } | ||||
@@ -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_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 ( | 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_es.git v1.0.1-0.20241118083738-0f22da9ba0be | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||
github.com/boombuler/barcode v1.0.1 | github.com/boombuler/barcode v1.0.1 | ||||