瀏覽代碼

update

master
shenjiachi 1 周之前
父節點
當前提交
9282b620b9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      app/hdl/institutional_management/egg_energy/hdl_basic.go

+ 2
- 1
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


Loading…
取消
儲存