luoyuanqiao
2022-03-02 893f8cffb39a6c728d231f0f63895388e9a21ae1
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/UserDao.xml
@@ -533,4 +533,17 @@
        WHERE user_id = #{userId} AND community_id = #{communityId}
    </select>
    <select id="countSocialWorker" resultType="integer">
        select count(id) from com_act_social_worker where telephone = #{phone} and community_id = #{communityId}
    </select>
    <select id="countSocialOrg" resultType="Integer">
        select count(id) from com_act_social_org where user_id = #{userId}
    </select>
    <select id="countFmsMember" resultType="integer">
        SELECT COUNT(id) FROM com_fms_team_member
        WHERE phone = #{phone} AND community_id = #{communityId}
    </select>
</mapper>