陶杰
2024-10-09 00df7f384ee12747096e1211133a304ccc10b3f6
src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml
@@ -24,12 +24,20 @@
            oi.flower_level,
            oi.flower_category,
            ci.name as customer_name,
            ci.cover as customer_cover
            ci.cover as customer_cover,
            o.order_no,
            sui.name as supplier_name,
            sui.contact_name as supplier_contact_name,
            sui.contact_tel as supplier_contact_tel
        from t_flower_comment c
        left join t_order_item oi
        on c.order_item_id=oi.id
        left join t_order o
        on c.order_id=o.id
        left join t_customer_info ci
        on c.customer_id=ci.id
        left join t_supplier_info sui
        on c.supplier_id =sui.id
        where c.deleted=false
        <if test="param.id != null and param.id != ''">
            and c.id = #{param.id}