From 25c40344055ff5f688df2f5b566ef3eb8bf73709 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期六, 09 十一月 2024 20:56:49 +0800 Subject: [PATCH] 1.我的订单-打印:修改成支付时间查询 --- src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml b/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml index bb03787..31cde27 100644 --- a/src/main/resources/mapper/comment/FlowerCommentMapperCustom.xml +++ b/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} @@ -53,7 +61,21 @@ and c.show_flag = #{param.showFlag} </if> - + <if test="param.orderNo != null and param.orderNo != ''"> + and o.order_no like concat('%', #{param.orderNo}, '%') + </if> + <if test="param.flowerName != null and param.flowerName != ''"> + and oi.flower_name like concat('%', #{param.flowerName}, '%') + </if> + <if test="param.commentGrade != null"> + and c.comment_grade = #{param.commentGrade} + </if> + <if test="param.commentStartDate != null"> + and DATE_FORMAT(c.create_time, '%Y-%m-%d') >= #{param.commentStartDate} + </if> + <if test="param.commentEndDate != null"> + and DATE_FORMAT(c.create_time, '%Y-%m-%d') <= #{param.commentEndDate} + </if> order by c.create_time desc -- Gitblit v1.9.3