This commit is contained in:
Cauchy
2023-10-17 16:27:26 +08:00
parent 99484c90e0
commit 8daf30493c
23 changed files with 149 additions and 149 deletions

View File

@@ -17,9 +17,9 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
url: jdbc:mysql://127.0.0.1:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
username: root
password: HSXY1234hsxy
password: password
initial-size: 10
max-active: 100
min-idle: 10

View File

@@ -77,7 +77,7 @@ spring.jackson.serialization.FAIL_ON_EMPTY_BEANS: false
express:
sender:
senderName: 众妙之门
mobile:
mobile: 17602219785
provinceName: 天津
cityName: 天津
expAreaName: 南开

View File

@@ -37,7 +37,7 @@
<result property="paymentDate" column="payment_date" />
<collection property="products" ofType="com.peanut.modules.book.entity.BuyOrderDetailEntity">
<collection property="products" ofType="com.peanut.modules.book.entity.BuyOrderDetail">
<result property="orderId" column="order_id" />
<result property="productName" column="product_name" />
<result property="quantity" column="quantity" />
@@ -47,7 +47,7 @@
</collection>
</resultMap>
<!-- <resultMap id="OrderDetailResult" type="com.peanut.modules.book.entity.BuyOrderDetailEntity">-->
<!-- <resultMap id="OrderDetailResult" type="com.peanut.modules.book.entity.BuyOrderDetail">-->
<!-- </resultMap>-->

View File

@@ -4,7 +4,7 @@
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDetailDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.peanut.modules.book.entity.BuyOrderDetailEntity" id="buyOrderDetailMap">
<resultMap type="com.peanut.modules.book.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.BuyOrderDetailEntity">
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderDetail">
select
*
from buy_order_detail

View File

@@ -3,6 +3,7 @@
<mapper namespace="com.peanut.modules.book.dao.ExpressCompanyDao">
<select id="getExpressCompanyList" resultType="com.peanut.modules.book.vo.ExpressCompanyVo">
select name, code from express_company
select name as expressName, code as expressCode
from express_company
</select>
</mapper>