wangming há 1 mês atrás
pai
commit
dabab74aa9

+ 2 - 2
yami-shop-delivery/yami-shop-delivery-comment/src/main/java/com/yami/shop/delivery/comment/dao/Transport2Mapper.java

@@ -13,7 +13,7 @@ package com.yami.shop.delivery.comment.dao;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.yami.shop.bean.model.Transport2;
 import com.yami.shop.bean.model.Transport2;
-import com.yami.shop.common.util.PageAdapter;
+import com.yami.shop.common.util.PageParam;
 import com.yami.shop.delivery.comment.param.ShopTransport;
 import com.yami.shop.delivery.comment.param.ShopTransport;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Param;
 
 
@@ -34,6 +34,6 @@ public interface Transport2Mapper extends BaseMapper<Transport2> {
 
 
     Transport2 findByPlatform(Long platform);
     Transport2 findByPlatform(Long platform);
 
 
-    IPage<Transport2> transport2List(PageAdapter pageAdapter);
+    IPage<Transport2> transport2List(@Param("page") PageParam<Transport2> page);
 
 
 }
 }

+ 1 - 2
yami-shop-delivery/yami-shop-delivery-comment/src/main/java/com/yami/shop/delivery/comment/service/impl/Transport2ServiceImpl.java

@@ -13,7 +13,6 @@ package com.yami.shop.delivery.comment.service.impl;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.yami.shop.bean.model.Transport2;
 import com.yami.shop.bean.model.Transport2;
-import com.yami.shop.common.util.PageAdapter;
 import com.yami.shop.common.util.PageParam;
 import com.yami.shop.common.util.PageParam;
 import com.yami.shop.delivery.comment.dao.Transport2Mapper;
 import com.yami.shop.delivery.comment.dao.Transport2Mapper;
 import com.yami.shop.delivery.comment.param.ShopTransport;
 import com.yami.shop.delivery.comment.param.ShopTransport;
@@ -105,6 +104,6 @@ public class Transport2ServiceImpl extends ServiceImpl<Transport2Mapper, Transpo
 
 
     @Override
     @Override
     public IPage<Transport2> transport2List(PageParam<Transport2> page) {
     public IPage<Transport2> transport2List(PageParam<Transport2> page) {
-        return  transportMapper.transport2List(new PageAdapter(page));
+        return  transportMapper.transport2List(page);
     }
     }
 }
 }

+ 0 - 1
yami-shop-delivery/yami-shop-delivery-comment/src/main/resources/mapper/Transport2Mapper.xml

@@ -92,7 +92,6 @@
         SELECT *
         SELECT *
         FROM tz_transport2
         FROM tz_transport2
         WHERE !ISNULL(channel_id)
         WHERE !ISNULL(channel_id)
-        LIMIT #{begin} , #{size}
     </select>
     </select>
 
 
 </mapper>
 </mapper>