|
@@ -20,9 +20,11 @@
|
|
|
select t.quantity,t.pa_name,t.pa_name paName,t.pa_id,t.pa_id paId,t.shop_name,t.shop_name
|
|
select t.quantity,t.pa_name,t.pa_name paName,t.pa_id,t.pa_id paId,t.shop_name,t.shop_name
|
|
|
shopName,t.coupon_shop_id,t.coupon_shop_id couponShopId,t.community_name,t.community_name
|
|
shopName,t.coupon_shop_id,t.coupon_shop_id couponShopId,t.community_name,t.community_name
|
|
|
communityName,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.shop_id,t.shop_id
|
|
communityName,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.shop_id,t.shop_id
|
|
|
- shopId,t.end_time,t.end_time endTime,t.coupon_id,t.coupon_id couponId,t.community_id,t.community_id communityId,pc.`name` couponName
|
|
|
|
|
|
|
+ shopId,t.end_time,t.end_time endTime,t.coupon_id,t.coupon_id couponId,t.community_id,t.community_id communityId,pc.`name` couponName,
|
|
|
|
|
+ pc.type_cd typeCd,pc.`value`,pc.value_price valuePrice,td.`name` typeCdName
|
|
|
from parking_coupon_shop t
|
|
from parking_coupon_shop t
|
|
|
left join parking_coupon pc on t.coupon_id = pc.coupon_id and pc.status_cd = '0'
|
|
left join parking_coupon pc on t.coupon_id = pc.coupon_id and pc.status_cd = '0'
|
|
|
|
|
+ left join t_dict td on pc.type_cd = td.status_cd and td.table_name = 'parking_coupon' and td.table_columns = 'type_cd'
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="quantity !=null and quantity != ''">
|
|
<if test="quantity !=null and quantity != ''">
|
|
|
and t.quantity= #{quantity}
|
|
and t.quantity= #{quantity}
|