Commit 9441fd6d by Joneq

判断天眼查没数据情况

parent 72f86de8
Showing with 1 additions and 1 deletions
...@@ -34,7 +34,7 @@ func (d *dao) GetCompanyCresitsList(ctx context.Context) (res []map[string]strin ...@@ -34,7 +34,7 @@ func (d *dao) GetCompanyCresitsList(ctx context.Context) (res []map[string]strin
var ( var (
rows *sql.Rows rows *sql.Rows
) )
if rows, err = d.db.Query(ctx, "SELECT "+SqlField+" FROM lie_com_credits where status = 5 or status = 10 "); err != nil { if rows, err = d.db.Query(ctx, "SELECT "+SqlField+" FROM lie_com_credits where status = 5 or status = 10 and id = 10029 "); err != nil {
err = errors.WithStack(err) err = errors.WithStack(err)
return 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