Commit 46f24bc282231560ae14920fbf94fe527994df9c
1 parent
fee09d2674
Exists in
master
患者点咨询。查询是否有回访。有就直接进入聊天。不消耗问诊卡
Showing 1 changed file with 30 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java
View file @
46f24bc
... | ... | @@ -501,5 +501,35 @@ |
501 | 501 | } |
502 | 502 | return baseResponse; |
503 | 503 | } |
504 | + /** | |
505 | + * 患者点咨询。查询是否有回访。有就直接进入聊天。不消耗问诊卡 | |
506 | + * @param request | |
507 | + * @return | |
508 | + */ | |
509 | + @GetMapping("getYnReturnVisit") | |
510 | + @TokenRequired | |
511 | + public BaseResponse getYnReturnVisit(LymsChatgroup chatgroup){ | |
512 | + BaseResponse baseResponse =new BaseResponse(); | |
513 | + try { | |
514 | + final LymsChatgroup lymsChatgroup = lymsChatgroupService.getOne(new QueryWrapper<LymsChatgroup>() | |
515 | + .lambda().eq(LymsChatgroup::getFromp, chatgroup.getFromp()) | |
516 | + .eq(LymsChatgroup::getTarget, chatgroup.getTarget()) | |
517 | + .eq(LymsChatgroup::getPcid, chatgroup.getPcid()) | |
518 | + .eq(LymsChatgroup::getType, 1) | |
519 | + .eq(LymsChatgroup::getStat, 0)); | |
520 | + if (null!=lymsChatgroup) { | |
521 | + Map map=new HashMap(); | |
522 | + map.put("hxgroupid",lymsChatgroup.getHxgroupid()); | |
523 | + map.put("stat",lymsChatgroup.getStat()); | |
524 | + baseResponse.setObject(lymsChatgroup); | |
525 | + } | |
526 | + baseResponse.setErrorcode(0); | |
527 | + baseResponse.setErrormsg("成功"); | |
528 | + } catch (Exception e) { | |
529 | + e.printStackTrace(); | |
530 | + } | |
531 | + return baseResponse; | |
532 | + } | |
533 | + | |
504 | 534 | } |