fix(deprecates):继续清理已经删除的表计摊薄字段。

This commit is contained in:
徐涛
2022-09-23 15:53:56 +08:00
parent 0169419707
commit df9bf83bb8
3 changed files with 2 additions and 8 deletions

View File

@@ -255,7 +255,6 @@ func (g _GodModeService) resynchronizeEndUserArchives(tx *bun.Tx, ctx *context.C
"contact_phone",
"seq",
"public_meter",
"dilute",
)
if err != nil {
return success, err

View File

@@ -101,7 +101,7 @@ func (_Meter04kVService) updateMeter(tx *bun.Tx, ctx *context.Context, meter mod
_, err := tx.NewUpdate().Model(&meter).
Where("code = ?", meter.Code).
Where("park_id = ?", meter.ParkId).
Column("address", "customer_name", "contact_name", "contact_phone", "ratio", "seq", "public_meter", "dilute", "enabled").
Column("address", "customer_name", "contact_name", "contact_phone", "ratio", "seq", "public_meter", "enabled").
Exec(*ctx)
if err != nil {
tx.Rollback()
@@ -206,7 +206,7 @@ func (m _Meter04kVService) BatchCreateMeter(meters []model.Meter04KV) error {
}
if len(updates) > 0 {
_, err = tx.NewUpdate().Model(&updates).
Column("address", "customer_name", "contact_name", "contact_phone", "ratio", "seq", "public_meter", "dilute", "enabled").
Column("address", "customer_name", "contact_name", "contact_phone", "ratio", "seq", "public_meter", "enabled").
Bulk().
Exec(ctx)
if err != nil {