| | |
| | | import com.nq.service.ExchangeRateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | |
| | | @ResponseBody |
| | | public ServerResponse getInfo(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, |
| | | @RequestParam(value = "pageSize", defaultValue = "15") int pageSize) { |
| | | return exchangeRateService.getInfo(pageNum, pageSize); |
| | | return exchangeRateService.getInfoPage(pageNum, pageSize); |
| | | } |
| | | |
| | | //修改汇率 |
| | | @RequestMapping({"editRate.do"}) |
| | | @PostMapping({"editRate.do"}) |
| | | @ResponseBody |
| | | public ServerResponse editRate(ExchangeRate model, HttpServletRequest request) { |
| | | if (model == null) { |