瀏覽代碼

update

master
shenjiachi 1 天之前
父節點
當前提交
9c986d3c87
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/implement/user_virtual_coin_flow_implement.go

+ 4
- 1
src/implement/user_virtual_coin_flow_implement.go 查看文件

@@ -24,7 +24,10 @@ func (u UserVirtualCoinFlowDb) UserVirtualCoinFlowInsertBySession(session *xorm.

func (u UserVirtualCoinFlowDb) UserVirtualCoinFlowFindByCoinAndUser(page, pageSize int, coinID int, uid int64, startAt string, endAt string, direction int, isAsc bool, transferType int) ([]model.UserVirtualCoinFlow, int64, error) {
var m []model.UserVirtualCoinFlow
session := u.Db.Where("uid = ?", uid).And("coin_id = ?", coinID)
session := u.Db.Where("uid = ?", uid)
if coinID > 0 {
session = session.And("coin_id = ?", coinID)
}
if startAt != "" && endAt != "" {
session = session.And("create_at >= ?", startAt).And("create_at <= ?", endAt)
}


Loading…
取消
儲存