| | |
| | | * 根据宠物id获取相关备忘录 |
| | | */ |
| | | @GetMapping |
| | | public AjaxResult getByPetId(@PathParam("pid")String pid){ |
| | | public AjaxResult getByPetId(@PathParam("pid")String pid,ZfPetNote zfPetNote){ |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return zfPetNoteService.getAllPetNoteByPetId(pageNum,pageSize,pid); |
| | | return zfPetNoteService.getAllPetNoteByPetId(pageNum,pageSize,pid,zfPetNote); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | List<ZfPetNote> selectByCondition(ZfPetNote zfPetNote); |
| | | |
| | | AjaxResult getAllPetNoteByPetId(Integer pageNum,Integer pageSize,String pid); |
| | | AjaxResult getAllPetNoteByPetId(Integer pageNum,Integer pageSize,String pid,ZfPetNote zfPetNote); |
| | | |
| | | AjaxResult mySave(ZfPetNote zfPetNote); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult getAllPetNoteByPetId(Integer pageNum,Integer pageSize,String pid) { |
| | | LambdaQueryWrapper<ZfPetNote> lqw = new LambdaQueryWrapper<>(); |
| | | public AjaxResult getAllPetNoteByPetId(Integer pageNum,Integer pageSize,String pid,ZfPetNote zfPetNote) { |
| | | LambdaQueryWrapper<ZfPetNote> lqw = buildCondition(zfPetNote); |
| | | lqw.eq(ZfPetNote::getPid,pid); |
| | | lqw.orderByDesc(ZfPetNote::getCreateTime); |
| | | |