Bladeren bron

update

add_mode
DengBiao 1 jaar geleden
bovenliggende
commit
f60b1c4022
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      app/db/db_self_support_for_school_ord.go

+ 2
- 2
app/db/db_self_support_for_school_ord.go Bestand weergeven

@@ -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) {


Laden…
Annuleren
Opslaan