Merge remote-tracking branch 'origin/test' into test
| | |
| | | </select> |
| | | <select id="getIndexTopActivityList" resultMap="BaseResultMap"> |
| | | SELECT * FROM `com_act_activity` |
| | | WHERE community_id = #{communityId} and is_top = 1 and end_at >= now() and begin_at <= now() |
| | | WHERE community_id = #{communityId} and is_top = 1 and sign_up_end >= now() and sign_up_begin <= now() |
| | | </select> |
| | | </mapper> |
| | |
| | | <if test='pageComActDiscussDTO.loginUserId != null '> |
| | | LEFT JOIN com_act_discuss_option_user ou ON do.id=ou.discuss_option_id AND ou.user_id=#{pageComActDiscussDTO.loginUserId} |
| | | </if> |
| | | WHERE d.community_id=#{pageComActDiscussDTO.communityId} AND d.is_del = 2 |
| | | WHERE d.community_id=#{pageComActDiscussDTO.communityId} AND d.is_del = 2 AND d.status != 1 |
| | | <if test='pageComActDiscussDTO.type != null '> |
| | | AND d.`type` = #{pageComActDiscussDTO.type} |
| | | </if> |
| | |
| | | su.image_url |
| | | FROM `com_act_discuss_option_user` cadou |
| | | LEFT JOIN `sys_user` su ON cadou.user_id = su.user_id |
| | | WHERE cadou.discuss_id = #{discussId} limit 6 |
| | | WHERE cadou.discuss_id = #{discussId} GROUP BY cadou.user_id limit 6 |
| | | </select> |
| | | <select id="selectVotedPersonNum" resultType="java.lang.Integer"> |
| | | SELECT COUNT(DISTINCT `user_id`) |