| | |
| | | and pfc.start_time <= #{endTime} |
| | | </if> |
| | | <if test="yearMonth !=null and yearMonth != ''"> |
| | | and concat(t.fee_year,t.fee_month) = #{yearMonth} |
| | | and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth} |
| | | </if> |
| | | |
| | | group by t.config_id,t.fee_name,pfc.start_time |
| | |
| | | and pfc.start_time <= #{endTime} |
| | | </if> |
| | | <if test="yearMonth !=null and yearMonth != ''"> |
| | | and concat(t.fee_year,t.fee_month) = #{yearMonth} |
| | | and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth} |
| | | </if> |
| | | group by t.config_id,t.fee_name,pfc.start_time |
| | | order by t.create_time desc |
| | |
| | | and pfc.start_time <= #{endTime} |
| | | </if> |
| | | <if test="yearMonth !=null and yearMonth != ''"> |
| | | and concat(t.fee_year,t.fee_month) = #{yearMonth} |
| | | and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth} |
| | | </if> |
| | | order by t.create_time desc |
| | | </select> |
| | |
| | | inner join pay_fee pf on t.fee_id = pf.fee_id and pf.community_id = t.community_id and pf.status_cd = '0' |
| | | left join pay_fee_attrs pfa on pf.fee_id = pfa.fee_id and pfa.spec_cd = '390008' and pfa.status_cd ='0' |
| | | where t.status_cd = '0' |
| | | group by t.config_id,t.fee_name,t.fee_create_time,t.obj_id,t.obj_name,pfa.`value`,br.built_up_area |
| | | <if test="roomNum !=null and roomNum != ''"> |
| | | and br.room_num= #{roomNum} |
| | | </if> |
| | |
| | | and t.create_time <= #{endTime} |
| | | </if> |
| | | group by t.config_id,t.fee_name,t.fee_create_time,t.obj_id,t.obj_name,pfa.`value`,br.built_up_area |
| | | order by pfa.`value` |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | </if> |
| | | group by t.fee_name,t.payer_obj_id,t.payer_obj_name,pfa.`value`,br.built_up_area |
| | | HAVING oweAmount > 0 |
| | | order by pfa.`value` |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | select 1 from pay_fee pf where t.room_id = pf.payer_obj_id and pf.status_cd = '0' and pf.state = '2008001' |
| | | ) |
| | | and t.community_id = #{communityId} |
| | | order by t.create_time desc |
| | | order by bo.name |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | and t.create_time < #{endTime} |
| | | and t.fee_id = #{feeId} |
| | | <if test="flag == 1"> |
| | | and concat(t.detail_year,t.detail_month) = #{yearMonth} |
| | | and concat(t.detail_year,lpad(t.detail_month,2,0)) = #{yearMonth} |
| | | </if> |
| | | <if test="flag == 2"> |
| | | and concat(t.detail_year,t.detail_month) < #{yearMonth} |
| | | and concat(t.detail_year,lpad(t.detail_month,2,0)) < #{yearMonth} |
| | | </if> |
| | | <if test="flag == 3"> |
| | | and concat(t.detail_year,t.detail_month) > #{yearMonth} |
| | | and concat(t.detail_year,lpad(t.detail_month,2,0)) > #{yearMonth} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |