dengbiao 6 个月前
父节点
当前提交
fcbf45454d
共有 3 个文件被更改,包括 25 次插入3 次删除
  1. +3
    -1
      src/dao/installment_payment_list_dao.go
  2. +16
    -2
      src/implement/installment_payment_list_db.go
  3. +6
    -0
      src/implement/super_cloud_issuance_package_ord_db.go

+ 3
- 1
src/dao/installment_payment_list_dao.go 查看文件

@@ -1,5 +1,7 @@
package dao

import "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"

type InstallmentPaymentListDao interface {
//TODO:: You can add specific method definitions here
GetInstallmentPaymentListById(id int) (m *models.InstallmentPaymentList, err error)
}

+ 16
- 2
src/implement/installment_payment_list_db.go 查看文件

@@ -2,13 +2,27 @@

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"
zhios_order_relate_logx "code.fnuoos.com/go_rely_warehouse/zyos_model.git/utils/logx"
"xorm.io/xorm"
)

func NewInstallmentPaymentListDb(engine *xorm.Engine) dao.InstallmentPaymentListDao {
return &InstallmentPaymentListDb{Db: engine}
}

type InstallmentPaymentListDb struct {
Db *xorm.Engine
}

func NewInstallmentPaymentListDb(engine *xorm.Engine) dao.InstallmentPaymentListDao {
return &InstallmentPaymentListDb{Db: engine}
func (i InstallmentPaymentListDb) GetInstallmentPaymentListById(id int) (m *models.InstallmentPaymentList, err error) {
m = new(models.InstallmentPaymentList)
has, err := i.Db.Where("id =?", id).Get(m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
if has == false {
return nil, nil
}
return m, nil
}

+ 6
- 0
src/implement/super_cloud_issuance_package_ord_db.go 查看文件

@@ -2,6 +2,7 @@ package implement

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"
"xorm.io/xorm"
)

@@ -9,6 +10,11 @@ type SuperCloudIssuancePackageOrdDb struct {
Db *xorm.Engine
}

func (s SuperCloudIssuancePackageOrdDb) GetCloudIssuancePackageOrd(ordNo string) (m *models.SuperCloudIssuancePackageOrd, err error) {
//TODO implement me
panic("implement me")
}

func NewSuperCloudIssuancePackageOrdDb(engine *xorm.Engine) dao.SuperCloudIssuancePackageOrdDao {
return &SuperCloudIssuancePackageOrdDb{Db: engine}
}

正在加载...
取消
保存