Commit c88f71a6857029da942740ee6cc0d4f681997caa
1 parent
f91ef4c10f
Exists in
master
and in
1 other branch
环信群组名称更改为姓名串-用于PC端问诊展示
Showing 2 changed files with 10 additions and 3 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java
View file @
c88f71a
1 | 1 | package com.lyms.talkonlineweb.controller; |
2 | 2 | |
3 | 3 | import com.alibaba.fastjson.JSONObject; |
4 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
4 | 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
6 | 8 | import com.lyms.talkonlineweb.domain.*; |
... | ... | @@ -64,7 +66,12 @@ |
64 | 66 | log.info("rJson:" + rJson); |
65 | 67 | group.setHxgroupid(rJson.getJSONObject("data").getString("groupid")); |
66 | 68 | group.setDescription(group.getFromp() + "," + group.getTarget()); |
67 | - group.setGroupname(group.getFromp() + "," + group.getTarget()); | |
69 | +// group.setGroupname(group.getFromp() + "," + group.getTarget()); | |
70 | + //环信群组名称更改为姓名串-用于PC端问诊展示 | |
71 | + LymsPatient patient= lymsPatientService.getOne(new QueryWrapper<LymsPatient>().lambda().eq(LymsPatient::getIdno, group.getFromp())); | |
72 | + LymsDoctor doctor= lymsDoctorService.getOne(new QueryWrapper<LymsDoctor>().lambda().eq(LymsDoctor::getDlogin, group.getTarget())); | |
73 | + group.setGroupname(patient.getPname() + "," + doctor.getDdname()); | |
74 | + | |
68 | 75 | group.setCtime(new Date()); |
69 | 76 | lymsChatgroupService.saveOrUpdate(group); |
70 | 77 | } |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatgroup.java
View file @
c88f71a