From e9a7a2052fce82df9b5c093f189946bae532c19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com> Date: Tue, 8 Dec 2020 20:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=99=9A=E6=8B=9F=E9=94=80?= =?UTF-8?q?=E9=87=8F=20=E5=AF=BC=E8=87=B4=E5=95=86=E5=93=81=20=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E6=95=B0=E9=87=8F=E6=8E=92=E5=BA=8F=20=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E4=B9=B1=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/service/mapper/StoreProductMapper.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yshop-mall/src/main/java/co/yixiang/modules/product/service/mapper/StoreProductMapper.java b/yshop-mall/src/main/java/co/yixiang/modules/product/service/mapper/StoreProductMapper.java index 57a51b34..d9831da6 100644 --- a/yshop-mall/src/main/java/co/yixiang/modules/product/service/mapper/StoreProductMapper.java +++ b/yshop-mall/src/main/java/co/yixiang/modules/product/service/mapper/StoreProductMapper.java @@ -10,8 +10,12 @@ package co.yixiang.modules.product.service.mapper; import co.yixiang.common.mapper.CoreMapper; import co.yixiang.modules.product.domain.YxStoreProduct; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.Constants; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org.springframework.stereotype.Repository; @@ -100,4 +104,9 @@ public interface StoreProductMapper extends CoreMapper { @Delete("DELETE from yx_system_attachment where name like CONCAT(#{id},'_%',#{name}, '%')") void deleteForwardImg(@Param("id") Long id,@Param("name") String name); + + + @Override + @Select("SELECT id,spec_type,ot_price,mer_use,description,is_postage,is_sub,is_best,(sales+ficti) as sales,price,is_bargain,vip_price,store_name,stock,keyword,image,cost,is_good,unit_name,is_benefit,update_time,give_integral,is_new,sort,slider_image,is_show,bar_code,postage,code_path,create_time,cate_id,is_seckill,mer_id,temp_id,ficti,store_info,is_del,is_hot,browse FROM yx_store_product ${ew.customSqlSegment}") + IPage selectPage(IPage page, @Param(Constants.WRAPPER) Wrapper queryWrapper); }