forked from free-lancers/electricity_bill_calc_service
fix(deprecates):继续清理已经删除的表计摊薄字段。
This commit is contained in:
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user