Commit 85243ab8 by 徐高华

历任群主

parent 1124ea0a
......@@ -584,8 +584,17 @@ public class GroupChatServiceImpl implements GroupChatService {
}
@Override
public List<GroupChatOwnerHistoryDTO> listOwnerHistory(Long groupChatId , String WxEnterpriseId) {
List<GroupChatOwnerHistoryDTO> list = this.groupChatOwnerHistoryMapper.listAll(groupChatId,WxEnterpriseId);
public List<GroupChatOwnerHistoryDTO> listOwnerHistory(Long groupChatId, String WxEnterpriseId) {
TabGroupChat chat = this.groupChatMapper.selectById(groupChatId);
if (null == chat || org.apache.commons.lang3.StringUtils.isEmpty(chat.getStaffId())) {
return null;
}
List<GroupChatOwnerHistoryDTO> list = this.groupChatOwnerHistoryMapper.listAll(groupChatId, WxEnterpriseId);
for (GroupChatOwnerHistoryDTO item : list) {
if (chat.getStaffId().equals(item.getStaffId())) {
item.setEndTime(null);
}
}
return list;
}
}
\ No newline at end of file
......@@ -49,6 +49,6 @@
<select id="listAll" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatOwnerHistoryDTO">
select a.staff_id staffId , b.staff_name staffName , a.create_time createTime , a.end_time endTime from tab_haoban_group_chat_owner_history a LEFT JOIN tab_haoban_staff b on a.staff_id = b.staff_id
where a.group_chat_id=#{groupChatId} and a.wx_enterprise_id=#{wxEnterpriseId}
where a.group_chat_id=#{groupChatId} and a.wx_enterprise_id=#{wxEnterpriseId} order by a.create_time desc
</select>
</mapper>
\ No newline at end of file
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