中扬CRM客户关系管理系统
#
LSH
2023-11-09 58673ca240945a1d3719b4429119570817944b40
src/main/resources/mapper/PriOnline2Mapper.xml
@@ -75,4 +75,36 @@
        ORDER BY id DESC
    </select>
    <select id="listByAll" resultMap="NoDataResultMap">
        SELECT
        *
        FROM man_pri_online2 mp
        WHERE 1=1
        and
            mp.id in
            (
            select
            pri_online2_id
            from man_pri_online2_foll
            where 1=1
            and user_id = #{userId}
            )
        ORDER BY id DESC
    </select>
    <select id="listByAllTotal" resultType="java.lang.Integer">
        SELECT
        count (1)
        FROM man_pri_online2 mp
        WHERE 1=1
        and
            mp.id in
            (
            select
            pri_online2_id
            from man_pri_online2_foll
            where 1=1
            and user_id = #{userId}
            )
    </select>
</mapper>