refactor project
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<mapper namespace="com.peanut.modules.book.dao.PublisherDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PublisherEntity" id="publisherMap">
|
||||
<resultMap type="com.peanut.modules.book.entity.Publisher" id="publisherMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="publisherName" column="publisher_name"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductEntity" id="shopProductMap">
|
||||
<resultMap type="com.peanut.modules.book.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.ShopProductEntity">
|
||||
<select id="appGetCategoryList" resultType="com.peanut.modules.book.entity.ShopProduct">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user