From 9282b620b953c6ae65c7c8d9086ead636b11a765 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 13 Nov 2024 18:52:03 +0800 Subject: [PATCH] update --- app/hdl/institutional_management/egg_energy/hdl_basic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/hdl/institutional_management/egg_energy/hdl_basic.go b/app/hdl/institutional_management/egg_energy/hdl_basic.go index 6409393..d4b5280 100644 --- a/app/hdl/institutional_management/egg_energy/hdl_basic.go +++ b/app/hdl/institutional_management/egg_energy/hdl_basic.go @@ -210,9 +210,10 @@ func UpdateEggEnergyBasic(c *gin.Context) { NewUserIncentiveRules: newUserIncentiveRulesStr, } + forceColums := []string{"is_open", "video_reward_is_open"} energyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db) session := db.Db.NewSession() - affected, err := energyBasicSettingDb.EggEnergyBasicSettingUpdate(session, req.SystemID, &m) + affected, err := energyBasicSettingDb.EggEnergyBasicSettingUpdate(session, req.SystemID, &m, forceColums...) if err != nil { e.OutErr(c, e.ERR_DB_ORM, err.Error()) return