|
@@ -83,9 +83,9 @@ func (selfSupportForSchoolOrdOrdDb *SelfSupportForSchoolOrd) SelfSupportForSchoo |
|
|
err error |
|
|
err error |
|
|
) |
|
|
) |
|
|
if forceColums != nil { |
|
|
if forceColums != nil { |
|
|
affected, err = selfSupportForSchoolOrdOrdDb.Db.Where("out_trade_no=?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Cols(forceColums...).Update(m) |
|
|
|
|
|
|
|
|
affected, err = selfSupportForSchoolOrdOrdDb.Db.Where("out_order_no=?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Cols(forceColums...).Update(m) |
|
|
} else { |
|
|
} else { |
|
|
affected, err = selfSupportForSchoolOrdOrdDb.Db.Where("out_trade_no=?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Update(m) |
|
|
|
|
|
|
|
|
affected, err = selfSupportForSchoolOrdOrdDb.Db.Where("out_order_no=?", selfSupportForSchoolOrdOrdDb.OutOrderNo).Update(m) |
|
|
} |
|
|
} |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return 0, err |
|
|
return 0, err |
|
|