From af085dd2fdea97c66ed9520f31754e1025d9dc02 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期二, 10 十二月 2024 16:06:58 +0800 Subject: [PATCH] 582-在售商品可以直接进行删除,需要进行优化,在售商品删除提示无法删除,需要先进行下架再进行删除 --- src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml index e16fb0b..50062c8 100644 --- a/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml +++ b/src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml @@ -16,7 +16,7 @@ join t_flower_markup_sp sp on sp.flower_id = f.id and sp.partner_id = #{partnerId} left join t_supplier_info s on s.id = f.supplier_id left join t_flower_category c on f.category = c.id - WHERE f.deleted = 0 AND sp.fee > 0 + WHERE f.deleted = 0 <if test="condition.name != null and condition.name != ''"> AND f.name LIKE concat('%', #{condition.name},'%') </if> @@ -33,6 +33,9 @@ ) ) </if> + <if test="condition.supplierName != null and condition.supplierName != ''"> + AND s.name LIKE concat('%', #{condition.supplierName},'%') + </if> <if test="condition.isFee != null"> <choose> <when test="condition.isFee == 'markup'"> -- Gitblit v1.9.3