|
@@ -25,6 +25,10 @@
|
|
|
<if test="startTime != null and startTime != ''">and t2.create_time >= #{startTime}</if>
|
|
|
<if test="endTime != null and endTime != ''">and t2.create_time <= concat(#{endTime},' 23:59:59')</if>
|
|
|
<if test="approvedProgress != null and approvedProgress != ''">and t2.approved_progress = #{approvedProgress}</if>
|
|
|
+ <if test="policyStartDate != null and policyStartDate != '' and policyEndDate != null and policyEndDate != ''">
|
|
|
+ and ((#{policyStartDate} <= t2.policy_start_date and #{policyEndDate} >= t2.policy_start_date)
|
|
|
+ or (#{policyStartDate} >= t2.policy_start_date and #{policyStartDate} <= t2.policy_end_date))
|
|
|
+ </if>
|
|
|
order by t2.create_time desc
|
|
|
</select>
|
|
|
|
|
@@ -59,4 +63,29 @@
|
|
|
WHERE
|
|
|
t1.approved_progress = #{userId} or t1.create_user_id = #{userId}
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="updatePolicyInfoById">
|
|
|
+ update ctop_cwjs_policy_info set
|
|
|
+ company_name = #{companyName},
|
|
|
+ advertiser_name = #{advertiserName},
|
|
|
+ media_type = #{mediaType},
|
|
|
+ company_subject_id = #{companySubjectId},
|
|
|
+ group_abbreviation = #{groupAbbreviation},
|
|
|
+ approved_progress = #{approvedProgress},
|
|
|
+ advance_pay = #{advancePay},
|
|
|
+ accounting_period = #{accountingPeriod},
|
|
|
+ rebate_type = #{rebateType},
|
|
|
+ rebate_rate = #{rebateRate},
|
|
|
+ is_dian_pay = #{isDianPay},
|
|
|
+ dian_pay_company_name = #{dianPayCompanyName},
|
|
|
+ dian_pay_company_rebate_rate = #{dianPayCompanyRebateRate},
|
|
|
+ promotion_type = #{promotionType},
|
|
|
+ policy_start_date = #{policyStartDate},
|
|
|
+ policy_end_date = #{policyEndDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ create_user_id = #{createUserId},
|
|
|
+ create_user_name = #{createUserName}
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|