1
This commit is contained in:
18
src/main/java/com/peanut/modules/common/dao/ActivityDao.java
Normal file
18
src/main/java/com/peanut/modules/common/dao/ActivityDao.java
Normal 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> {
|
||||
|
||||
|
||||
}
|
||||
17
src/main/java/com/peanut/modules/common/dao/AuthorDao.java
Normal file
17
src/main/java/com/peanut/modules/common/dao/AuthorDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
10
src/main/java/com/peanut/modules/common/dao/BaseAreaDao.java
Normal file
10
src/main/java/com/peanut/modules/common/dao/BaseAreaDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
30
src/main/java/com/peanut/modules/common/dao/BookDao.java
Normal file
30
src/main/java/com/peanut/modules/common/dao/BookDao.java
Normal 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);
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
24
src/main/java/com/peanut/modules/common/dao/BuyOrderDao.java
Normal file
24
src/main/java/com/peanut/modules/common/dao/BuyOrderDao.java
Normal 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);
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
17
src/main/java/com/peanut/modules/common/dao/CityDao.java
Normal file
17
src/main/java/com/peanut/modules/common/dao/CityDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
17
src/main/java/com/peanut/modules/common/dao/CountyDao.java
Normal file
17
src/main/java/com/peanut/modules/common/dao/CountyDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
17
src/main/java/com/peanut/modules/common/dao/CouponDao.java
Normal file
17
src/main/java/com/peanut/modules/common/dao/CouponDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
18
src/main/java/com/peanut/modules/common/dao/MyUserDao.java
Normal file
18
src/main/java/com/peanut/modules/common/dao/MyUserDao.java
Normal 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> {
|
||||
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
|
||||
}
|
||||
10
src/main/java/com/peanut/modules/common/dao/PointDao.java
Normal file
10
src/main/java/com/peanut/modules/common/dao/PointDao.java
Normal 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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
17
src/main/java/com/peanut/modules/common/dao/ProvinceDao.java
Normal file
17
src/main/java/com/peanut/modules/common/dao/ProvinceDao.java
Normal 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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user