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> {
}

View File

@@ -0,0 +1,40 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 活动实体
*/
@Data
@TableName("sys_activity")
public class ActivityCouponEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 关联活动ID
*/
private Integer activityId;
/**
* 关联优惠券Id
*/
private Integer couponId;
/**
* 关联商品Id
*/
private Integer productId;
}

View File

@@ -0,0 +1,99 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 活动实体
*/
@Data
@TableName("sys_activity")
public class ActivityEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 活动名称
*/
private String activityName;
/**
* 活动类型 0长期活动1短期活动
*/
private String activityType;
/**
* 活动方式
* 0注册
* 1购物
* 2充值
* 3会员卡
* 4一路健康推广
*/
private String activityManner;
/**
* 活动内容
* 0购买商品
* 1满N送券
* 2满N减N
*/
private String activityContent;
/**
* 积分
*/
private Integer point;
/**
* 时效
*/
private String validity;
/**
* 活动开始时间
*/
private Date beginTime;
/**
* 活动结束时间
*/
private Date endTime;
/**
* 活动封面地址
*/
private String activityUrl;
/**
* 当前状态 0全部1生效2已过期
*/
private String currentState;
/**
* 备注
*/
private String remark;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
/**
* 活动,商品,优惠券,集合
*/
private List<ActivityCouponEntity> activityCouponList;
}

View File

@@ -0,0 +1,70 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 作者表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Data
@TableName("author")
public class AuthorEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 作者姓名
*/
private String authorName;
/**
* 性别
*/
private Integer sex;
/**
* 年龄
*/
private Integer age;
/**
* 简介
*/
private String introduction;
/**
* 电话
*/
private String tel;
/**
* 住址
*/
private String address;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 排序
*/
private Integer sort;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,25 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
@Data
@TableName("base_area")
public class BaseAreaEntity implements Serializable {
@TableId(type = IdType.AUTO)
private Integer areaId;
private String title;
private String code;
@TableLogic
private int delFlag;
}

View File

@@ -0,0 +1,77 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 阅读记录
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_browse_records")
public class BookBrowseRecordsEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 用户id
*/
private Integer userId;
/**
* 图书id
*/
private Integer bookId;
/**
* 图书名称
*/
private String bookName;
/**
* 章节id
*/
@TableField(exist = false)
private Integer chapterId;
/**
* 章节名称
*/
@TableField(exist = false)
private String chapterName;
/**
* num
*/
@TableField(exist = false)
private Integer chapterNum;
/**
* 图片
*/
private String images;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
* 排序
*/
private Integer sort;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,52 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-17 14:54:08
*/
@Data
@TableName("book_buy_config")
public class BookBuyConfigEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer priceTypeId;
/**
* 类型
*/
private String type;
/**
* 渠道
*/
private String qudao;
/**
* 真实价格
*/
private String realMoney;
/**
* 金额
*/
private String money;
/**
* vip开通月份
*/
private String month;
/**
* 充值名称
*/
private String description;
}

View File

@@ -0,0 +1,70 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.util.List;
/**
* 图书二级分类
*
*/
@Data
@TableName("book_category")
public class BookCategoryEntity {
/**
* 分类id
*/
@TableId
private Integer id;
/**
* 分类名称
*/
@TableField("name")
private String name;
/**
* 父分类id
*/
@TableField("book_cid")
private Integer bookCid;
/**
* 层级
*/
@TableField("book_level")
private Integer bookLevel;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
/**
* 排序
*/
@TableField("sort")
private Integer sort;
/**
* 商品数量
*/
@TableField("book_count")
private Integer bookCount;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableField(exist = false)
private List<BookCategoryEntity> children;
}

View File

