|
|
|
@@ -762,8 +762,8 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
|
<if test=" null == sortColumns">order by co.id desc</if> |
|
|
|
<if test=" null != sortColumns">order by ${sortColumns} </if> |
|
|
|
<if test=" null == sortColumns">order by co.update_date desc</if> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
@@ -771,7 +771,11 @@ |
|
|
|
select co.id,co.tenant_id,co.parent_tenant_id,co.coupon_id,co.coupon_type,co.c_user_id,co.owner_id,co.b_user_id, |
|
|
|
co.order_id,co.expired_time,co.coupon_order_status,co.create_date,co.update_date,co.coupon_price,co.verify_type,co.verify_remark, co.pay_vendor, |
|
|
|
co.`freight_price`,co.`shipping_type`,co.`shipping_address`,co.`shipping_status`,co.`delivery_info`,co.subsidy |
|
|
|
where co.id = #{id} and co.tenant_id = #{tenantId} and cu.final_tenant_id = #{finalTenantId} |
|
|
|
FROM wx_coupon_order co |
|
|
|
where co.id = #{id} and co.tenant_id = #{tenantId} |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and co.`parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|