Commit 7ded209b by Joneq

修改判断范围

parent e4b5a541
Showing with 1 additions and 1 deletions
......@@ -15,7 +15,7 @@ func (d *dao) GetCompanyModelItemsByProjectid(c context.Context, project_id int6
var (
rows *sql.Rows
)
if rows, err = d.db.Query(c, "select "+ SqlField + " from lie_model_items where project_id = ? and ladder_range_min <= ? and ladder_range_max >= ? ",project_id,score,score); err != nil {
if rows, err = d.db.Query(c, "select "+ SqlField + " from lie_model_items where project_id = ? and ladder_range_min <= ? and ladder_range_max > ? ",project_id,score,score); err != nil {
err = errors.WithStack(err)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment