Commit 386d55be by erqian

fix:修改堡狮龙群活码只展示带骑行名称的

parent 4f453dcf
......@@ -94,4 +94,13 @@ public interface GroupChatUserMapper {
List<TabGroupChatUser> getByUnionId(@Param("enterpriseId")String enterpriseId, @Param("unionid")String unionid);
List<Long> listByUnionIdAndChatHmId(@Param("enterpriseId")String enterpriseId, @Param("unionid")String unionid,@Param("chatHmIdList")List<Long> chatHmIdList);
/**
* 根据群活码名称获取会员加入的群数量
* @param enterpriseId
* @param memberId
* @param hmName
* @return
*/
int getMemberJoinChatGroupCountByHmName(@Param("enterpriseId")String enterpriseId, @Param("memberId")String memberId, @Param("hmName")String hmName);
}
\ No newline at end of file
......@@ -467,6 +467,6 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
@Override
public Integer memberJoinGroupChatHmCount(String enterpriseId, String memberId) {
return groupChatUserMapper.getByMember(enterpriseId, memberId).size();
return groupChatUserMapper.getMemberJoinChatGroupCountByHmName(enterpriseId, memberId, "骑行");
}
}
\ No newline at end of file
......@@ -364,5 +364,22 @@
and cu.unionid = #{unionid} and cu.status_flag = 1 and cu.delete_flag = 0
</select>
<select id="getMemberJoinChatGroupCountByHmName" resultType="java.lang.Integer">
select count(t2.group_chat_id)
from tab_haoban_group_chat_hm t1
inner join tab_haoban_group_chat_hm_relation t2 on t1.chat_hm_id = t2.chat_hm_id
inner join tab_haoban_group_chat_user t3 on t2.group_chat_id = t3.group_chat_id
where t2.status_flag = 1
and t2.delete_flag = 0
and t3.delete_flag = 0
and t3.status_flag = 1
and t1.status_flag = 1
and t1.delete_flag = 0
and t3.member_id is not null
and t3.enterprise_id = #{enterpriseId}
and t3.member_id = #{memberId}
and t1.name CONCAT('%',#{hmName},'%')
</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