Forráskód Böngészése

5.退费审核:此页面是否要添加下房屋信息以及房屋筛选条件(基于处理时根据房屋快速筛选) 问题优化

java110 4 éve%!(EXTRA string=óta)
szülő
commit
dfeeda88e9

+ 9 - 0
java110-db/src/main/resources/mapper/fee/ReturnPayFeeServiceDaoImplMapper.xml

@@ -183,6 +183,9 @@
         <if test="reason !=null and reason != ''">
             and t.reason= #{reason}
         </if>
+        <if test="payerObjName !=null and payerObjName != ''">
+            and pfa.value= #{payerObjName}
+        </if>
         <if test="primeRate !=null and primeRate != ''">
             and t.prime_rate= #{primeRate}
         </if>
@@ -437,7 +440,13 @@
         select count(1) count
         from return_pay_fee t
         inner join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0'
+        left join pay_fee_attrs pfa on t.fee_id = pfa.fee_id and pfa.spec_cd = '390012' and pfa.status_cd = '0'
+        inner join t_dict d on t.fee_type_cd = d.status_cd and d.table_name = 'pay_fee_config' and d.table_columns = 'fee_type_cd'
+        inner join t_dict c on t.state = c.status_cd and c.table_name = 'return_pay_fee' and c.table_columns = 'state'
         where 1 =1
+        <if test="payerObjName !=null and payerObjName != ''">
+            and pfa.value= #{payerObjName}
+        </if>
         <if test="reason !=null and reason != ''">
             and t.reason= #{reason}
         </if>