flow
This commit is contained in:
@@ -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>-->
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user