@@ -0,0 +1,76 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-16 14:32:06
*/
@Data
@TableName("book_chapter_content")
public class BookChapterContentEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
*
*/
private Integer bookId;
/**
*
*/
private Integer bookChatperId;
/**
*
*/
private Integer number;
/**
*
*/
private String content;
/**
*
*/
private String voices;
private String otherContent;
/**
*
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
@TableField(exist = false)
private String picAndWord;
/**
*
*/
private Integer sort;
/**
*
*/
private Integer level;
/**
*
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,77 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* 章节表
* @author yl
* @email yl328572838@163.com
* @date 2022-08-12 09:53:25
*/
@Data
@TableName("book_chapter")
public class BookChapterEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 图书id
*/
private Integer bookId;
/**
* 章节号
*/
private Integer number;
/**
* 章节
*/
private String chapter;
/**
* 内容
*/
private String content;
/**
* 音频文件地址
*/
private String voices;
/**
*
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 0免费1限制
*/
private Integer sort;
/**
*
*/
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private Integer isFree;
@TableField(exist = false)
private String bookImage;
@TableField(exist = false)
private String picAndWord;
}

View File

@@ -0,0 +1,44 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("book_clock_entry_chat")
public class BookClockEntryChat implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
private Integer entryId;
private Integer userId;
//子对话开启的层数
private Integer fid;
//回复于某人id
@TableField("p_user_id")
private Integer puserId;
private String content;
@TableField("p_chat_id")
private Integer pchatId;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private List<String> imageList;
private String images;
}

View File

@@ -0,0 +1,36 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@TableName("book_clock_entry")
public class BookClockEntryEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
private Integer bookId;
private String title;
private String image;
private String video;
private String content;
private Date createTime;
private Integer day;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,200 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
* 图书表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Data
@TableName("book")
public class BookEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 书名
*/
private String name;
/**
* 作者id
*/
private String authorId;
/**
* 简介
*/
private String description;
/**
* 序言
*/
private String title;
/**
* 秒杀
*/
private Integer isSale;
/**
* 付费类型
*/
@TableField("isVip")
private Integer isVip;
@TableField("teach_in")
private Integer teachIn;
/**
* 免费章节数
*/
private Integer freeChapterCount;
/**
* 内容
*/
private String content;
/**
* 类型
*/
private String type;
/**
* 图书类型 0普通 1中医经典 2国学经典
*/
private Integer bookType;
/**
* 价格
*/
private BigDecimal price;
/**
* 价格
*/
private BigDecimal salePrice;
/**
* 是否加入书架
*/
@TableField(exist = false)
private boolean flag;
/**
* 置顶
*/
private Integer istop;
/**
* 出版商id
*/
private String publisherId;
/**
* 插图
*/
private String images;
/**
* 插图 多图
*/
private String imagesList;
/**
* 父id
*/
private Integer pid;
private Integer relationId;
/**
* 层级
*/
private String level;
/**
* 章节处理状态 0-未处理 1-处理中 2-成功 3-失败
*/
private String chapterStatus;
/**
* 内容处理状态 0-未处理 1-处理中 2-成功 3-失败
*/
private String contentStatus;
/**
* 音频处理状态 0-未处理 1-处理中 2-成功 3-失败
*/
private String voicesStatus;
/**
* 1为标题拆分2为小节拆分
*/
private String splits;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新日期
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 排序
*/
private Integer sort;
private Integer state;
private String novel;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private String publisherName;
@TableField(exist = false)
private AuthorEntity author;
@TableField(exist = false)
private Publisher publisher;
@TableField(exist = false)
private String authorName;
@TableField(exist = false)
private Integer chapterId;
@TableField(exist = false)
private String chapterName;
@TableField(exist = false)
private Integer chapterNum;
@TableField(exist = false)
private Boolean isBuy;
@TableField(exist = false)
private List<BookForumArticlesEntity> forums;
@TableField(exist = false)
private Integer forumNum;
@TableField("can_listen")
private Boolean canListen;
@TableField(exist = false)
private Integer productId;
private Integer clockIn;
/**
* 图书类型 中医经典 中医基础 各家学说 中医临床 文学 哲学
*/
@TableField(exist = false)
private String medicaldesBookType;
}

