1
zj
2024-10-29 57c2b6875b5f026a1432f3209471d6b4503f43fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.nq.controller.agent;
 
 
import com.github.pagehelper.PageInfo;
 
import com.nq.common.ServerResponse;
 
import com.nq.service.IUserRechargeService;
 
import javax.servlet.http.HttpServletRequest;
 
import org.slf4j.Logger;
 
import org.slf4j.LoggerFactory;
 
import org.springframework.beans.factory.annotation.Autowired;
 
import org.springframework.stereotype.Controller;
 
import org.springframework.web.bind.annotation.RequestMapping;
 
import org.springframework.web.bind.annotation.RequestParam;
 
import org.springframework.web.bind.annotation.ResponseBody;
 
 
@Controller
@RequestMapping({"/agent/recharge/"})
public class AgentRechargeController {
 
    private static final Logger log = LoggerFactory.getLogger(AgentRechargeController.class);
 
    @Autowired
    IUserRechargeService iUserRechargeService;
 
    //分页查询入金记录信息及模糊查询
    @RequestMapping({"list.do"})
    @ResponseBody
    public ServerResponse<PageInfo> list(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize, @RequestParam(value = "realName", required = false) String realName, @RequestParam(value = "payChannel", required = false) String payChannel, @RequestParam(value = "state", required = false) Integer state, @RequestParam(value = "agentId", required = false) Integer agentId, HttpServletRequest request) {
        return this.iUserRechargeService.listByAgent(agentId, realName, payChannel, state, request, pageNum, pageSize);
    }
 
    //修改资金管理 充值列表订单状态
    @RequestMapping({"updateState.do"})
    @ResponseBody
    public ServerResponse updateState(@RequestParam(value = "chargeId", required = false) Integer chargeId, @RequestParam(value = "state", required = false) Integer state) {
        ServerResponse serverResponse = null;
        try {
            serverResponse = this.iUserRechargeService.updateState(chargeId, state);
        } catch (Exception e) {
            log.error("admin修改充值订单状态出错 ,异常 = {}", e);
        }
        return serverResponse;
    }
}