| | |
| | | appoint_user, |
| | | user_ids, |
| | | event_type, |
| | | (SELECT count(1) FROM jczz_user_public_enroll where public_discuss_id = id) enrollCount, |
| | | (SELECT count(1) FROM jczz_user_topics where public_discuss_id = id) topsCount |
| | | from jczz_public_discuss |
| | | (SELECT count(1) FROM jczz_user_public_enroll where public_discuss_id = jpd.id) enrollCount, |
| | | (SELECT count(1) from (SELECT * FROM jczz_user_topics WHERE public_discuss_id = jpd.id GROUP BY user_id ) a) topsCount |
| | | from jczz_public_discuss jpd |
| | | <where> |
| | | <if test="publicDiscuss.id != null "> and id = #{publicDiscuss.id}</if> |
| | | <if test="publicDiscuss.title != null and publicDiscuss.title != ''"> and title = #{publicDiscuss.title}</if> |