|
|
|
@@ -38,6 +38,7 @@ |
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`coupon_order_id`,`coupon_id`,`coupon_title`, |
|
|
|
`c_user_id`,`user_name`,`user_phone`,`user_region`,`user_address`, |
|
|
|
`reservation_merchant_id`,`reservation_merchant_name`, |
|
|
|
`start_date`,`end_date`,`describe_str`,`describe_img`,`status`,`remark`, |
|
|
|
`btenant_id`,`merchant_id`,`buser_id`,`buser_name`,`buser_phone`,`finish_time`, |
|
|
|
`create_date`,`update_date` |
|
|
|
@@ -138,7 +139,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="findUserReservation" parameterType="com.iformall.domain.po.WxCouponOrderReservation" resultMap="BaseResultMap"> |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`,`start_date`,`end_date`,`status` |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`, |
|
|
|
`reservation_merchant_id`,`reservation_merchant_name`,`start_date`,`end_date`,`status` |
|
|
|
from wx_coupon_order_reservation |
|
|
|
where is_del = 0 |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
@@ -154,13 +156,13 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getSortById" parameterType="java.util.HashMap" resultMap="BaseResultMap"> |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`,`status` |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`,`reservation_merchant_id`,`status` |
|
|
|
from wx_coupon_order_reservation |
|
|
|
where `id` = #{id} and tenant_id=#{tenantId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getSortByCouponOrder" parameterType="java.util.HashMap" resultMap="BaseResultMap"> |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`,`status` |
|
|
|
select `id`,`tenant_id`,`parent_tenant_id`,`reservation_merchant_id`,`status` |
|
|
|
from wx_coupon_order_reservation |
|
|
|
where `coupon_order_id` = #{couponOrderId} and tenant_id=#{tenantId} |
|
|
|
</select> |
|
|
|
|