|
@@ -79,6 +79,27 @@
|
|
order by update_time desc Limit 1;
|
|
order by update_time desc Limit 1;
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="queryCwjsPolicyInfo" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
+ SELECT
|
|
|
|
+ t1.id as 'id',
|
|
|
|
+ t1.advertiser_name as 'advertiserName',
|
|
|
|
+ t1.media_type as 'mediaType',
|
|
|
|
+ t2.policy_product_name as 'policyProductName',
|
|
|
|
+ approved_status as 'approvedStatus',
|
|
|
|
+ advance_pay as 'advancePay',
|
|
|
|
+ rebate_type as 'rebateType',
|
|
|
|
+ rebate_rate as 'rebateRate',
|
|
|
|
+ policy_start_date as 'policyStartDate',
|
|
|
|
+ policy_end_date as 'policyEndDate'
|
|
|
|
+ FROM
|
|
|
|
+ `ctop_cwjs_policy_info` t1
|
|
|
|
+ LEFT JOIN ctop_cwjs_policy_product t2 ON t1.id = t2.policy_id
|
|
|
|
+ WHERE t1.advertiser_name =#{advertiserName}
|
|
|
|
+ AND t1.media_type =#{type}
|
|
|
|
+ AND t2.policy_product_name =#{productName}
|
|
|
|
+ ORDER BY policy_start_date desc,policy_end_date desc
|
|
|
|
+ LIMIT 1
|
|
|
|
+ </select>
|
|
|
|
|
|
<select id="queryAuditProcess" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="queryAuditProcess" resultType="com.alibaba.fastjson.JSONObject">
|
|
SELECT *
|
|
SELECT *
|