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