From 54ad0ac05b3d35a1b34cff60c035a616c50be8ee Mon Sep 17 00:00:00 2001 From: litianxiang Date: Fri, 29 May 2026 10:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E4=B8=8D=E5=85=A8=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/OrderItemMapper.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/OrderItemMapper.xml b/src/main/resources/mapper/OrderItemMapper.xml index c5ba755..e13b2d5 100644 --- a/src/main/resources/mapper/OrderItemMapper.xml +++ b/src/main/resources/mapper/OrderItemMapper.xml @@ -17,9 +17,11 @@ AND so.buyer_id = #{dto.buyerId} AND so.status = 1 - - AND JSON_CONTAINS(soi.product_category, #{cat}) + AND ( + + JSON_CONTAINS(soi.product_category, #{cat}) + ) AND l.design_for = #{dto.designFor} @@ -38,9 +40,11 @@ AND so.buyer_id = #{dto.buyerId} AND so.status = 1 - - AND JSON_CONTAINS(soi.product_category, #{cat}) + AND ( + + JSON_CONTAINS(soi.product_category, #{cat}) + ) AND l.design_for = #{dto.designFor}