From de8f44f06397edd0e3887e7d829431c9d4b0be0b Mon Sep 17 00:00:00 2001 From: MichaelWin Date: Tue, 27 Jan 2026 17:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/service/impl/BizProductCategroyServiceImpl.java | 2 -- src/main/resources/mapper/BizProductCategoryMapper.xml | 2 +- src/main/resources/mapper/BizProductMapper.xml | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/corewing/app/service/impl/BizProductCategroyServiceImpl.java b/src/main/java/com/corewing/app/service/impl/BizProductCategroyServiceImpl.java index 9255c64..c05c70a 100644 --- a/src/main/java/com/corewing/app/service/impl/BizProductCategroyServiceImpl.java +++ b/src/main/java/com/corewing/app/service/impl/BizProductCategroyServiceImpl.java @@ -1,6 +1,5 @@ package com.corewing.app.service.impl; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.corewing.app.dto.website.ProductCategoryRequest; @@ -10,7 +9,6 @@ import com.corewing.app.entity.BizProductCategory; import com.corewing.app.mapper.BizProductCategoryMapper; import com.corewing.app.service.BizProductCategoryService; import com.corewing.app.service.BizProductService; -import com.google.gson.internal.LinkedTreeMap; import org.springframework.stereotype.Service; import javax.annotation.Resource; diff --git a/src/main/resources/mapper/BizProductCategoryMapper.xml b/src/main/resources/mapper/BizProductCategoryMapper.xml index b52aec3..931f5fc 100644 --- a/src/main/resources/mapper/BizProductCategoryMapper.xml +++ b/src/main/resources/mapper/BizProductCategoryMapper.xml @@ -14,7 +14,7 @@ - pc.category_title like CONCAT('%', #{productCategoryRequest.searchKey}, '%') + and pc.category_title like CONCAT('%', #{productCategoryRequest.searchKey}, '%') diff --git a/src/main/resources/mapper/BizProductMapper.xml b/src/main/resources/mapper/BizProductMapper.xml index 83ee398..310286c 100644 --- a/src/main/resources/mapper/BizProductMapper.xml +++ b/src/main/resources/mapper/BizProductMapper.xml @@ -15,11 +15,11 @@ - pcr.category_id = #{productPageRequest.categoryId} + and pcr.category_id = #{productPageRequest.categoryId} - p.title like CONCAT('%', #{productPageRequest.searchKey}, '%') + and p.title like CONCAT('%', #{productPageRequest.searchKey}, '%')