| | |
| | | from pay_fee pf |
| | | INNER JOIN pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.bill_type in ('001','002','003') and |
| | | pfc.status_cd = '0' and pf.community_id = pfc.community_id |
| | | inner join bill_owe_fee bof on pf.fee_id = bof.fee_id and bof.community_id = pf.community_id and bof.state = |
| | | '1000' |
| | | inner join bill_owe_fee bof on pf.fee_id = bof.fee_id and bof.community_id = pf.community_id and bof.state ='1000' and bof.amount_owed > 0 |
| | | inner join bill b on bof.bill_id = b.bill_id and b.community_id = bof.community_id and b.cur_bill = 'T' |
| | | where pf.status_cd = '0' |
| | | and pf.state = '2008001' |
| | | and pf.community_id = #{communityId} |
| | |
| | | |
| | | <select id="computeBillOweFee" parameterType="Map" resultType="Map"> |
| | | select pfc.fee_name feeName,pf.fee_id feeId,pf.end_time endTime,bof.amount_owed amountOwed,bof.payer_obj_name |
| | | roomName,bof.owner_name ownerName,bof.owner_tel ownerTel |
| | | roomName,bof.owner_name ownerName,bof.owner_tel ownerTel,pf.payer_obj_id payerObjId,pf.payer_obj_type payerObjType, |
| | | pf.community_id communityId |
| | | from pay_fee pf |
| | | INNER JOIN pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.bill_type in ('001','002','003') and |
| | | pfc.status_cd = '0' and pf.community_id = pfc.community_id |
| | | inner join bill_owe_fee bof on pf.fee_id = bof.fee_id and bof.community_id = pf.community_id and bof.state = |
| | | '1000' |
| | | inner join bill_owe_fee bof on pf.fee_id = bof.fee_id and bof.community_id = pf.community_id and bof.state ='1000' and bof.amount_owed > 0 |
| | | inner join bill b on bof.bill_id = b.bill_id and b.community_id = bof.community_id and b.cur_bill = 'T' |
| | | where pf.status_cd = '0' |
| | | and pf.state = '2008001' |
| | | and pf.community_id = #{communityId} |
| | |
| | | </if> |
| | | <if test="payerObjType !=null and payerObjType != ''"> |
| | | and pf.payer_obj_type = #{payerObjType} |
| | | </if> |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="computeEveryOweFee" parameterType="Map" resultType="Map"> |
| | | select pfc.fee_name feeName,pf.fee_id feeId,pf.end_time endTime,bof.amount_owed amountOwed,bof.payer_obj_name payObjName |
| | | select pfc.fee_name feeName,pf.fee_id feeId,pf.end_time endTime,pf.payer_obj_id payerObjId,pf.payer_obj_type payerObjType, |
| | | pf.community_id communityId,pfc.computing_formula computingFormula,pfc.square_price squarePrice,pfc.additional_amount additionalAmount |
| | | from pay_fee pf |
| | | INNER JOIN pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.bill_type = '004' and pfc.status_cd = '0' |
| | | and pf.community_id = pfc.community_id |
| | |
| | | <if test="payerObjType !=null and payerObjType != ''"> |
| | | and pf.payer_obj_type = #{payerObjType} |
| | | </if> |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |