|
|
|
@@ -138,7 +138,8 @@ |
|
|
|
co.type,co.cover_img,co.title,co.sub_title,co.sale_price,co.use_price,co.price,co.detail,co.remark, |
|
|
|
m.img_url,m.name,m.link_phone,m.status, |
|
|
|
s.addr,s.shop_number,s.baidu_poi, |
|
|
|
mb.building_name,mf.floor_name |
|
|
|
mb.building_name,mf.floor_name, |
|
|
|
c.id as coupon_order_id,c.coupon_order_status |
|
|
|
</sql> |
|
|
|
|
|
|
|
<resultMap id="CVoResultMap" type="com.simple.domain.vo.WxOrderCVo"> |
|
|
|
@@ -167,6 +168,9 @@ |
|
|
|
<result column="price" jdbcType="INTEGER" property="price" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
|
|
|
|
<result column="coupon_order_id" jdbcType="BIGINT" property="couponOrderId" /> |
|
|
|
<result column="coupon_order_status" jdbcType="INTEGER" property="couponOrderStatus" /> |
|
|
|
|
|
|
|
<result column="img_url" jdbcType="VARCHAR" property="merchantImgUrl" /> |
|
|
|
<result column="name" jdbcType="VARCHAR" property="merchantName" /> |
|
|
|
<result column="link_phone" jdbcType="VARCHAR" property="merchantLinkPhone" /> |
|
|
|
@@ -199,7 +203,8 @@ |
|
|
|
|
|
|
|
<select id="selectDetailOfCUser" parameterType="com.simple.domain.po.WxOrder" resultMap="CVoResultMap"> |
|
|
|
select <include refid="allCUserOrderDetailColumns" /> |
|
|
|
from wx_order o,wx_coupon co,wx_merchant m |
|
|
|
from (wx_order o,wx_coupon co,wx_merchant m) |
|
|
|
left join wx_coupon_order c on o.id = c.order_id |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id |
|
|
|
left join wx_shop s on ms.shop_id = s.id |
|
|
|
left join wx_mall_building mb on s.building = mb.id |
|
|
|
|