| | |
| | | * 根据宠物id获取相关备忘录 |
| | | */ |
| | | @GetMapping |
| | | public AjaxResult getByPetId(@PathParam("pid")Long pid){ |
| | | public AjaxResult getByPetId(@PathParam("pid")String pid){ |
| | | return zfPetNoteService.getAllPetNoteByPetId(pid); |
| | | } |
| | | |
| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | # url: jdbc:mysql://47.93.189.255:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://localhost:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://47.93.189.255:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # url: jdbc:mysql://localhost:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: ZhangApp123! |
| | | # password: 123456 |
| | |
| | | |
| | | List<ZfPetNote> selectByCondition(ZfPetNote zfPetNote); |
| | | |
| | | AjaxResult getAllPetNoteByPetId(Long pid); |
| | | AjaxResult getAllPetNoteByPetId(String pid); |
| | | |
| | | AjaxResult mySave(ZfPetNote zfPetNote); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult getAllPetNoteByPetId(Long pid) { |
| | | public AjaxResult getAllPetNoteByPetId(String pid) { |
| | | LambdaQueryWrapper<ZfPetNote> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(ZfPetNote::getPid,pid); |
| | | lqw.orderByDesc(ZfPetNote::getCreateTime); |