| | |
| | | <select id="selectUserTopicsPage" resultMap="userTopicsResultMap"> |
| | | SELECT |
| | | jut.article_id, |
| | | jut.signature_path, |
| | | bu.avatar, |
| | | bu.`name`, |
| | | bu.phone, |
| | |
| | | jda.aoi_name |
| | | FROM |
| | | jczz_user_topics as jut |
| | | LEFT JOIN blade_user bu ON jut.user_id = bu.id |
| | | LEFT JOIN jczz_household jh ON jh.associated_user_id = jut.user_id |
| | | LEFT JOIN blade_user bu ON jut.user_id = bu.id AND bu.is_deleted = 0 |
| | | LEFT JOIN jczz_household jh ON jh.associated_user_id = jut.user_id AND jh.is_deleted = 0 |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jh.house_code |
| | | <where> |
| | | <if test="userTopics.id != null ">and jut.id = #{userTopics.id}</if> |
| | |
| | | <if test="userTopics.updateTime != null ">and jut.update_time = #{userTopics.updateTime}</if> |
| | | <if test="userTopics.deleteFlag != null ">and jut.delete_flag = #{userTopics.deleteFlag}</if> |
| | | <if test="userTopics.articleId != null ">and jut.article_id = #{userTopics.articleId} |
| | | GROUP BY jut.article_id, |
| | | GROUP BY jut.article_id, jut.signature_path, |
| | | bu.avatar, |
| | | bu.`name`, |
| | | bu.phone, |