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,pageNum,pageSize));
|
}
|
|
}
|