From d1f26741bddf6f512d62c0100d42c52be8d37e76 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 06 二月 2021 15:35:40 +0800 Subject: [PATCH] 工具类优化 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/shop/BanLiShopGoodsSetsMapper.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/shop/BanLiShopGoodsSetsMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/shop/BanLiShopGoodsSetsMapper.java index 404c978..f0c35fc 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/shop/BanLiShopGoodsSetsMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/shop/BanLiShopGoodsSetsMapper.java @@ -2,6 +2,8 @@ import java.util.List; +import org.apache.ibatis.annotations.Param; + import com.yeshi.fanli.dao.BaseMapper; import com.yeshi.fanli.entity.shop.BanLiShopGoodsSets; @@ -14,4 +16,26 @@ long countByGoodsId(Long goodsId); List<BanLiShopGoodsSets> listByGoodsId(Long goodsId); + + + /** + * 鍒楄〃鏌ヨ + * + * @param key + * @param state + * @param start + * @param count + * @return + */ + List<BanLiShopGoodsSets> listQuery(@Param("start") long start, @Param("count") int count, + @Param("key") String key, @Param("goodsId")Long goodsId); + + /** + * 璁℃暟 + * + * @param key + * @param state + * @return + */ + long countQuery(@Param("key") String key, @Param("goodsId")Long goodsId); } \ No newline at end of file -- Gitblit v1.8.0