From 0dd2e759afe05190b8a907f28f4b63bc4fc4d397 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 20 Jun 2024 13:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=9C=9F=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/implement/installment_payment_scheme_db.go | 2 +- src/models/installment_payment_list.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/implement/installment_payment_scheme_db.go b/src/implement/installment_payment_scheme_db.go index 100415b..46c9724 100644 --- a/src/implement/installment_payment_scheme_db.go +++ b/src/implement/installment_payment_scheme_db.go @@ -37,7 +37,7 @@ func (i InstallmentPaymentSchemeDb) GetInstallmentPaymentSchemeById(id int) (m * } func (i InstallmentPaymentSchemeDb) FindInstallmentPaymentScheme() (m *[]models.InstallmentPaymentScheme, err error) { mm := make([]models.InstallmentPaymentScheme, 0) - err = i.Db.Find(m) + err = i.Db.Find(mm) if err != nil { return nil, zhios_order_relate_logx.Error(err) } diff --git a/src/models/installment_payment_list.go b/src/models/installment_payment_list.go index 0487c27..434be1e 100644 --- a/src/models/installment_payment_list.go +++ b/src/models/installment_payment_list.go @@ -6,6 +6,7 @@ type InstallmentPaymentList struct { GoodsId int `json:"goods_id" xorm:"not null default 0 comment('商品ID') INT(11)"` OrdId int64 `json:"ord_id" xorm:"not null default 0 comment('订单ID') BIGINT(20)"` TotalAmount string `json:"total_amount" xorm:"not null default 0.00 comment('总金额') DECIMAL(12,2)"` + Commission string `json:"commission" xorm:"not null default 0.00 comment('总金额') DECIMAL(12,2)"` InstallmentNums int `json:"installment_nums" xorm:"not null default 0 comment('分期数') TINYINT(3)"` AlreadyRepaidInstallmentNums int `json:"already_repaid_installment_nums" xorm:"not null default 0 comment('已换分期数') TINYINT(3)"` RepaymentAmountPerInstallment string `json:"repayment_amount_per_installment" xorm:"not null default 0.00 comment('每期还款金额') DECIMAL(12,2)"`