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

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