forked from free-lancers/electricity_bill_calc_service
fix(park): 修复创建报表中核定线损未显示问题
This commit is contained in:
@@ -357,7 +357,6 @@ func (cr _CalculateRepository) SaveReportPublics(tx pgx.Tx, ctx context.Context,
|
||||
})
|
||||
// 执行插入语句
|
||||
inserSql, insertArgs, _ := insertExpr.ToSQL()
|
||||
fmt.Println(inserSql)
|
||||
_, err := tx.Exec(ctx, inserSql, insertArgs...)
|
||||
if err != nil {
|
||||
_ = tx.Rollback(ctx)
|
||||
|
||||
@@ -38,7 +38,7 @@ func (pr _ParkRepository) ListAllParks(uid string) ([]*model.Park, error) {
|
||||
"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",
|
||||
"deleted_at","norm_authorized_loss_rate",
|
||||
).
|
||||
Where(
|
||||
goqu.I("user_id").Eq(uid),
|
||||
|
||||
Reference in New Issue
Block a user