提交 5e3a24e2 编写于 作者: minghao.wu's avatar minghao.wu

fix: doctor获取为空时返回日志,doctor判断用户是够为空

上级 a2bd8643
...@@ -173,6 +173,10 @@ public class AnalysisController { ...@@ -173,6 +173,10 @@ public class AnalysisController {
Doctor doctor = doctorService.getDoctorById(user.getId()); Doctor doctor = doctorService.getDoctorById(user.getId());
if (doctor == null) {
return ReturnUtil.getPicaResponse(PicaResultCode.SYSTEM_INVALID_TOKEN);
}
/** /**
* 未认证用户直接返回 * 未认证用户直接返回
*/ */
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
id, name, status, hospital, title, avatar_image_url id, name, status, hospital, title, avatar_image_url
from pica.p_doctor from pica.p_doctor
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
and delete_flag = 1
limit 1 limit 1
</select> </select>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册