浏览代码

update

tags/v0.0.2
shenjiachi 1周前
父节点
当前提交
c62e7fe9e2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/implement/egg_energy_basic_setting_implement.go

+ 2
- 2
src/implement/egg_energy_basic_setting_implement.go 查看文件

@@ -42,10 +42,10 @@ func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOneByParams(params map[
}

func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOne() (*model.EggEnergyBasicSetting, error) {
var m *model.EggEnergyBasicSetting
var m model.EggEnergyBasicSetting
_, err := e.Db.Where("id >= ?", 1).Get(&m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err.Error())
}
return m, nil
return &m, nil
}

正在加载...
取消
保存