|
@@ -5,9 +5,7 @@ import (
|
|
|
"errors"
|
|
|
"log"
|
|
|
"math"
|
|
|
- "os"
|
|
|
"sort"
|
|
|
- "strconv"
|
|
|
"time"
|
|
|
|
|
|
"github.com/mhaya/game/game_cluster/internal/constant"
|
|
@@ -148,19 +146,15 @@ func (s *Synthesis) FindWithdrawal(req *entity.UserWithdrawalReq) ([]*entity.Use
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if req.Withdrawal != "" {
|
|
|
- withdrawal, err := strconv.Atoi(req.Withdrawal)
|
|
|
- if err != nil {
|
|
|
- return nil, 0, os.ErrInvalid
|
|
|
- }
|
|
|
- filter["withdrawal"] = withdrawal
|
|
|
+ if req.Withdrawal >= 0 {
|
|
|
+ filter["withdrawal"] = req.Withdrawal
|
|
|
}
|
|
|
|
|
|
if req.Address != "" {
|
|
|
filter["address"] = req.Address
|
|
|
}
|
|
|
|
|
|
- if req.Status != "" {
|
|
|
+ if req.Status >= 0 {
|
|
|
filter["status"] = req.Status
|
|
|
}
|
|
|
|