面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 rivejä
388 B

  1. package db
  2. import (
  3. "applet/app/db/model"
  4. "xorm.io/xorm"
  5. )
  6. // 根据订单id查出相关的数据
  7. func GetVirtualCoinRelateListWithOrdId(engine *xorm.Engine, ordId int64) ([]*model.VirtualCoinRelate, error) {
  8. var list []*model.VirtualCoinRelate
  9. err := engine.Table("virtual_coin_relate").Where("oid = ?", ordId).Find(&list)
  10. if err != nil {
  11. return nil, err
  12. }
  13. return list, nil
  14. }