|
@@ -42,10 +42,10 @@ func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOneByParams(params map[ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOne() (*model.EggEnergyBasicSetting, error) { |
|
|
func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingGetOne() (*model.EggEnergyBasicSetting, error) { |
|
|
var m *model.EggEnergyBasicSetting |
|
|
|
|
|
|
|
|
var m model.EggEnergyBasicSetting |
|
|
_, err := e.Db.Where("id >= ?", 1).Get(&m) |
|
|
_, err := e.Db.Where("id >= ?", 1).Get(&m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, zhios_order_relate_logx.Error(err.Error()) |
|
|
return nil, zhios_order_relate_logx.Error(err.Error()) |
|
|
} |
|
|
} |
|
|
return m, nil |
|
|
|
|
|
|
|
|
return &m, nil |
|
|
} |
|
|
} |