فهرست منبع

新增标签接口

chenweida 8 سال پیش
والد
کامیت
a5fcab8e4a

+ 12 - 1
patient-co-figure/src/main/java/com/yihu/figure/controller/patient/PortraitController.java

@ -45,7 +45,18 @@ public class PortraitController extends BaseController {
            return invalidUserException(e, -1, "启动失败:" + e.getMessage());
        }
    }
    @ApiOperation(value = " 根据标签ID查找标签信息")
    @RequestMapping(value = "findPortraitById", method = RequestMethod.GET)
    public String findPortraitById(
            @ApiParam(name = "id", value = "标签id", required = true) @RequestParam(value = "id", required = true) Long id) {
        try {
            UserPortrait up= portraitService.findPortraitById(id);
            return success("成功");
        } catch (Exception e) {
            error(e);
            return invalidUserException(e, -1, "启动失败:" + e.getMessage());
        }
    }
    @ApiOperation(value = "获取疾病-所在区域")
    @RequestMapping(value = "getPortraits1002001", method = RequestMethod.GET)

+ 4 - 0
patient-co-figure/src/main/java/com/yihu/figure/service/PortraitService.java

@ -185,4 +185,8 @@ public class PortraitService {
        }
        return "";
    }
    public UserPortrait findPortraitById(Long id) {
        return userPortraitDao.findOne(id);
    }
}