jack
2024-04-22 26581a43d52f6f6e62607c51b8224cdc50191a80
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
package com.nq.controller.backend;
 
 
import com.nq.common.ServerResponse;
import com.nq.service.IMoneyLogServces;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping({"/admin/moneylog/"})
public class AdminMoneyLogController {
 
 
    @Autowired
    IMoneyLogServces iMoneyLogServces;
 
    @RequestMapping({"moneylogAll.do"})
    @ResponseBody
    public ServerResponse taskList(@RequestParam(value = "userId", required = false) String userId,
                                   @RequestParam(value = "phone", required = false) String phone,
                                   @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
                                   @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
        return ServerResponse.createBySuccess(iMoneyLogServces.queryMoneyLog(userId,pageSize,pageNum));
    }
 
}