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}, '%')