|
|
|
@@ -584,6 +584,40 @@ |
|
|
|
|
|
|
|
<result column="coupon_order_id" jdbcType="BIGINT" property="couponOrderId"/> |
|
|
|
<result column="coupon_order_status" jdbcType="INTEGER" property="couponOrderStatus"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap id="PressVoDetailResultMap" type="com.iformall.domain.vo.WxOrderCouponPressVo"> |
|
|
|
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id"/> |
|
|
|
<result column="order_number" jdbcType="BIGINT" property="orderNumber"/> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> |
|
|
|
<result column="c_user_id" jdbcType="BIGINT" property="cUserId"/> |
|
|
|
<result column="product_id" jdbcType="BIGINT" property="productId"/> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type"/> |
|
|
|
<result column="payment_type" jdbcType="INTEGER" property="paymentType"/> |
|
|
|
<result column="payment" jdbcType="INTEGER" property="payment"/> |
|
|
|
<result column="payment_time" jdbcType="TIMESTAMP" property="paymentTime"/> |
|
|
|
<result column="order_status" jdbcType="INTEGER" property="orderStatus"/> |
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> |
|
|
|
<result column="press_end_date" jdbcType="TIMESTAMP" property="pressEndDate"/> |
|
|
|
<result column="press_current_num" jdbcType="INTEGER" property="pressCurrentNum"/> |
|
|
|
<result column="press_current_value" jdbcType="INTEGER" property="pressCurrentValue"/> |
|
|
|
|
|
|
|
<result column="coupon_type" jdbcType="INTEGER" property="couponType"/> |
|
|
|
<result column="cover_img" jdbcType="VARCHAR" property="coverImg"/> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title"/> |
|
|
|
<result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> |
|
|
|
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/> |
|
|
|
<result column="use_price" jdbcType="INTEGER" property="usePrice"/> |
|
|
|
<result column="detail" jdbcType="VARCHAR" property="detail"/> |
|
|
|
<result column="price" jdbcType="INTEGER" property="price"/> |
|
|
|
<result column="unit" jdbcType="INTEGER" property="unit"/> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/> |
|
|
|
<result column="press_limit_num" jdbcType="INTEGER" property="pressLimitNum"/> |
|
|
|
|
|
|
|
<result column="coupon_order_id" jdbcType="BIGINT" property="couponOrderId"/> |
|
|
|
<result column="coupon_order_status" jdbcType="INTEGER" property="couponOrderStatus"/> |
|
|
|
|
|
|
|
<collection column="{orderId=order_number}" property="orderPressList" |
|
|
|
ofType="com.iformall.domain.po.WxOrderPress" |
|
|
|
@@ -605,7 +639,7 @@ |
|
|
|
co.id as coupon_order_id,co.coupon_order_status |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findListOfPress" parameterType="com.iformall.domain.po.WxOrder" resultMap="CVoResultMap"> |
|
|
|
<select id="findListOfPress" parameterType="com.iformall.domain.po.WxOrder" resultMap="PressVoResultMap"> |
|
|
|
select |
|
|
|
<include refid="allOrderPressListColumns"/> |
|
|
|
from wx_coupon c,wx_order o |
|
|
|
@@ -623,7 +657,7 @@ |
|
|
|
<if test=" null != sortColumns">order by ${sortColumns}</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectDetailOfPress" parameterType="com.iformall.domain.po.WxOrder" resultMap="CVoResultMap"> |
|
|
|
<select id="selectDetailOfPress" parameterType="com.iformall.domain.po.WxOrder" resultMap="PressVoDetailResultMap"> |
|
|
|
select |
|
|
|
<include refid="allOrderPressDetailColumns"/> |
|
|
|
FROM wx_order o |
|
|
|
|