|
@@ -13,6 +13,7 @@
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
|
|
<result column="updater" property="updater" jdbcType="BIGINT"/>
|
|
|
<result column="goods_id" property="goodsId" jdbcType="BIGINT"/>
|
|
|
+ <result column="order_id" property="orderId" jdbcType="BIGINT"/>
|
|
|
<result column="goods_name" property="goodsName" jdbcType="VARCHAR"/>
|
|
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
|
|
<association property="merchant" javaType="com.chelvc.cloud.vehicle.client.dto.MerchantDTO">
|
|
@@ -28,7 +29,7 @@
|
|
|
|
|
|
<select id="listUserReservations" resultMap="RESERVATION_RESULT_MAP">
|
|
|
select rn.id,rn.user_id,rn.merchant_id,rn.mobile,rn.appoint_time,rn.status, mt.name, mt.logo, mt.score,
|
|
|
- mt.sale, mt.address,rn.goods_id,rn.goods_name
|
|
|
+ mt.sale, mt.address,rn.goods_id,rn.goods_name,rn.order_id
|
|
|
from reservation rn
|
|
|
inner join merchant mt on merchant_id = mt.id and mt.status = 'ONLINE'
|
|
|
where rn.user_id = #{userId}
|