Browse Source

分期付

master
huangjiajun 5 months ago
parent
commit
425c0278f4
2 changed files with 2 additions and 5 deletions
  1. +1
    -1
      src/implement/installment_payment_list_db.go
  2. +1
    -4
      src/implement/installment_payment_repaid_flow_db.go

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

@@ -60,7 +60,7 @@ func (i InstallmentPaymentListDb) FinInstallmentPaymentList(arg map[string]strin
}
size := zhios_order_relate_utils.StrToInt(arg["size"])
start := (zhios_order_relate_utils.StrToInt(arg["p"]) - 1) * size
err = sess.Limit(size, start).Find(&mm)
err = sess.Limit(size, start).Desc("id").Find(&mm)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}


+ 1
- 4
src/implement/installment_payment_repaid_flow_db.go View File

@@ -3,7 +3,6 @@ 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"
zhios_order_relate_utils "code.fnuoos.com/go_rely_warehouse/zyos_model.git/utils"
zhios_order_relate_logx "code.fnuoos.com/go_rely_warehouse/zyos_model.git/utils/logx"
"xorm.io/xorm"
)
@@ -26,9 +25,7 @@ func (i InstallmentPaymentRepaidFlowDb) InsertInstallmentPaymentRepaidFlowBySess
func (i InstallmentPaymentRepaidFlowDb) FinInstallmentRepaidFlow(arg map[string]string) (m *[]models.InstallmentPaymentRepaidFlow, err error) {
mm := make([]models.InstallmentPaymentRepaidFlow, 0)
sess := i.Db.Where("uid=?", arg["uid"]).And("record_id=?", arg["id"])
size := zhios_order_relate_utils.StrToInt(arg["size"])
start := (zhios_order_relate_utils.StrToInt(arg["p"]) - 1) * size
err = sess.Limit(size, start).Find(&mm)
err = sess.Find(&mm)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}


Loading…
Cancel
Save