Pārlūkot izejas kodu

分期付

master
huangjiajun pirms 6 mēnešiem
vecāks
revīzija
d8b7622ed9
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      src/dao/installment_payment_list_dao.go
  2. +2
    -2
      src/implement/installment_payment_list_db.go

+ 1
- 1
src/dao/installment_payment_list_dao.go Parādīt failu

@@ -7,7 +7,7 @@ import (

type InstallmentPaymentListDao interface {
GetInstallmentPaymentListById(id int) (m *models.InstallmentPaymentList, err error)
GetInstallmentPaymentListByOidSess(sess *xorm.Session, oid string) (m *models.InstallmentPaymentList, err error)
GetInstallmentPaymentListByIdSess(sess *xorm.Session, oid string) (m *models.InstallmentPaymentList, err error)
FinInstallmentPaymentList(arg map[string]string) (m *[]models.InstallmentPaymentList, err error)
UpdateInstallmentPaymentListBySess(sess *xorm.Session, m *models.InstallmentPaymentList, forceColums ...string) (int64, error)
InsertInstallmentPaymentList(m *models.InstallmentPaymentList) (id int, err error)


+ 2
- 2
src/implement/installment_payment_list_db.go Parādīt failu

@@ -52,9 +52,9 @@ func (i InstallmentPaymentListDb) GetInstallmentPaymentListById(id int) (m *mode
}
return m, nil
}
func (i InstallmentPaymentListDb) GetInstallmentPaymentListByOidSess(sess *xorm.Session, oid string) (m *models.InstallmentPaymentList, err error) {
func (i InstallmentPaymentListDb) GetInstallmentPaymentListByIdSess(sess *xorm.Session, id string) (m *models.InstallmentPaymentList, err error) {
m = new(models.InstallmentPaymentList)
has, err := sess.Where("ord_id =?", oid).Get(m)
has, err := sess.Where("id =?", id).Get(m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}


Notiek ielāde…
Atcelt
Saglabāt