forked from free-lancers/electricity_bill_calc_service
fix(tenement): 解决向园区中指定商户下绑定一个新的表计时时间异常问题
This commit is contained in:
@@ -238,7 +238,7 @@ func (tr _TenementRepository) AddTenement(tx pgx.Tx, ctx context.Context, pid st
|
||||
}
|
||||
|
||||
// 向园区中指定商户下绑定一个新的表计
|
||||
func (tr _TenementRepository) BindMeter(tx pgx.Tx, ctx context.Context, pid, tid, meter string) error {
|
||||
func (tr _TenementRepository) BindMeter(tx pgx.Tx, ctx context.Context, pid, tid, meter string, form *vo.MeterReadingForm) error {
|
||||
tr.log.Info("向园区中指定商户下绑定一个新的表计", zap.String("Park", pid), zap.String("Tenement", tid), zap.String("Meter", meter))
|
||||
|
||||
createSql, createArgs, _ := tr.ds.
|
||||
@@ -251,7 +251,7 @@ func (tr _TenementRepository) BindMeter(tx pgx.Tx, ctx context.Context, pid, tid
|
||||
pid,
|
||||
tid,
|
||||
meter,
|
||||
types.Now(),
|
||||
form.ReadAt,
|
||||
},
|
||||
).
|
||||
Prepared(true).ToSQL()
|
||||
|
Reference in New Issue
Block a user