forked from free-lancers/electricity_bill_calc_service
fix(park):修正园区详细信息的查询。
This commit is contained in:
@@ -141,6 +141,12 @@ func (pr _ParkRepository) RetrieveParkDetail(pid string) (*model.Park, error) {
|
||||
var park model.Park
|
||||
parkSql, parkArgs, _ := pr.ds.
|
||||
From("park").
|
||||
Select(
|
||||
"id", "user_id", "name", "area", "tenement_quantity", "capacity", "category",
|
||||
"meter_04kv_type", "region", "address", "contact", "phone", "enabled", "price_policy", "tax_rate",
|
||||
"basic_pooled", "adjust_pooled", "loss_pooled", "public_pooled", "created_at", "last_modified_at",
|
||||
"deleted_at",
|
||||
).
|
||||
Where(goqu.I("id").Eq(pid)).
|
||||
Prepared(true).ToSQL()
|
||||
if err := pgxscan.Get(ctx, global.DB, &park, parkSql, parkArgs...); err != nil {
|
||||
|
Reference in New Issue
Block a user