|
|
@@ -183,10 +183,10 @@ |
|
|
<select id="findListOfCUser" parameterType="com.iformall.domain.po.WxOrder" resultMap="CVoResultMap"> |
|
|
<select id="findListOfCUser" parameterType="com.iformall.domain.po.WxOrder" resultMap="CVoResultMap"> |
|
|
select |
|
|
select |
|
|
<include refid="allCUserOrderListColumns"/> |
|
|
<include refid="allCUserOrderListColumns"/> |
|
|
from wx_order o,wx_coupon c,wx_coupon_order co |
|
|
|
|
|
|
|
|
from wx_coupon c,wx_order o |
|
|
|
|
|
left join wx_coupon_order co on co.order_id = o.id |
|
|
left join wx_coupon_action_log cal on cal.coupon_order_id = co.id |
|
|
left join wx_coupon_action_log cal on cal.coupon_order_id = co.id |
|
|
where co.order_id = o.id |
|
|
|
|
|
and o.product_id = c.id |
|
|
|
|
|
|
|
|
where o.product_id = c.id |
|
|
<if test="cUserId != null"> |
|
|
<if test="cUserId != null"> |
|
|
and o.c_user_id = #{cUserId} |
|
|
and o.c_user_id = #{cUserId} |
|
|
</if> |
|
|
</if> |
|
|
|