refactor project

This commit is contained in:
Cauchy
2023-10-19 15:04:31 +08:00
parent 19a2ef58a9
commit 1994ba60ae
35 changed files with 274 additions and 226 deletions

View File

@@ -3,9 +3,9 @@ spring:
redis:
open: false # 是否开启redis缓存 true开启 false关闭
database: 0
host: 39.106.36.183
host: 127.0.0.1
port: 6379
password: Jgll2015 # 密码(默认为空)
# password: Jgll2015 # 密码(默认为空)
timeout: 6000000ms # 连接超时时长(毫秒)
jedis:
pool:

View File

@@ -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"/>

View File

@@ -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