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>