Commit ee334fe6 by 徐高华

非空判断

parent 9a0d154a
...@@ -96,11 +96,13 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -96,11 +96,13 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
if (needClerkReltaion) { if (needClerkReltaion) {
List<String> staffIdList = dtoList.stream().filter(dto -> StringUtils.isNotBlank(dto.getStaffId())) List<String> staffIdList = dtoList.stream().filter(dto -> StringUtils.isNotBlank(dto.getStaffId()))
.map(dto -> dto.getStaffId()).collect(Collectors.toList()); .map(dto -> dto.getStaffId()).collect(Collectors.toList());
List<String> relationIdList = this.staffClerkRelationService if(CollectionUtils.isNotEmpty(staffIdList)) {
.listRelationsStaffId(new HashSet<>(staffIdList)); List<String> relationIdList = this.staffClerkRelationService
dtoList.forEach(one -> { .listRelationsStaffId(new HashSet<>(staffIdList));
one.setClerkRelationFlag(relationIdList.contains(one.getStaffId()) ? 1 : 0); dtoList.forEach(one -> {
}); one.setClerkRelationFlag(relationIdList.contains(one.getStaffId()) ? 1 : 0);
});
}
} }
// 原群主 // 原群主
if (qdto.getStatus() == 2) { if (qdto.getStatus() == 2) {
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<foreach collection="staffIdList" item="item" separator="," open="(" close=")"> <foreach collection="staffIdList" item="item" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
and a.status_flag = 1 and b.status_flag = 1 group by a.staff_id; and a.status_flag = 1 and b.status_flag = 1 group by a.staff_id
</select> </select>
<select id="listMemberStaffRelNew" resultType="com.gic.haoban.manage.service.entity.ext.MemberStaffRelExtDO"> <select id="listMemberStaffRelNew" resultType="com.gic.haoban.manage.service.entity.ext.MemberStaffRelExtDO">
......
...@@ -176,6 +176,7 @@ public class GroupChatHmController { ...@@ -176,6 +176,7 @@ public class GroupChatHmController {
String chats = this.getGroupChatName(wxEnterpriseId, delIdList) ; String chats = this.getGroupChatName(wxEnterpriseId, delIdList) ;
if(StringUtils.isNotBlank(chats)) { if(StringUtils.isNotBlank(chats)) {
o = "删除可加入群聊【" + chats + "】"; o = "删除可加入群聊【" + chats + "】";
content.append(o);
} }
} }
String p = null ; String p = null ;
...@@ -186,6 +187,7 @@ public class GroupChatHmController { ...@@ -186,6 +187,7 @@ public class GroupChatHmController {
String chats = this.getGroupChatName(wxEnterpriseId, newIdList) ; String chats = this.getGroupChatName(wxEnterpriseId, newIdList) ;
if(StringUtils.isNotBlank(chats)) { if(StringUtils.isNotBlank(chats)) {
p = "新增可加入群聊【" + chats + "】"; p = "新增可加入群聊【" + chats + "】";
content.append(p);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment