|
@@ -7,9 +7,7 @@
|
|
|
SELECT
|
|
|
COUNT(id)
|
|
|
FROM payment_management
|
|
|
- WHERE
|
|
|
- comp_id = #{compId}
|
|
|
- and delete_flag = '0'
|
|
|
+ WHERE delete_flag = '0'
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 2">
|
|
|
AND amount_ing_payable-amount_ed_payable>0
|
|
@@ -18,6 +16,9 @@
|
|
|
<if test="warehouseName != null and warehouseName != ''">
|
|
|
AND warehouse_name= #{warehouseName}
|
|
|
</if>
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '2'">
|
|
|
+ AND comp_id = #{compId}
|
|
|
+ </if>
|
|
|
<if test="managementType != null and managementType != ''">
|
|
|
AND management_type = #{managementType}
|
|
|
</if>
|
|
@@ -69,9 +70,7 @@
|
|
|
status_flag as statusFlag,
|
|
|
workflow_id as workflowId
|
|
|
FROM payment_management
|
|
|
- WHERE
|
|
|
- comp_id = #{compId}
|
|
|
- and delete_flag = '0'
|
|
|
+ WHERE delete_flag = '0'
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 2">
|
|
|
AND amount_ing_payable-amount_ed_payable>0
|
|
@@ -80,6 +79,9 @@
|
|
|
<if test="managementType != null and managementType != ''">
|
|
|
AND management_type = #{managementType}
|
|
|
</if>
|
|
|
+ <if test="pcFlag != null and pcFlag != ''and pcFlag == '2'">
|
|
|
+ AND comp_id = #{compId}
|
|
|
+ </if>
|
|
|
<if test="customerPhone != null and customerPhone != ''">
|
|
|
AND customer_phone = #{customerPhone}
|
|
|
</if>
|