1
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ActivityDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ActivityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ActivityEntity" id="activityMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ActivityEntity" id="activityMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="activityName" column="activity_name" />
|
||||
<result property="activityType" column="activity_type" />
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.AuthorDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.AuthorDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.AuthorEntity" id="authorMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.AuthorEntity" id="authorMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="authorName" column="author_name"/>
|
||||
<result property="sex" column="sex"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBrowseRecordsDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookBrowseRecordsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBrowseRecordsEntity" id="bookBrowseRecordsMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookBrowseRecordsEntity" id="bookBrowseRecordsMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBuyConfigDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookBuyConfigDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBuyConfigEntity" id="bookBuyConfigMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookBuyConfigEntity" id="bookBuyConfigMap">
|
||||
<result property="priceTypeId" column="price_type_id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="qudao" column="qudao"/>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinCommentDao">
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookCategoryEntity" id="categoryEntity">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookCategoryEntity" id="categoryEntity">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="bookCid" column="book_cid"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterContentDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookChapterContentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterContentEntity" id="bookChapterContentMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookChapterContentEntity" id="bookChapterContentMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookChatperId" column="book_chatper_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookChapterDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterEntity" id="bookChapterMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookChapterEntity" id="bookChapterMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="chapter" column="chapter"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookEntity" id="bookMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookEntity" id="bookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="authorId" column="author_id"/>
|
||||
@@ -37,7 +37,7 @@
|
||||
<result property="clockIn" column="clock_in"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryBookInOther" resultType="com.peanut.modules.book.entity.BookEntity">
|
||||
<select id="queryBookInOther" resultType="com.peanut.modules.common.entity.BookEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumArticlesDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookForumArticlesDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumArticlesEntity" id="forumarticlesMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookForumArticlesEntity" id="forumarticlesMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="userid" column="userid" />
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumCommentDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookForumCommentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumCommentEntity" id="ForumCommentMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookForumCommentEntity" id="ForumCommentMap">
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookListeningDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookListeningDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookListeningEntity" id="bookListeningMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookListeningEntity" id="bookListeningMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookMedicalRecordsDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookMedicalRecordsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookMedicalRecordsEntity" id="bookMedicalRecordsMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookMedicalRecordsEntity" id="bookMedicalRecordsMap">
|
||||
<result property="medicalRecordsId" column="medical_records_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="title" column="title"/>
|
||||
@@ -14,7 +14,7 @@
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getBooks" parameterType="int" resultType="com.peanut.modules.book.entity.BookEntity">
|
||||
<select id="getBooks" parameterType="int" resultType="com.peanut.modules.common.entity.BookEntity">
|
||||
select b.* from book_medical_records bmr
|
||||
left join book b on bmr.book_id = b.id
|
||||
where bmr.book_id not in (select book_id from user_ebook_buy where user_id = #{userId})
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookReadRateDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookReadRateDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookReadRateEntity" id="bookReadRateMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookReadRateEntity" id="bookReadRateMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookShelfDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BookShelfDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookShelfEntity" id="bookShelfMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BookShelfEntity" id="bookShelfMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BuyOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrder" id="buyOrderMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BuyOrder" id="buyOrderMap">
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="orderSn" column="order_sn"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
@@ -37,7 +37,7 @@
|
||||
<result property="paymentDate" column="payment_date"/>
|
||||
|
||||
|
||||
<collection property="products" ofType="com.peanut.modules.book.entity.BuyOrderDetail">
|
||||
<collection property="products" ofType="com.peanut.modules.common.entity.BuyOrderDetail">
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="productName" column="product_name"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
<!-- </resultMap>-->
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrder">
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.common.entity.BuyOrder">
|
||||
select
|
||||
*,
|
||||
buy_order_detail.order_id,
|
||||
@@ -69,7 +69,7 @@
|
||||
and del_flag = 0
|
||||
</select>
|
||||
|
||||
<select id="orderStatusNum" resultType="com.peanut.modules.book.entity.BuyOrder">
|
||||
<select id="orderStatusNum" resultType="com.peanut.modules.common.entity.BuyOrder">
|
||||
select *,count(*) as statusNum
|
||||
from buy_order
|
||||
where
|
||||
@@ -116,7 +116,7 @@
|
||||
) t
|
||||
</select>
|
||||
|
||||
<select id="orderList" resultType="com.peanut.modules.book.entity.BuyOrder"
|
||||
<select id="orderList" resultType="com.peanut.modules.common.entity.BuyOrder"
|
||||
parameterType="com.peanut.modules.book.vo.request.BuyOrderListRequestVo" resultMap="buyOrderMap">
|
||||
select b.*
|
||||
from buy_order b
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDetailDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.BuyOrderDetailDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrderDetail" id="buyOrderDetailMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.BuyOrderDetail" id="buyOrderDetailMap">
|
||||
<result property="allOrderId" column="all_order_id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
@@ -29,7 +29,7 @@
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderDetail">
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.common.entity.BuyOrderDetail">
|
||||
select
|
||||
*
|
||||
from buy_order_detail
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CityDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.CityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.City" id="cityMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.City" id="cityMap">
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CountyDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.CountyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.County" id="countyMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.County" id="countyMap">
|
||||
<result property="countyId" column="county_id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="countyName" column="county_name"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.CouponDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponEntity" id="couponMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.CouponEntity" id="couponMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponType" column="coupon_type" />
|
||||
<result property="couponName" column="coupon_name" />
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponHistoryDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.CouponHistoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="memberId" column="member_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponProductCategoryRelationDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.CouponProductCategoryRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponProductCategoryRelationEntity" id="couponProductCategoryRelationMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.CouponProductCategoryRelationEntity" id="couponProductCategoryRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="productCategoryId" column="product_category_id"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ExpressCompanyDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ExpressCompanyDao">
|
||||
<select id="getExpressCompanyList" resultType="com.peanut.modules.book.vo.ExpressCompanyVo">
|
||||
select name as expressName, code as expressCode
|
||||
from express_company
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ExpressFeeDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ExpressFeeDao">
|
||||
|
||||
</mapper>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ExpressOrderDao">
|
||||
<insert id="insertNewExpressOrder" keyProperty="id" parameterType="com.peanut.modules.book.entity.ExpressFee"
|
||||
<mapper namespace="com.peanut.modules.common.dao.ExpressOrderDao">
|
||||
<insert id="insertNewExpressOrder" keyProperty="id" parameterType="com.peanut.modules.common.entity.ExpressFee"
|
||||
useGeneratedKeys="true">
|
||||
insert into express_order(user_id, user_address_id, express_fee, create_time, total_weight)
|
||||
values (#{userId}, #{userAddressId}, #{expressFee}, #{createTime}, #{totalWeight})
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.MyUserDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.MyUserDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.MyUserEntity" id="userMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.MyUserEntity" id="userMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="age" column="age"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.OrderCartDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.OrderCartDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.OrderCartEntity" id="orderCartMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.OrderCartEntity" id="orderCartMap">
|
||||
<result property="cartId" column="cart_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="getDeteleOrderCart" resultType="com.peanut.modules.book.entity.OrderCartEntity">
|
||||
<select id="getDeteleOrderCart" resultType="com.peanut.modules.common.entity.OrderCartEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayIOSOrderDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.PayIOSOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.pay.IOSPay.model.entities.IosPayOrderEntity" id="PayIOSOrderMap">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayPaymentOrderDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.PayPaymentOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayPaymentOrderEntity" id="payPaymentOrderMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.PayPaymentOrderEntity" id="payPaymentOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="rechargeAmount" column="recharge_amount"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayWechatOrderDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.PayWechatOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayWechatOrderEntity" id="payWechatOrderMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.PayWechatOrderEntity" id="payWechatOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="prepayId" column="prepay_id"/>
|
||||
<result property="customerId" column="customer_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayZfbOrderDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.PayZfbOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayZfbOrderEntity" id="payZfbOrderMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.PayZfbOrderEntity" id="payZfbOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="customerid" column="customerId"/>
|
||||
<result property="outTradeNo" column="out_trade_no"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ProvinceDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ProvinceDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.Province" id="provinceMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.Province" id="provinceMap">
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="provName" column="prov_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PublisherDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.PublisherDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.Publisher" id="publisherMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.Publisher" id="publisherMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="publisherName" column="publisher_name"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.SeckillProdRelationDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.SeckillProdRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.SeckillProdRelationEntity" id="seckillProdRelationMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.SeckillProdRelationEntity" id="seckillProdRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="promotionId" column="promotion_id"/>
|
||||
<result property="promotionSeckillId" column="promotion_seckill_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopCategoryDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopCategoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopCategoryEntity" id="shopCategoryMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopCategoryEntity" id="shopCategoryMap">
|
||||
<result property="catId" column="cat_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="parentCid" column="parent_cid"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductBookDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopProductBookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductBookEntity" id="ProductBookMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopProductBookEntity" id="ProductBookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopProductDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProduct" id="shopProductMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopProduct" id="shopProductMap">
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productName" column="product_name"/>
|
||||
<result property="price" column="price"/>
|
||||
@@ -36,7 +36,7 @@
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="appGetCategoryList" resultType="com.peanut.modules.book.entity.ShopProduct">
|
||||
<select id="appGetCategoryList" resultType="com.peanut.modules.common.entity.ShopProduct">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductLabelDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopProductLabelDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductLabelEntity" id="ProductLabelMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopProductLabelEntity" id="ProductLabelMap">
|
||||
<result property="splId" column="spl_id"/>
|
||||
<result property="labelName" column="label_name"/>
|
||||
<result property="ctime" column="ctime"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductToLabelDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopProductToLabelDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductToLabelEntity" id="ProductToLabelMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopProductToLabelEntity" id="ProductToLabelMap">
|
||||
<result property="ptlId" column="ptl_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="splId" column="spl_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopSeckillDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.ShopSeckillDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopSeckillEntity" id="shopSeckillMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.ShopSeckillEntity" id="shopSeckillMap">
|
||||
<result property="seckillId" column="seckill_id"/>
|
||||
<result property="nam" column="nam"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.TransactionDetailsDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.TransactionDetailsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.TransactionDetailsEntity" id="transactionDetailsMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.TransactionDetailsEntity" id="transactionDetailsMap">
|
||||
<result property="transactionId" column="transaction_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="orderType" column="order_type"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserAddressDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.UserAddressDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserAddress" id="userAddressMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.UserAddress" id="userAddressMap">
|
||||
<result property="addressid" column="addressId"/>
|
||||
<result property="userid" column="userId"/>
|
||||
<result property="username" column="userName"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserEbookBuyDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.UserEbookBuyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserEbookBuyEntity" id="userEbookBuyMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.UserEbookBuyEntity" id="userEbookBuyMap">
|
||||
<result property="buyId" column="buy_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFeedbackDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.UserFeedbackDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFeedbackEntity" id="UserFeedbackMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.UserFeedbackEntity" id="UserFeedbackMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="fuid" column="fu_id"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFollowUpDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.UserFollowUpDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFollowUpEntity" id="UserFollowUpMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.UserFollowUpEntity" id="UserFollowUpMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="oid" column="oid"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserRecordDao">
|
||||
<mapper namespace="com.peanut.modules.common.dao.UserRecordDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserRecord" id="UserRecordMap">
|
||||
<resultMap type="com.peanut.modules.common.entity.UserRecord" id="UserRecordMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="createDate" column="createDate"/>
|
||||
<result property="type" column="type"/>
|
||||
|
||||
Reference in New Issue
Block a user