Commit ee334fe6 by 徐高华

非空判断

parent 9a0d154a
......@@ -96,12 +96,14 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
if (needClerkReltaion) {
List<String> staffIdList = dtoList.stream().filter(dto -> StringUtils.isNotBlank(dto.getStaffId()))
.map(dto -> dto.getStaffId()).collect(Collectors.toList());
if(CollectionUtils.isNotEmpty(staffIdList)) {
List<String> relationIdList = this.staffClerkRelationService
.listRelationsStaffId(new HashSet<>(staffIdList));
dtoList.forEach(one -> {
one.setClerkRelationFlag(relationIdList.contains(one.getStaffId()) ? 1 : 0);
});
}
}
// 原群主
if (qdto.getStatus() == 2) {
Map<String, TabHaobanStaff> staffMap = this.getStaffMap(wxEnterpriseId, dtoList, 1);
......
......@@ -255,7 +255,7 @@
<foreach collection="staffIdList" item="item" separator="," open="(" close=")">
#{item}
</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 id="listMemberStaffRelNew" resultType="com.gic.haoban.manage.service.entity.ext.MemberStaffRelExtDO">
......
......@@ -176,6 +176,7 @@ public class GroupChatHmController {
String chats = this.getGroupChatName(wxEnterpriseId, delIdList) ;
if(StringUtils.isNotBlank(chats)) {
o = "删除可加入群聊【" + chats + "】";
content.append(o);
}
}
String p = null ;
......@@ -186,6 +187,7 @@ public class GroupChatHmController {
String chats = this.getGroupChatName(wxEnterpriseId, newIdList) ;
if(StringUtils.isNotBlank(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