Commit 73ad7769 authored by hongguangwu's avatar hongguangwu

1.7.21-优化

parent e3340f50
...@@ -1162,7 +1162,8 @@ ...@@ -1162,7 +1162,8 @@
<select id="getCardListBySalaryIdAndNotExists" resultType="java.lang.String"> <select id="getCardListBySalaryIdAndNotExists" resultType="java.lang.String">
SELECT distinct a.EMP_IDCARD FROM t_salary_account a where a.SALARY_FORM_ID = #{salaryId} SELECT distinct a.EMP_IDCARD FROM t_salary_account a where a.SALARY_FORM_ID = #{salaryId}
and not EXISTS ( and not EXISTS (
SELECT distinct a.EMP_IDCARD FROM t_salary_account a where a.INVOICE_TITLE = #{invoiceTitle} and a.SETTLEMENT_MONTH = #{settleMonth} and a.DELETE_FLAG = 0 SELECT 1 FROM t_salary_account b where b.INVOICE_TITLE = #{invoiceTitle} and b.SETTLEMENT_MONTH = #{settleMonth} and b.DELETE_FLAG = 0
and a.EMP_IDCARD = b.EMP_IDCARD
) )
</select> </select>
......
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