| | |
| | | <result property="voteRestrictions" column="vote_restrictions" /> |
| | | <result property="userRestrictions" column="user_restrictions" /> |
| | | <result property="endTime" column="end_time" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="articleId" column="article_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | |
| | | vote_restrictions, |
| | | user_restrictions, |
| | | end_time, |
| | | start_time, |
| | | article_id, |
| | | create_time, |
| | | update_time, |
| | |
| | | jpd.vote_restrictions, |
| | | jpd.user_restrictions, |
| | | jpd.end_time, |
| | | jpd.start_time, |
| | | jpd.article_id, |
| | | jpd.create_time, |
| | | jpd.update_time, |
| | |
| | | jpd.vote_number_public, |
| | | jpd.appoint_user, |
| | | jpd.user_ids, |
| | | jpd.event_type |
| | | jpd.event_type, |
| | | jpd.signature_flag, |
| | | GROUP_CONCAT(jh.name) userName |
| | | from jczz_public_discuss jpd |
| | | 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> |
| | |
| | | <if test="publicDiscuss.userIds != null and publicDiscuss.userIds != ''"> and user_ids = #{publicDiscuss.userIds}</if> |
| | | <if test="publicDiscuss.eventType != null "> and event_type = #{publicDiscuss.eventType}</if> |
| | | </where> |
| | | GROUP BY jpd.id |
| | | </select> |
| | | |
| | | <select id="selectPublicDiscussList" parameterType="org.springblade.modules.discuss.dto.PublicDiscussDTO" resultMap="publicDiscussResultMap"> |
| | |
| | | jpd.vote_restrictions, |
| | | jpd.user_restrictions, |
| | | jpd.end_time, |
| | | jpd.start_time, |
| | | jpd.article_id, |
| | | jpd.create_time, |
| | | jpd.update_time, |
| | |
| | | jpd.user_ids, |
| | | jpd.event_type, |
| | | jpd.signature_flag, |
| | | (SELECT user_id from jczz_user_public_enroll where user_id = #{userId} and public_discuss_id = jpd.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> |
| | | <if test="id != null "> and jpd.id = #{id}</if> |
| | | <if test="articleId != null ">and jpd.article_id = #{articleId}</if> |
| | | </where> |
| | | </select> |
| | | |