| | |
| | | jpd.signature_flag, |
| | | GROUP_CONCAT(jh.name) userName |
| | | from jczz_public_discuss jpd |
| | | LEFT JOIN jczz_household jh on jpd.user_ids like CONCAT('%',jh.associated_user_id,'%') |
| | | LEFT JOIN jczz_household jh ON FIND_IN_SET ( jh.id, jpd.user_ids ) |
| | | <where> |
| | | <if test="publicDiscuss.id != null "> and id = #{publicDiscuss.id}</if> |
| | | <if test="publicDiscuss.title != null and publicDiscuss.title != ''"> and title = #{publicDiscuss.title}</if> |
| | |
| | | jpd.user_ids, |
| | | jpd.event_type, |
| | | jpd.signature_flag, |
| | | (SELECT user_id from jczz_user_public_enroll where user_id = #{userId} and article_id = jpd.article_id)userId |
| | | (SELECT household_id from jczz_user_public_enroll where household_id = #{householdId} and article_id = jpd.article_id)householdId |
| | | from |
| | | jczz_public_discuss jpd |
| | | <where> |