瀏覽代碼

Revert "update 新增查询提现记录的过滤字段"

This reverts commit e6e486d5535a7dfd2f5430e65fe095b4df6c330f.
Alvin 10 月之前
父節點
當前提交
674a4a9cb3

+ 7 - 10
game/game_cluster/nodes/webadmin/entity/user_withdrawal.go

@@ -22,16 +22,13 @@ type UserWithdrawalDetail struct {
 }
 
 type UserWithdrawalReq struct {
-	UserName   string `json:"user_name" bson:"user_name"` // 用户ID
-	NickName   string `json:"nick_name" bson:"nick_name"` // 昵称
-	ID         string `json:"id" bson:"id"`               // ID
-	StartTime  int64  `json:"start_time"`                 // 开始时间
-	EndTime    int64  `json:"end_time"`                   // 结束时间
-	Page       int    `json:"page"`                       // 页码
-	Size       int    `json:"size"`                       // 每页数量
-	Address    string `json:"address"`                    // 地址
-	State      int    `json:"state"`                      // 服务器是否已经处理 0 未处理 1已处理
-	Withdrawal int    `json:"withdrawal"`                 // 提现 0 :未体现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
+	UserName  string `json:"user_name" bson:"user_name"` // 用户ID
+	NickName  string `json:"nick_name" bson:"nick_name"` // 昵称
+	ID        string `json:"id" bson:"id"`               // ID
+	StartTime int64  `json:"start_time"`                 // 开始时间
+	EndTime   int64  `json:"end_time"`                   // 结束时间
+	Page      int    `json:"page"`                       // 页码
+	Size      int    `json:"size"`                       // 每页数量
 }
 
 type UserWithdrawalStatus struct {

+ 2 - 10
game/game_cluster/nodes/webadmin/service/synthesis.go

@@ -144,16 +144,8 @@ func (s *Synthesis) FindWithdrawal(req entity.UserWithdrawalReq) (*entity.UserWi
 	if req.ID != "" {
 		filter["_id"], _ = primitive.ObjectIDFromHex(req.ID)
 	}
-	if req.Address != "" {
-		filter["address"] = req.Address
-	}
-	if req.State > 0 {
-		filter["state"] = req.State
-	}
-	if req.Withdrawal > 0 {
-		filter["withdrawal"] = req.Withdrawal
-	}
-	if req.StartTime > 0 {
+
+	if req.StartTime != 0 {
 		filter["createAt"] = bson.M{
 			"$gte": req.StartTime,
 			"$lte": req.EndTime,