|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.tzy.mapper.LotOrderMapper">
|
|
|
- <resultMap id="lotOrderResultMap" type="lotOrder">
|
|
|
+ <resultMap id="lotOrderResultMap" type="com.tzy.entity.LotOrder">
|
|
|
<id column="id" property="id"/>
|
|
|
<result column="order_no" property="orderNo"/>
|
|
|
<result column="auction_name" property="auctionName"/>
|
|
|
@@ -19,7 +19,7 @@
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
<result column="pay_time" property="payTime"/>
|
|
|
</resultMap>
|
|
|
- <select id="selectLotOrder" resultMap="lotOrderResultMap" parameterType="lotOrder">
|
|
|
+ <select id="selectLotOrder" resultMap="lotOrderResultMap" parameterType="com.tzy.entity.LotOrder">
|
|
|
select id,order_no,auction_name,lot_name,user_id,status,payment_amount,merchant_id,shipping_address_id,express_id,lot_id,auction_id,create_time,pay_time from lot_order_info
|
|
|
<where>
|
|
|
|
|
|
@@ -35,18 +35,18 @@
|
|
|
</where>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
- <select id="selectLotOrderById" resultType="lotOrder">
|
|
|
+ <select id="selectLotOrderById" resultType="com.tzy.entity.LotOrder">
|
|
|
select id,order_no,auction_name,lot_name,user_id,status,payment_amount,merchant_id,shipping_address_id,express_id,lot_id,auction_id,create_time,pay_time from lot_order_info
|
|
|
where id=#{id}
|
|
|
</select>
|
|
|
- <select id="countLotOrderByLotId" parameterType="lotOrder" resultType="int">
|
|
|
+ <select id="countLotOrderByLotId" parameterType="com.tzy.entity.LotOrder" resultType="int">
|
|
|
select count(*) from lot_order_info where lot_id=#{lotId}
|
|
|
</select>
|
|
|
<insert id="insertLotOrder">
|
|
|
insert into lot_order_info (order_no,auction_name,lot_name,user_id,status,payment_amount,merchant_id,shipping_address_id,express_id,lot_id,auction_id,create_time,pay_time)
|
|
|
values (#{orderNo},#{auctionName},#{lotName},#{userId},#{status},#{paymentAmount},#{merchantId},#{shippingAddressId},#{expressId},#{lotId},#{auctionId},#{createTime},#{payTime})
|
|
|
</insert>
|
|
|
- <update id="updateLotOrderAddress" parameterType="lotOrder">
|
|
|
+ <update id="updateLotOrderAddress" parameterType="com.tzy.entity.LotOrder">
|
|
|
update lot_order_info set shipping_address_id=#{shippingAddressId},shipping_address=#{shippingAddress},shipping_address_likename=#{shippingAddressLinkname},shipping_address_phone=#{shippingAddressPhone}
|
|
|
where id=#{id}
|
|
|
</update>
|