|
|
|
@@ -187,12 +187,13 @@ |
|
|
|
|
|
|
|
<select id="findListOfAdmin" parameterType="com.iformall.domain.po.WxCouponOrder" resultMap="BVoResultMap"> |
|
|
|
select <include refid="allAdminCouponOrderColumns" /> |
|
|
|
from wx_coupon_order co,wx_order o,wx_coupon c,wx_c_user cu,wx_merchant_b_user bu, wx_merchant m |
|
|
|
where o.id = co.order_id |
|
|
|
and co.coupon_id = c.id |
|
|
|
and cu.id = co.c_user_id |
|
|
|
and bu.id = co.b_user_id |
|
|
|
and o.merchant_id = m.id |
|
|
|
from wx_coupon_order co |
|
|
|
left join wx_order o on o.id = co.order_id |
|
|
|
left join wx_coupon c on co.coupon_id = c.id |
|
|
|
left join wx_c_user cu on cu.id = co.c_user_id |
|
|
|
left join wx_merchant_b_user bu on bu.id = co.b_user_id |
|
|
|
left join wx_merchant m on o.merchant_id = m.id |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != id "> |
|
|
|
and co.id = #{id} |
|
|
|
</if> |
|
|
|
|