| | |
| | | */ |
| | | @GetMapping |
| | | public AjaxResult getByPetId(@PathParam("pid")String pid){ |
| | | return zfPetNoteService.getAllPetNoteByPetId(pid); |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return zfPetNoteService.getAllPetNoteByPetId(pageNum,pageSize,pid); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @Log(title = "用户管理", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importData/{pid}") |
| | | public AjaxResult importData(@RequestParam("excelImport") MultipartFile file,@PathVariable Long pid) throws Exception |
| | | public AjaxResult importData(@RequestParam("excelImport") MultipartFile file,@PathVariable String pid) throws Exception |
| | | { |
| | | ExcelUtil<ZfPetNote> util = new ExcelUtil<>(ZfPetNote.class); |
| | | List<ZfPetNote> eventList = util.importExcel(file.getInputStream()); |