|
|
@@ -20,11 +20,13 @@
|
|
|
|
|
|
select t.quantity,t.crc_id,t.crc_id crcId,t.cpp_id,t.cpp_id cppId,t.status_cd,t.status_cd
|
|
|
statusCd,t.rule_id,t.rule_id ruleId,t.community_id,t.community_id communityId,cpp.coupon_name couponName,cr.rule_name ruleName,td.`name` toTypeName,
|
|
|
- cpp.remark,t.gift_frequency giftFrequency
|
|
|
+ cpp.remark,t.gift_frequency giftFrequency,td1.name giftFrequencyName
|
|
|
from coupon_rule_cpps t
|
|
|
left join coupon_property_pool cpp on t.cpp_id = cpp.cpp_id and cpp.status_cd = '0'
|
|
|
left join t_dict td on td.status_cd = cpp.to_type and td.table_name = 'coupon_property_pool' and td.table_columns = 'to_type'
|
|
|
left join coupon_rule cr on t.rule_id = cr.rule_id and cr.status_cd = '0'
|
|
|
+ left join t_dict td1 on td1.status_cd = t.gift_frequency and td1.table_name = 'coupon_rule_cpps' and td1.table_columns = 'gift_frequency'
|
|
|
+
|
|
|
where 1 =1
|
|
|
<if test="quantity !=null and quantity != ''">
|
|
|
and t.quantity= #{quantity}
|