View File

@@ -0,0 +1,109 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* 文章表主表
*
*/
@Data
@TableName("book_forum_articles")
public class BookForumArticlesEntity {
/**
* id
*/
@TableId
private Integer id;
/**
*标题
*/
@TableField("title")
private String title;
/**
*用户id
*/
@TableField("userid")
private Integer userid;
/**
*内容
*/
@TableField("content")
private String content;
/**
*图片
*/
@TableField("image")
private String image;
/**
*多图
*/
@TableField("imagelist")
private String imagelist;
/**
*图书id
*/
@TableField("bookid")
private Integer bookid;
@TableField("finework")
private Integer finework;
/**
*开始时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解;
private Date updateTime;
/**
* 点赞数
*/
@TableField("contlike")
private Integer contlike;
@TableField("del_flag")
@TableLogic
private Integer delflag;
@TableField("author")
private String author;
@TableField("publishername")
private String publishername;
@TableField("bookdesc")
private String bookdesc;
@TableField(exist = false)
private String bookimage;
@TableField(exist = false)
private String bookname;
@TableField(exist = false)
private String bookauthor;
@TableField(exist = false)
private List<BookForumCommentEntity> comment;
@TableField(exist = false)
private Integer commentNum;
//说话的人
@TableField(exist = false)
private MyUserEntity user;
}

View File

@@ -0,0 +1,85 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* 评价文章表
*
*/
@Data
@TableName("book_forum_comment")
public class BookForumCommentEntity {
/**
* id
*/
@TableId
private Integer id;
/**
*文章父id
*/
@TableField("bfa_id")
private Integer bfaid;
/**
*用户评论id
*/
@TableField("userid")
private Integer userid;
@TableField("puserid")
private Integer puserid;
@TableField("pid")
private Integer pid;
/**
*内容
*/
@TableField("content")
private String content;
/**
*图片
*/
@TableField("image")
private String image;
/**
*开始时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
*修改时间
*/
@TableField(fill = FieldFill.UPDATE)
private Date updateTime;
@TableField("contlike")
private Integer contlike;
/**
* 删除
*/
@TableField("del_flag")
@TableLogic
private Integer delflag;
@TableField("book_id")
private Integer bookid;
//发言者
@TableField(exist = false)
private MyUserEntity user;
//对谁说
@TableField(exist = false)
private MyUserEntity puser;
//子对话
@TableField(exist = false)
private List<BookForumCommentEntity> comments;
//子对话数量
@TableField(exist = false)
private Integer commentsNum;
}

View File

@@ -0,0 +1,74 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 听书进度表
*
*/
@Data
@TableName("book_listening")
public class BookListeningEntity implements Serializable {
/**
*
*/
@TableId
private Integer id;
/**
* 用户id
*/
@TableField("user_id")
private Integer userId;
/**
* 图书id
*/
@TableField("book_id")
private Integer bookId;
/**
* 章节id
*/
@TableField("chapter_id")
private Integer chapterId;
/**
* 章节名称
*/
@TableField("chapter_name")
private String chapterName;
/**
* 章节百分比
*/
@TableField("precent")
private Integer precent;
/**
* 章节内容id
*/
@TableField("content_id")
private Integer contentId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
*
*/
private Integer sort;
/**
*
*/
private String delFlag;
}

View File

@@ -0,0 +1,51 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("book_listening_shelf")
public class BookListeningShelfEntity {
@TableId
private Integer id;
/**
* 图书
*/
@TableField("book_id")
private Integer bookid;
/**
* 用户id
*/
@TableField("user_id")
private Integer userid;
/**
* 图书名称
*/
@TableField("book_name")
private Integer bookname;
/**
* 删除标记
*/
@TableField("del_flag")
private Integer delflag;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
}

View File

