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}