xiaoyong931011
2023-07-28 1af6c4c935d3ee880c61a5ab067a9b4196d2a796
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -431,4 +431,29 @@
        </if>
        order by id desc
    </select>
    <select id="getMallRollHouseListInPage" resultType="cc.mrbird.febs.mall.entity.MallMemberHouse">
        select
               a.*,
               b.name,
               b.phone
        from mall_member_house a
        left join mall_member b on a.member_id = b.id
        <where>
            <if test="record.state != null and record.state != ''">
                and a.state = #{record.state}
            </if>
            <if test="record.orderNo != null and record.orderNo != ''">
                and a.order_no = #{record.orderNo}
            </if>
            <if test="record.name != null and record.name != ''">
                and b.name = #{record.name}
            </if>
            <if test="record.phone != null and record.phone != ''">
                and b.phone = #{record.phone}
            </if>
        </where>
        order by id desc
    </select>
</mapper>