|
@@ -224,10 +224,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
FROM zc_bill_inf b
|
|
|
LEFT JOIN sys_company y
|
|
|
- ON y.scy_id = b.zbi_payer_id
|
|
|
+ ON y.scy_id = b.zbi_payer_id
|
|
|
LEFT JOIN sys_company s
|
|
|
- ON s.scy_id = b.zbi_payee_id
|
|
|
+ ON s.scy_id = b.zbi_payee_id
|
|
|
+ LEFT JOIN zc_finance_bill_rel rel
|
|
|
+ ON rel.zfbr_bill_id = b.zbi_id
|
|
|
+ LEFT JOIN zc_finance_inf f
|
|
|
+ ON rel.zfbr_finance_id = f.zfi_id
|
|
|
WHERE 1=1
|
|
|
+ AND (f.zfi_status IN ('03', '99') OR f.zfi_id IS NULL)
|
|
|
-- b.zbi_status = '00'
|
|
|
<if test="paramMap.zbiPayerId != null and paramMap.zbiPayerId != ''">
|
|
|
AND b.zbi_payer_id = #{paramMap.zbiPayerId}
|
|
@@ -244,9 +249,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="paramMap.payIdList != null and paramMap.payIdList != ''">
|
|
|
and b.zbi_id IN (${paramMap.payIdList})
|
|
|
</if>
|
|
|
- <if test="paramMap.billIdList != null and paramMap.billIdList != ''">
|
|
|
+ <!--<if test="paramMap.billIdList != null and paramMap.billIdList != ''">
|
|
|
and b.zbi_id NOT IN (${paramMap.billIdList})
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
ORDER BY b.create_time DESC
|
|
|
|
|
|
</select>
|
|
@@ -269,7 +274,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ON y.scy_id = b.zbi_payer_id
|
|
|
LEFT JOIN sys_company s
|
|
|
ON s.scy_id = b.zbi_payee_id
|
|
|
+ LEFT JOIN zc_finance_bill_rel rel
|
|
|
+ ON rel.zfbr_bill_id = b.zbi_id
|
|
|
+ LEFT JOIN zc_finance_inf f
|
|
|
+ ON rel.zfbr_finance_id = f.zfi_id
|
|
|
WHERE 1=1
|
|
|
+ AND (f.zfi_status IN ('03', '99') OR f.zfi_id IS NULL)
|
|
|
-- b.zbi_status = '00'
|
|
|
<if test="paramMap.zbiPayeeId != null and paramMap.zbiPayeeId != ''">
|
|
|
AND b.zbi_payee_id = #{paramMap.zbiPayeeId}
|
|
@@ -286,9 +296,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="paramMap.payIdList != null and paramMap.payIdList != ''">
|
|
|
and b.zbi_id IN (${paramMap.payIdList})
|
|
|
</if>
|
|
|
- <if test="paramMap.billIdList != null and paramMap.billIdList != ''">
|
|
|
+ <!--<if test="paramMap.billIdList != null and paramMap.billIdList != ''">
|
|
|
and b.zbi_id NOT IN (${paramMap.billIdList})
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
ORDER BY b.create_time DESC
|
|
|
</select>
|
|
|
|