456
whywhyo
2023-05-23 7f220c9aa253204183c42edaa98d9f78e9eb6685
456
3个文件已修改
6 ■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfMasterController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfMasterService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfMasterServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfMasterController.java
@@ -50,7 +50,7 @@
     * 根据宠物id获取相关主人信息
     */
    @GetMapping()
    public AjaxResult getByPetId(@PathParam("pid")Long pid){
    public AjaxResult getByPetId(@PathParam("pid")String pid){
        return zfMasterService.getMasterInfoByPetId(pid);
    }
zhang-content/src/main/java/com/ruoyi/service/ZfMasterService.java
@@ -17,7 +17,7 @@
 */
public interface ZfMasterService extends IService<ZfMaster> {
    AjaxResult getMasterInfoByPetId(Long pid);
    AjaxResult getMasterInfoByPetId(String pid);
    List<ZfMaster> selectByCondition(ZfMaster zfMaster);
zhang-content/src/main/java/com/ruoyi/service/impl/ZfMasterServiceImpl.java
@@ -27,7 +27,7 @@
public class ZfMasterServiceImpl extends ServiceImpl<ZfMasterMapper, ZfMaster> implements ZfMasterService {
    @Override
    public AjaxResult getMasterInfoByPetId(Long pid) {
    public AjaxResult getMasterInfoByPetId(String pid) {
        LambdaQueryWrapper<ZfMaster> lqw = new LambdaQueryWrapper<>();
        lqw.eq(ZfMaster::getPetId,pid);
        ZfMaster master = getOne(lqw);