@@ -0,0 +1,47 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 医案实体
*/
@Data
@TableName("book_medical_records")
public class BookMedicalRecordsEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer medicalRecordsId;
/**
* 图书id
*/
private Integer bookId;
/**
* 标题
*/
private String title;
/**
* 内容
*/
private String content;
/**
* 排序
*/
private Integer sort;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,119 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 阅读进度表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_read_rate")
public class BookReadRateEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 用户id
*/
private Integer userId;
/**
* 图书id
*/
private Integer bookId;
/**
* 章节id
*/
private Integer chapterId;
/**
* 章节名称
*/
private String chapterName;
/**
* 章节百分比
*/
private Integer precent;
/**
* 章节内容id
*/
private Integer contentId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
*
*/
private Integer sort;
/**
*
*/
private Integer delFlag;
/**
* dom的Dep 用来存前端传来上下定位的
*/
private String domDep;
/**
* dom的Value 用来存前端传来上下定位的
*/
private String domValue;
/**
* dom的domVmCount 用来存前端传来上下定位的
*/
private Integer domVmCount;
/**
* 阅读ID
*/
private String domId;
/**
* 与底部的距离
*/
private Integer bottomGap;
/**
* 高度
*/
private Integer heightGap;
/**
* 与左边的距离
*/
private Integer leftGap;
/**
*与右边的距离
*/
private Integer rightGap;
/**
*与头部的距离
*/
private Integer topGap;
/**
* 宽度
*/
private Integer widthGap;
}

View File

@@ -0,0 +1,58 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 书架表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_shelf")
public class BookShelfEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
*
*/
private Integer bookId;
/**
* 书名
*/
private String bookName;
/**
*
*/
private Integer userId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
*
*/
private Integer sort;
/**
*
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,41 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
@TableName("book_teach_comment")
public class BookTeachCommentEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("id")
private Integer id;
@TableField("parent_id")
private Integer parentId;
@TableField(exist = false)
private List<BookTeachCommentEntity> comments;
@TableField("user_id")
private Integer userId;
@TableField(exist = false)
private MyUserEntity user;
@TableField("teach_id")
private Integer teachId;
private String content;
@TableField("create_time")
private Date createTime;
@TableField("del_flag")
private Integer delFlag;
}

View File

@@ -0,0 +1,45 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("book_teach")
public class BookTeachEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("teach_id")
private Integer teachId;
@TableField("book_id")
private Integer bookId;
private String title;
private Integer chapter;
private String voices;
private String images;
private String video;
private String content;
@TableField("create_time")
private Date createTime;
@TableField("del_flag")
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,26 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("book_teach_like")
public class BookTeachLikeEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("id")
private Integer id;
@TableField("user_id")
private Integer userId;
@TableField("teach_id")
private Integer teachId;
@TableField("del_flag")
private Integer delFlag;
}

View File

@@ -0,0 +1,192 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.peanut.modules.book.vo.response.ConsigneeVo;
import lombok.Data;
/**
* 订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("buy_order")
public class BuyOrder implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer orderId;
/**
* 订单编号
*/
private String orderSn;
/**
* 下单人ID
*/
private Integer userId;
/**
* 下单人姓名
*/
@TableField(exist = false)
private String userName;
@TableField(exist = false)
private Integer statusNum;
/**
* 收货人姓名
*/
@TableField("shipping_user")
private String shippingUser;
/**
* 收货人手机号
*/
private String userPhone;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 区
*/
private String district;
/**
* 地址
*/
private String address;
/**
* 支付方式 1微信2支付宝3ios内购 4虚拟币
*/
private String paymentMethod;
/**
* 订单金额
*/
private BigDecimal orderMoney;
/**
* 优惠金额
*/
private BigDecimal districtMoney;
/**
* 实收金额
*/
private BigDecimal realMoney;
/**
* 运费
*/
private BigDecimal shippingMoney;
/**
* 物流公司名称
*/
private String shippingCompName;
/**
* 物流单号
*/
private String shippingSn;
/**
* 下单时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 发货时间
*/
private Date shippingTime;
/**
* 订单状态
* 0: 待付款
* 1: 待发货
* 2: 已发货
* 3已完成
* 4: 交易失败
* 5: 已过期
*/
private String orderStatus;
/**
* 交易成功时间
*/
private Date successTime;
/**
* 优惠券Id
*/
private Integer couponId;
/**
* 优惠券名称
*/
private String couponName;
@TableLogic
private Integer delFlag;
// TODO 新版本上线后删除该属性
@TableField(exist = false)
private List<BuyOrderDetail> products;
@TableField(exist = false)
private List<BuyOrderProduct> productList;
@TableField(exist = false)
private String buyType;
/**
* vip order point
*/
private String orderType;
/**
* 快递单号
*/
private String expNo;
/**
* 是否存在发货的商品 0不存在1已存在
*/
private String isSend;
/**
* 地址id
*/
private Integer addressId;
/**
* 订单备注
*/
private String remark;
/**
* 快递鸟订单编号
*/
private String orderCode;
/**
* 支付时间
*/
private Date paymentDate;
@TableField("product_id")
private String productId;
@TableField("record_id")
private Integer recordId;
@TableField(exist = false)
private Long timestamp;
@TableField(exist = false)
private MyUserEntity user;
@TableField(exist = false)
private List<ExpressOrder> expressList;
private int addressModified;
@TableField(exist = false)
private ConsigneeVo consigneeVo;
}

