This commit is contained in:
wangjinlei
2024-03-15 10:19:03 +08:00
parent 0c740d33a0
commit 3cef570c97
388 changed files with 657 additions and 783 deletions

View File

@@ -0,0 +1,18 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.ActivityEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface ActivityDao extends MPJBaseMapper<ActivityEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.AuthorEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 作者表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Mapper
public interface AuthorDao extends MPJBaseMapper<AuthorEntity> {
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BaseAreaEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BaseAreaDao extends MPJBaseMapper<BaseAreaEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookBrowseRecordsEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 阅读记录
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface BookBrowseRecordsDao extends MPJBaseMapper<BookBrowseRecordsEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookBuyConfigEntity;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-17 14:54:08
*/
@Mapper
public interface BookBuyConfigDao extends MPJBaseMapper<BookBuyConfigEntity> {
}

View File

@@ -0,0 +1,15 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookCategoryDao extends MPJBaseMapper<BookCategoryEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookChapterContentEntity;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-16 14:32:06
*/
@Mapper
public interface BookChapterContentDao extends MPJBaseMapper<BookChapterContentEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookChapterEntity;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-12 09:53:25
*/
@Mapper
public interface BookChapterDao extends MPJBaseMapper<BookChapterEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookClockEntryChat;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookClockEntryChatDao extends MPJBaseMapper<BookClockEntryChat> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookClockEntryEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookClockEntryDao extends MPJBaseMapper<BookClockEntryEntity> {
}

View File

@@ -0,0 +1,30 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* 图书表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Mapper
public interface BookDao extends MPJBaseMapper<BookEntity> {
List<BookEntity> queryBookInOther(String publisherName,String authorName);
@Select("select t.* from book t left join user_ebook_buy t1 on t.id = t1.book_id ${ew.customSqlSegment} limit #{start},#{limit}")
List<BookEntity> queryUserListenBooksNobuy(@Param("ew") QueryWrapper<BookEntity> wrapper,@Param("start") int start,@Param("limit") int limit);
@Select("select count(*) as sum from book t left join user_ebook_buy t1 on t.id = t1.book_id ${ew.customSqlSegment}")
Integer queryUserListenBooksNobuyCount(@Param("ew") QueryWrapper<BookEntity> wrapper);
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookForumArticlesEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookForumArticlesDao extends MPJBaseMapper<BookForumArticlesEntity> {
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.BookForumCommentEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookForumCommentDao extends BaseMapper<BookForumCommentEntity> {
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.BookListeningEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookListeningDao extends BaseMapper<BookListeningEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.BookListeningShelfEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookListeningShelfDao extends BaseMapper<BookListeningShelfEntity> {
}

View File

@@ -0,0 +1,19 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookEntity;
import com.peanut.modules.common.entity.BookMedicalRecordsEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BookMedicalRecordsDao extends MPJBaseMapper<BookMedicalRecordsEntity> {
List<BookEntity> getBooks(Integer page,Integer limit,Integer userId);
int getCount(Integer userId);
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.BookReadRateEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 阅读进度表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface BookReadRateDao extends BaseMapper<BookReadRateEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.BookShelfEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 书架表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface BookShelfDao extends BaseMapper<BookShelfEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookTeachCommentEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookTeachCommentDao extends MPJBaseMapper<BookTeachCommentEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookTeachEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookTeachDao extends MPJBaseMapper<BookTeachEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BookTeachLikeEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BookTeachLikeDao extends MPJBaseMapper<BookTeachLikeEntity> {
}

View File

@@ -0,0 +1,24 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.BuyOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.book.vo.request.BuyOrderListRequestVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface BuyOrderDao extends BaseMapper<BuyOrder> {
List<BuyOrder> orderList(BuyOrderListRequestVo requestVo);
int orderListCount(BuyOrderListRequestVo requestVo);
List<BuyOrder> orderStatusNum(Integer userId);
}

View File

@@ -0,0 +1,21 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.BuyOrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 商品订单详情表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface BuyOrderDetailDao extends BaseMapper<BuyOrderDetail> {
public List<BuyOrderDetail> queryListByOrderIds(Integer[] ids);
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.BuyOrderProduct;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface BuyOrderProductDao extends MPJBaseMapper<BuyOrderProduct> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.City;
import org.apache.ibatis.annotations.Mapper;
/**
* 市
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Mapper
public interface CityDao extends BaseMapper<City> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.County;
import org.apache.ibatis.annotations.Mapper;
/**
* 县/区
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Mapper
public interface CountyDao extends BaseMapper<County> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.CouponEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Mapper
public interface CouponDao extends BaseMapper<CouponEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.CouponHistoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Mapper
public interface CouponHistoryDao extends BaseMapper<CouponHistoryEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.CouponProductCategoryRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Mapper
public interface CouponProductCategoryRelationDao extends BaseMapper<CouponProductCategoryRelationEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.CouponProductRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Mapper
public interface CouponProductRelationDao extends BaseMapper<CouponProductRelationEntity> {
}

View File

@@ -0,0 +1,18 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.ExpressCompany;
import com.peanut.modules.book.vo.ExpressCompanyVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @Description: 快递公司持久层接口
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Mapper
public interface ExpressCompanyDao extends BaseMapper<ExpressCompany> {
List<ExpressCompanyVo> getExpressCompanyList();
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.ExpressFee;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ExpressFeeDao extends BaseMapper<ExpressFee> {
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.ExpressOrder;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ExpressOrderDao extends BaseMapper<ExpressOrder> {
int insertNewExpressOrder(ExpressOrder expressOrder);
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicaldesBook;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicaldesBookDao extends MPJBaseMapper<MedicaldesBook> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicaldesInherit;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicaldesInheritDao extends MPJBaseMapper<MedicaldesInherit> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicaldesInheritRelation;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicaldesInheritRelationDao extends MPJBaseMapper<MedicaldesInheritRelation> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicaldesLight;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicaldesLightDao extends MPJBaseMapper<MedicaldesLight> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicinalDrug;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicinalDrugDao extends MPJBaseMapper<MedicinalDrug> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.MedicinalMaterials;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MedicinalMaterialsDao extends MPJBaseMapper<MedicinalMaterials> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.Meridians;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MeridiansDao extends MPJBaseMapper<Meridians> {
}

View File

@@ -0,0 +1,18 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.MyUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-10 14:20:12
*/
@Mapper
public interface MyUserDao extends BaseMapper<MyUserEntity> {
}

View File

@@ -0,0 +1,19 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.OrderCartEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 购物车
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface OrderCartDao extends BaseMapper<OrderCartEntity> {
OrderCartEntity getDeteleOrderCart(Integer userId,Integer productId);
}

View File

@@ -0,0 +1,13 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.pay.IOSPay.model.entities.IosPayOrderEntity;
import org.apache.ibatis.annotations.Mapper;
/*
* 内购订单表
* */
@Mapper
public interface PayIOSOrderDao extends BaseMapper<IosPayOrderEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.PayPaymentOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 充值订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface PayPaymentOrderDao extends BaseMapper<PayPaymentOrderEntity> {
}

View File

@@ -0,0 +1,19 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.PayWechatOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 微信订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Repository
@Mapper
public interface PayWechatOrderDao extends BaseMapper<PayWechatOrderEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.PayZfbOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 支付宝订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Mapper
public interface PayZfbOrderDao extends BaseMapper<PayZfbOrderEntity> {
}

View File

@@ -0,0 +1,11 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.PointCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PointCategoryDao extends MPJBaseMapper<PointCategoryEntity> {
}

View File

@@ -0,0 +1,10 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.PointEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PointDao extends MPJBaseMapper<PointEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.PrescriptCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PrescriptCategoryDao extends MPJBaseMapper<PrescriptCategoryEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.PrescriptEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PrescriptDao extends MPJBaseMapper<PrescriptEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.Province;
import org.apache.ibatis.annotations.Mapper;
/**
* 省
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Mapper
public interface ProvinceDao extends BaseMapper<Province> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.Publisher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 出版商表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Mapper
public interface PublisherDao extends BaseMapper<Publisher> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.SeckillProdRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 秒杀商品表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 11:24:05
*/
@Mapper
public interface SeckillProdRelationDao extends BaseMapper<SeckillProdRelationEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.ShopCategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品三级分类
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-30 15:06:20
*/
@Mapper
public interface ShopCategoryDao extends BaseMapper<ShopCategoryEntity> {
}

View File

@@ -0,0 +1,13 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.ShopProductBookEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface ShopProductBookDao extends MPJBaseMapper<ShopProductBookEntity> {
List<Integer> getOrderBookId(String orderSn);
}

View File

@@ -0,0 +1,23 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.ShopProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 商品表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 09:43:14
*/
@Mapper
public interface ShopProductDao extends BaseMapper<ShopProduct> {
List<ShopProduct> appGetCategoryList(Integer catId);
int getTotalWeight(List<Integer> productIdList);
}

View File

@@ -0,0 +1,13 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.ShopProductLabelEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ShopProductLabelDao extends MPJBaseMapper<ShopProductLabelEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.ShopProductToLabelEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ShopProductToLabelDao extends MPJBaseMapper<ShopProductToLabelEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.ShopSeckillEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 秒杀库存表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 11:24:05
*/
@Mapper
public interface ShopSeckillDao extends BaseMapper<ShopSeckillEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.TransactionDetailsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 交易明细
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:47:50
*/
@Mapper
public interface TransactionDetailsDao extends BaseMapper<TransactionDetailsEntity> {
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.dao;
import com.peanut.modules.common.entity.UserAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-31 11:20:32
*/
@Mapper
public interface UserAddressDao extends BaseMapper<UserAddress> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.UserBookClockEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserBookClockDao extends MPJBaseMapper<UserBookClockEntity> {
}

View File

@@ -0,0 +1,20 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.UserEbookBuyEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 用户购买书籍表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-18 16:28:20
*/
@Mapper
public interface UserEbookBuyDao extends MPJBaseMapper<UserEbookBuyEntity> {
List<Integer> getUserBookId(Integer userId);
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.UserFeedbackEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserFeedbackDao extends BaseMapper<UserFeedbackEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.UserFollowUpEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserFollowUpDao extends BaseMapper<UserFollowUpEntity> {
}

View File

@@ -0,0 +1,12 @@
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.common.entity.UserRecord;
import org.apache.ibatis.annotations.Mapper;
//书籍评价表
@Mapper
public interface UserRecordDao extends BaseMapper<UserRecord> {
}