<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="reportFeeMonthStatisticsServiceDaoImpl">
|
|
|
<!-- 保存费用月统计信息 add by wuxw 2018-07-03 -->
|
<insert id="saveReportFeeMonthStatisticsInfo" parameterType="Map">
|
insert into report_fee_month_statistics(
|
receivable_amount,statistics_id,update_time,remark,obj_name,received_amount,fee_year,fee_month,fee_id,config_id,obj_id,fee_name,owe_amount,community_id,fee_create_time,obj_type
|
) values (
|
#{receivableAmount},#{statisticsId},#{updateTime},#{remark},#{objName},#{receivedAmount},#{feeYear},#{feeMonth},#{feeId},#{configId},#{objId},#{feeName},#{oweAmount},#{communityId},#{feeCreateTime},#{objType}
|
)
|
</insert>
|
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="getReportFeeMonthStatisticsInfo" parameterType="Map" resultType="Map">
|
select t.receivable_amount,t.receivable_amount receivableAmount,t.statistics_id,t.statistics_id
|
statisticsId,t.update_time,t.update_time updateTime,t.remark,t.status_cd,t.status_cd
|
statusCd,t.obj_name,t.obj_name objName,t.received_amount,t.received_amount receivedAmount,t.fee_year,t.fee_year
|
feeYear,t.fee_month,t.fee_month feeMonth,t.fee_id,t.fee_id feeId,t.config_id,t.config_id
|
configId,t.obj_id,t.obj_id objId,t.fee_name,t.fee_name feeName,t.owe_amount,t.owe_amount
|
oweAmount,t.community_id,t.community_id communityId,t.fee_create_time,t.fee_create_time
|
feeCreateTime,t.obj_type,t.obj_type objType
|
from report_fee_month_statistics t
|
where 1 =1
|
<if test="receivableAmount !=null and receivableAmount != ''">
|
and t.receivable_amount= #{receivableAmount}
|
</if>
|
<if test="statisticsId !=null and statisticsId != ''">
|
and t.statistics_id= #{statisticsId}
|
</if>
|
<if test="updateTime !=null and updateTime != ''">
|
and t.update_time= #{updateTime}
|
</if>
|
<if test="remark !=null and remark != ''">
|
and t.remark= #{remark}
|
</if>
|
<if test="statusCd !=null and statusCd != ''">
|
and t.status_cd= #{statusCd}
|
</if>
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="receivedAmount !=null and receivedAmount != ''">
|
and t.received_amount= #{receivedAmount}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="oweAmount !=null and oweAmount != ''">
|
and t.owe_amount= #{oweAmount}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="feeCreateTime !=null and feeCreateTime != ''">
|
and t.fee_create_time= #{feeCreateTime}
|
</if>
|
<if test="objType !=null and objType != ''">
|
and t.obj_type= #{objType}
|
</if>
|
order by t.create_time desc
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
|
</select>
|
|
|
|
<!-- 修改费用月统计信息 add by wuxw 2018-07-03 -->
|
<update id="updateReportFeeMonthStatisticsOwe" parameterType="Map">
|
update report_fee_month_statistics t set
|
t.owe_amount= #{oweAmount}
|
where 1=1
|
<if test="statisticsId !=null and statisticsId != ''">
|
and t.statistics_id= #{statisticsId}
|
</if>
|
<if test="feeYear !=null ">
|
and t.fee_year <= #{feeYear}
|
</if>
|
<if test="feeMonth !=null ">
|
and t.fee_month <= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
|
</update>
|
|
|
<!-- 修改费用月统计信息 add by wuxw 2018-07-03 -->
|
<update id="updateReportFeeMonthStatisticsInfo" parameterType="Map">
|
update report_fee_month_statistics t set t.status_cd = #{statusCd}
|
<if test="newBId != null and newBId != ''">
|
,t.b_id = #{newBId}
|
</if>
|
<if test="receivableAmount !=null and receivableAmount != ''">
|
, t.receivable_amount= #{receivableAmount}
|
</if>
|
<if test="updateTime !=null and updateTime != ''">
|
, t.update_time= #{updateTime}
|
</if>
|
<if test="remark !=null and remark != ''">
|
, t.remark= #{remark}
|
</if>
|
<if test="objName !=null and objName != ''">
|
, t.obj_name= #{objName}
|
</if>
|
<if test="receivedAmount !=null and receivedAmount != ''">
|
, t.received_amount= #{receivedAmount}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
, t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
, t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
, t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
, t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
, t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
, t.fee_name= #{feeName}
|
</if>
|
<if test="oweAmount !=null and oweAmount != ''">
|
, t.owe_amount= #{oweAmount}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
, t.community_id= #{communityId}
|
</if>
|
<if test="feeCreateTime !=null and feeCreateTime != ''">
|
, t.fee_create_time= #{feeCreateTime}
|
</if>
|
<if test="objType !=null and objType != ''">
|
, t.obj_type= #{objType}
|
</if>
|
where 1=1
|
<if test="statisticsId !=null and statisticsId != ''">
|
and t.statistics_id= #{statisticsId}
|
</if>
|
|
</update>
|
|
<!-- 查询费用月统计数量 add by wuxw 2018-07-03 -->
|
<select id="queryReportFeeMonthStatisticssCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from report_fee_month_statistics t
|
where 1 =1
|
<if test="receivableAmount !=null and receivableAmount != ''">
|
and t.receivable_amount= #{receivableAmount}
|
</if>
|
<if test="statisticsId !=null and statisticsId != ''">
|
and t.statistics_id= #{statisticsId}
|
</if>
|
<if test="updateTime !=null and updateTime != ''">
|
and t.update_time= #{updateTime}
|
</if>
|
<if test="remark !=null and remark != ''">
|
and t.remark= #{remark}
|
</if>
|
<if test="statusCd !=null and statusCd != ''">
|
and t.status_cd= #{statusCd}
|
</if>
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="receivedAmount !=null and receivedAmount != ''">
|
and t.received_amount= #{receivedAmount}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="oweAmount !=null and oweAmount != ''">
|
and t.owe_amount= #{oweAmount}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="feeCreateTime !=null and feeCreateTime != ''">
|
and t.fee_create_time= #{feeCreateTime}
|
</if>
|
<if test="objType !=null and objType != ''">
|
and t.obj_type= #{objType}
|
</if>
|
|
|
</select>
|
|
|
<!-- 查询费用月统计数量 add by wuxw 2018-07-03 -->
|
<select id="queryReportFeeSummaryCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from (
|
select t.fee_year,t.fee_month
|
from report_fee_month_statistics t
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.fee_year,t.fee_month
|
) t
|
</select>
|
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="queryReportFeeSummary" parameterType="Map" resultType="Map">
|
select t.fee_year feeYear,t.fee_month feeMonth,SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) receivedAmount,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.fee_year,t.fee_month
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
</select>
|
|
<select id="queryReportFloorUnitFeeSummaryCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from (
|
select t.fee_year feeYear,t.fee_month feeMonth, f.floor_num flooNum, bu.unit_num unitNum
|
from report_fee_month_statistics t
|
INNER JOIN building_room br on t.obj_id = br.room_id and br.status_cd = '0'
|
inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
|
inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
GROUP BY t.fee_year,t.fee_month,f.floor_num,bu.unit_id,bu.unit_num
|
) t
|
</select>
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="queryReportFloorUnitFeeSummary" parameterType="Map" resultType="Map">
|
select t.fee_year feeYear,t.fee_month feeMonth, f.floor_num floorNum, bu.unit_num unitNum,
|
SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) receivedAmount,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
INNER JOIN building_room br on t.obj_id = br.room_id and br.status_cd = '0'
|
inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
|
inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
GROUP BY t.fee_year,t.fee_month,f.floor_num,bu.unit_id,bu.unit_num
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
</select>
|
|
<select id="queryFeeBreakdownCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from (
|
select t.fee_name,pfc.start_time
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time
|
) t
|
</select>
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="queryFeeBreakdown" parameterType="Map" resultType="Map">
|
select t.fee_name feeName,pfc.start_time feeCreateTime,SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) receivedAmount,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
</select>
|
<select id="queryFeeDetailCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from (
|
select t.obj_name objName,t.fee_name feeName,pfc.start_time
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time,t.obj_id,t.obj_name
|
) t
|
</select>
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="queryFeeDetail" parameterType="Map" resultType="Map">
|
select t.obj_name objName,t.fee_name feeName,pfc.start_time feeCreateTime,SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) receivedAmount,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time,t.obj_id,t.obj_name
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
</select>
|
<select id="queryOweFeeDetailCount" parameterType="Map" resultType="Map">
|
select count(1) count
|
from (
|
select t.obj_name objName,t.fee_name feeName,pfc.start_time,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time,t.obj_id,t.obj_name
|
HAVING oweAmount > 0
|
) t
|
</select>
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
<select id="queryOweFeeDetail" parameterType="Map" resultType="Map">
|
select t.obj_name objName,t.fee_name feeName,pfc.start_time feeCreateTime,SUM(t.receivable_amount) receivableAmount,SUM(t.received_amount) receivedAmount,SUM(t.owe_amount) oweAmount
|
from report_fee_month_statistics t
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
where t.status_cd = '0'
|
<if test="objName !=null and objName != ''">
|
and t.obj_name= #{objName}
|
</if>
|
<if test="feeYear !=null and feeYear != ''">
|
and t.fee_year= #{feeYear}
|
</if>
|
<if test="feeMonth !=null and feeMonth != ''">
|
and t.fee_month= #{feeMonth}
|
</if>
|
<if test="feeId !=null and feeId != ''">
|
and t.fee_id= #{feeId}
|
</if>
|
<if test="configId !=null and configId != ''">
|
and t.config_id= #{configId}
|
</if>
|
<if test="objId !=null and objId != ''">
|
and t.obj_id= #{objId}
|
</if>
|
<if test="feeName !=null and feeName != ''">
|
and t.fee_name= #{feeName}
|
</if>
|
<if test="communityId !=null and communityId != ''">
|
and t.community_id= #{communityId}
|
</if>
|
<if test="startTime !=null">
|
and t.create_time >= #{startTime}
|
</if>
|
<if test="endTime !=null">
|
and t.create_time <= #{endTime}
|
</if>
|
group by t.config_id,t.fee_name,pfc.start_time,t.obj_id,t.obj_name
|
HAVING oweAmount > 0
|
<if test="page != -1 and page != null ">
|
limit #{page}, #{row}
|
</if>
|
</select>
|
|
</mapper>
|