View File

@@ -0,0 +1,103 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 商品订单详情表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
* @modified Cauchy
* @date 2023-10-07 13:06:00
*/
@Data
@TableName("buy_order_detail")
public class BuyOrderDetail implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 订单详情id
*/
@TableId
private Long id;
/**
* 订单表id
*/
private Integer orderId;
/**
* 用户id
*/
private Integer userId;
/**
* 商品id
*/
private Integer productId;
/**
* 商品名称
*/
private String productName;
/**
* 商品数量
*/
private Integer quantity;
/**
* 商品单价
*/
private BigDecimal productPrice;
/**
* 商品重量
*/
private BigDecimal weight;
/**
* 商品类型
*/
private String productType;
/**
* 订单状态 0-待支付 1-待发货 2-待收货
*/
private String orderStatus;
/**
* 备注
*/
private String remark;
/**
* 下单时间
*/
@TableField(fill = FieldFill.INSERT)
private Date creatTime;
/**
* 图片
*/
@TableField(exist = false)
private String image;
/**
* 面单html
*/
private String expressBillTemplate;
/**
* 商品图片地址
*/
private String productUrl;
/**
* 评价 ID
*/
private Integer recordId;
/**
* 快递单号
*/
private String expressBillNo;
/**
* 快递公司编码
*/
private String expressCompanyCode;
}

View File

@@ -0,0 +1,58 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
/**
* @Description: 订单-商品
* @Author: Cauchy
* @CreateTime: 2023/10/19
*/
@Data
@TableName("buy_order_product")
public class BuyOrderProduct {
/**
* 主键 ID
*/
private int id;
/**
* 订单 ID
*/
private int orderId;
/**
* 商品 ID
*/
private int productId;
/**
* 商品数量
*/
private int quantity;
/**
* 商品价格
*/
private BigDecimal realPrice;
/**
* 快递订单 ID
*/
private int expressOrderId;
/**
* 评价 ID
*/
private int recordId;
/**
* 删除标识
*/
private int delFlag;
/**
* 发货标识
*/
private int shipped;
@TableField(exist = false)
private ShopProduct product;
@TableField(exist = false)
private ExpressOrder expressOrder;
}

View File

@@ -0,0 +1,50 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
* 市
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Data
@TableName("base_city")
public class City implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Long cityId;
/**
* 所属省
*/
private Long provId;
/**
* 城市名称
*/
private String cityName;
/**
*
*/
private Date createDate;
/**
* 区域编码
*/
private String regionCode;
@TableField(exist = false)
private List<County> countyList;
}

View File

