From f60b1c40224e4f78c1fdf440c99759c065e1858c Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 19 Sep 2023 21:21:52 +0800 Subject: [PATCH] update --- app/db/db_self_support_for_school_ord.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/db_self_support_for_school_ord.go b/app/db/db_self_support_for_school_ord.go index 539ee4d..e00e82e 100644 --- a/app/db/db_self_support_for_school_ord.go +++ b/app/db/db_self_support_for_school_ord.go @@ -31,7 +31,7 @@ func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) GetSelfSupportForSc func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) GetSelfSupportForSchoolOrd() (m *model.SelfSupportForSchoolOrd, err error) { m = new(model.SelfSupportForSchoolOrd) - has, err := selfSupportForSchoolOrdOrdDb.Db.Where("out_trade_no =?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Get(m) + has, err := selfSupportForSchoolOrdOrdDb.Db.Where("out_order_no =?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Get(m) if err != nil { return nil, logx.Error(err) } @@ -74,7 +74,7 @@ func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) SelfSupportForSchoo } func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) SelfSupportForSchoolOrdDelete() (int64, error) { - return Db.Where("out_trade_no = ?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Delete(model.SelfSupportForSchoolOrd{}) + return Db.Where("out_order_no = ?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Delete(model.SelfSupportForSchoolOrd{}) } func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) SelfSupportForSchoolOrdUpdate(m *model.SelfSupportForSchoolOrd, forceColums ...string) (int64, error) {