Commit a4306b2378e5fc2fdcdd750567c96b3d6b3126fe
1 parent
d4a328e3ed
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 7 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java
View file @
a4306b2
| ... | ... | @@ -65,6 +65,7 @@ |
| 65 | 65 | group.setHxgroupid(rJson.getJSONObject("data").getString("groupid")); |
| 66 | 66 | group.setDescription(group.getFromp() + "," + group.getTarget()); |
| 67 | 67 | group.setGroupname(group.getFromp() + "," + group.getTarget()); |
| 68 | + group.setCtime(new Date()); | |
| 68 | 69 | lymsChatgroupService.saveOrUpdate(group); |
| 69 | 70 | } |
| 70 | 71 | baseResponse.setObject(group); |
| ... | ... | @@ -97,7 +98,12 @@ |
| 97 | 98 | BaseResponse baseResponse = new BaseResponse(); |
| 98 | 99 | Map<String, Object> rs = new HashMap<>(); |
| 99 | 100 | |
| 100 | - chatgroup = lymsChatgroupService.getOne(Wrappers.query(chatgroup)); | |
| 101 | +// chatgroup = lymsChatgroupService.getOne(Wrappers.query(chatgroup)); | |
| 102 | + List<LymsChatgroup> gLst = lymsChatgroupService.list(Wrappers.query(chatgroup).orderByDesc("ctime")); | |
| 103 | + | |
| 104 | + if (gLst.size()>0){ | |
| 105 | + chatgroup=gLst.get(0); | |
| 106 | + } | |
| 101 | 107 | LymsDoctor doctor = new LymsDoctor(); |
| 102 | 108 | doctor = lymsDoctorService.getOne(Wrappers.query(doctor).eq("dlogin", chatgroup.getTarget())); |
| 103 | 109 |