linwei
2024-01-31 b3b566ebdfed4005aaa513da3d5d2fd3924903cc
src/main/java/org/springblade/modules/discuss/mapper/UserPublicEnrollMapper.xml
@@ -34,6 +34,7 @@
        jup.create_time,
        jup.update_time,
        jup.deleted_flag,
        jup.signature_path,
        bu.avatar,
        bu.`name`,
        bu.phone,
@@ -42,7 +43,9 @@
        FROM
        jczz_user_public_enroll jup
        LEFT JOIN blade_user bu ON jup.user_id = bu.id
        AND bu.is_deleted = 0
        LEFT JOIN jczz_household jh ON jh.associated_user_id = jup.user_id
        AND jh.is_deleted = 0
        LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jh.house_code
        <where>
        <if test="userPublicEnroll.id != null "> and jup.id = #{userPublicEnroll.id}</if>
@@ -51,6 +54,7 @@
        <if test="userPublicEnroll.createTime != null "> and jup.create_time = #{userPublicEnroll.createTime}</if>
        <if test="userPublicEnroll.updateTime != null "> and jup.update_time = #{userPublicEnroll.updateTime}</if>
        <if test="userPublicEnroll.deletedFlag != null "> and jup.deleted_flag = #{userPublicEnroll.deletedFlag}</if>
        <if test="userPublicEnroll.articleId != null ">and jup.article_id = #{userPublicEnroll.articleId}</if>
    </where>
    </select>