Commit 3f31c05a by zhangxingmin

push

parent dcc902b4
......@@ -41,6 +41,10 @@
GROUP_CONCAT(DISTINCT paying_bank SEPARATOR ';') AS paying_bank
FROM premium_remittance
WHERE is_deleted = 0
<if test="request.paymentDate != null">
AND payment_date >= DATE(#{request.paymentDate})
AND payment_date &lt; DATE_ADD(DATE(#{request.paymentDate}), INTERVAL 1 DAY)
</if>
GROUP BY premium_reconciliation_biz_id
) prm_total ON prm_total.premium_reconciliation_biz_id = pr.premium_reconciliation_biz_id
LEFT JOIN (
......@@ -82,10 +86,6 @@
<if test="request.reconciliationType != null and request.reconciliationType != ''">
AND pr.reconciliation_type = #{request.reconciliationType}
</if>
<if test="request.paymentDate != null">
AND prm_total.payment_date >= DATE(#{request.paymentDate})
AND prm_total.payment_date &lt; DATE_ADD(DATE(#{request.paymentDate}), INTERVAL 1 DAY)
</if>
ORDER BY pr.create_time DESC
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment