Browse Source

分期付

master
huangjiajun 1 week ago
parent
commit
0dd2e759af
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/implement/installment_payment_scheme_db.go
  2. +1
    -0
      src/models/installment_payment_list.go

+ 1
- 1
src/implement/installment_payment_scheme_db.go View File

@@ -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)
}


+ 1
- 0
src/models/installment_payment_list.go View File

@@ -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)"`


Loading…
Cancel
Save