fix(#15): 修复: 更换表计的时候,在代码中接收了参数未作任何处理
This commit is contained in:
parent
a543b33276
commit
c2d43bd98e
|
@ -489,7 +489,7 @@ func (mr _MeterRepository) UnbindMeter(tx pgx.Tx, ctx context.Context, pid, mast
|
|||
return false, err
|
||||
}
|
||||
|
||||
return ok.RowsAffected() > 0, nil
|
||||
return ok.RowsAffected() >= 0, nil
|
||||
}
|
||||
|
||||
// 列出指定公摊表计的所有关联表计关系
|
||||
|
@ -553,7 +553,7 @@ func (mr _MeterRepository) ListMeterRelations(pid, code string) ([]*model.MeterR
|
|||
|
||||
var relations []*model.MeterRelation
|
||||
relationsSql, relationsArgs, _ := mr.ds.
|
||||
From(goqu.T("meter_relations")).
|
||||
From(goqu.T("meter_relations").As("r")).
|
||||
Select("*").
|
||||
Where(
|
||||
goqu.I("r.park_id").Eq(pid),
|
||||
|
|
Loading…
Reference in New Issue
Block a user