|
|
@@ -87,6 +87,18 @@ func IntegralReleaseGetOneByParams(session *xorm.Session, params map[string]inte |
|
|
|
} |
|
|
|
return &m, nil |
|
|
|
} |
|
|
|
func IntegralReleaseGetOneByParamsEg(eg *xorm.Engine, params map[string]interface{}) (*model.IntegralReleaseBasic, error) { |
|
|
|
var m model.IntegralReleaseBasic |
|
|
|
var query = fmt.Sprintf("%s =?", params["key"]) |
|
|
|
has, err := eg.Where(query, params["value"]).Get(&m) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
if has == false { |
|
|
|
return nil, errors.New("未查询到相应的 block_star_chain 记录") |
|
|
|
} |
|
|
|
return &m, nil |
|
|
|
} |
|
|
|
|
|
|
|
// IntegralReleaseFindByParams 通过传入的参数查询数据(多条) |
|
|
|
func IntegralReleaseFindByParams(Db *xorm.Engine, params map[string]interface{}) (*[]model.IntegralReleaseBasic, error) { |
|
|
|