@@ -0,0 +1,48 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 县/区
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Data
@TableName("base_county")
public class County implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Long countyId;
/**
*
*/
private Long cityId;
/**
* 县/区名称
*/
private String countyName;
/**
*
*/
private Date createDate;
/**
* 区域编码
*/
private String regionCode;
}

View File

@@ -0,0 +1,108 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon")
public class CouponEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券类型 0现金1折扣
*/
private Integer couponType;
/**
* 优惠券名称
*/
private String couponName;
/**
* 优惠券面额
*/
private BigDecimal couponAmount;
/**
* 优惠券封面图
*/
private String couponUrl;
/**
* 每人限领
*/
private Integer limitedCollar;
/**
* 时效
*/
private String validity;
/**
* 生效方式 0领取日生效 1 设置生效日期
*/
private Integer takeEffectType;
/**
* 生效日期
*/
private Date takeEffectDate;
/**
* 截止日期
*/
private Date expirationDate;
/**
* 总发行数量
*/
public Integer totalCirculation;
/**
* 当前状态 0全部1生效2已过期
*/
private String currentState;
/**
* 备注
*/
private String remark;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
/**
* 商品类型 0: 商品 1电子书
*/
private Integer couponProType;
/**
* 使用门槛
*/
private Integer useLevel;
}

View File

@@ -0,0 +1,80 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_history")
public class CouponHistoryEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 会员id
*/
private Long memberId;
/**
* 订单id
*/
private Long orderId;
/**
* 优惠券码
*/
private String couponCode;
/**
* 领取人昵称
*/
private String memberNickname;
/**
* 获取类型0->后台赠送1->主动获取
*/
private Integer getType;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 使用状态0->未使用1->已使用2->已过期
*/
private Integer useStatus;
/**
* 使用时间
*/
private Date useTime;
/**
* 订单号码
*/
private String orderSn;
@TableField(exist = false)
private String couponName;
/**
* 商品类型 0: 商品 1电子书
*/
private Integer couponProType;
}

View File

@@ -0,0 +1,44 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_product_category_relation")
public class CouponProductCategoryRelationEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 商品分类id
*/
private Long productCategoryId;
/**
* 商品分类名称
*/
private String productCategoryName;
/**
* 父分类名称
*/
private String parentCategoryName;
}

View File

@@ -0,0 +1,44 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_product_relation")
public class CouponProductRelationEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 商品id
*/
private Long productId;
/**
* 商品名称
*/
private String productName;
/**
* 商品条码
*/
private String productSn;
}

View File

@@ -0,0 +1,40 @@
package com.peanut.modules.common.entity;
import lombok.Data;
/**
* @Description: 货品 Value Object
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
public class ExpressCommodity {
/**
* 商品名称
*/
private String GoodsName;
/**
* 商品编码
*/
private String GoodsCode;
/**
* 商品数量
*/
private Integer Goodsquantity;
/**
* 商品价格
*/
private Double GoodsPrice;
/**
* 商品重量
*/
private Double GoodsWeight;
/**
* 商品描述
*/
private String GoodsDesc;
/**
* 商品体积
*/
private Double GoodsVol;
}

View File

@@ -0,0 +1,37 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 快递公司实体类
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
@TableName("express_company")
public class ExpressCompany implements Serializable {
/**
* ID
*/
private int id;
/**
* 快递公司名称
*/
private String name;
/**
* 快递公司编码
*/
private String code;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识
*/
private int delFlag;
}

View File

@@ -0,0 +1,46 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: 快递费实体类
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
@TableName("express_fee")
public class ExpressFee implements Serializable {
/**
* ID
*/
private int id;
/**
* 快递公司代码
*/
private String expressCode;
/**
* 目的地代码
*/
private String destCode;
/**
* 首重费用
*/
private BigDecimal firstWeightFee;
/**
* 续重
*/
private BigDecimal additionalWeightFee;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识
*/
private int delFlag;
}

Some files were not shown because too many files have changed in this diff Show More