|
@@ -4,7 +4,6 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="payFeeDetailMonthServiceDaoImpl">
|
|
<mapper namespace="payFeeDetailMonthServiceDaoImpl">
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!-- 保存月缴费表信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存月缴费表信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="savePayFeeDetailMonthInfo" parameterType="Map">
|
|
<insert id="savePayFeeDetailMonthInfo" parameterType="Map">
|
|
|
insert into pay_fee_detail_month(
|
|
insert into pay_fee_detail_month(
|
|
@@ -17,25 +16,25 @@
|
|
|
<!-- 保存月缴费表信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存月缴费表信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="savePayFeeDetailMonthInfos" parameterType="Map">
|
|
<insert id="savePayFeeDetailMonthInfos" parameterType="Map">
|
|
|
insert into pay_fee_detail_month(
|
|
insert into pay_fee_detail_month(
|
|
|
- detail_month,detail_year,detail_id,receivable_amount,discount_amount,remark,received_amount,community_id,fee_id,month_id
|
|
|
|
|
|
|
+ detail_month,detail_year,detail_id,receivable_amount,discount_amount,remark,received_amount,community_id,fee_id,month_id,
|
|
|
|
|
+ obj_name,obj_id,owner_name,owner_id,link,state,pay_fee_time
|
|
|
) values
|
|
) values
|
|
|
<foreach collection="payFeeDetailMonthPos" item="item" index="index" separator=",">
|
|
<foreach collection="payFeeDetailMonthPos" item="item" index="index" separator=",">
|
|
|
(
|
|
(
|
|
|
#{item.detailMonth},#{item.detailYear},#{item.detailId},#{item.receivableAmount},#{item.discountAmount},
|
|
#{item.detailMonth},#{item.detailYear},#{item.detailId},#{item.receivableAmount},#{item.discountAmount},
|
|
|
- #{item.remark},#{item.receivedAmount},#{item.communityId},#{item.feeId},#{item.monthId}
|
|
|
|
|
|
|
+ #{item.remark},#{item.receivedAmount},#{item.communityId},#{item.feeId},#{item.monthId},
|
|
|
|
|
+ #{item.objName},#{item.objId},#{item.ownerName},#{item.ownerId},#{item.link},#{item.state},#{item.payFeeTime}
|
|
|
)
|
|
)
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<!-- 查询月缴费表信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询月缴费表信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="getPayFeeDetailMonthInfo" parameterType="Map" resultType="Map">
|
|
<select id="getPayFeeDetailMonthInfo" parameterType="Map" resultType="Map">
|
|
|
select t.detail_month,t.detail_month detailMonth,t.detail_year,t.detail_year detailYear,t.detail_id,t.detail_id
|
|
select t.detail_month,t.detail_month detailMonth,t.detail_year,t.detail_year detailYear,t.detail_id,t.detail_id
|
|
|
detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.discount_amount,t.discount_amount
|
|
detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.discount_amount,t.discount_amount
|
|
|
discountAmount,t.remark,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount
|
|
discountAmount,t.remark,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount
|
|
|
- receivedAmount,t.community_id,t.community_id communityId,t.fee_id,t.fee_id feeId,t.month_id,t.month_id monthId
|
|
|
|
|
|
|
+ receivedAmount,t.community_id,t.community_id communityId,t.fee_id,t.fee_id feeId,t.month_id,t.month_id monthId,
|
|
|
|
|
+ t.obj_name objName,t.obj_id objId,t.owner_name ownerName,t.owner_id ownerId,t.link,t.state,t.pay_fee_time payFeeTime
|
|
|
from pay_fee_detail_month t
|
|
from pay_fee_detail_month t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="detailMonth !=null and detailMonth != ''">
|
|
<if test="detailMonth !=null and detailMonth != ''">
|
|
@@ -71,6 +70,24 @@
|
|
|
<if test="monthId !=null and monthId != ''">
|
|
<if test="monthId !=null and monthId != ''">
|
|
|
and t.month_id= #{monthId}
|
|
and t.month_id= #{monthId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="objName !=null and objName != ''">
|
|
|
|
|
+ and t.obj_name= #{objName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="objId !=null and objId != ''">
|
|
|
|
|
+ and t.obj_id= #{objId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerName !=null and ownerName != ''">
|
|
|
|
|
+ and t.owner_name= #{ownerName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerId !=null and ownerId != ''">
|
|
|
|
|
+ and t.owner_id= #{ownerId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="state !=null and state != ''">
|
|
|
|
|
+ and t.state= #{state}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="payFeeTime !=null and payFeeTime != ''">
|
|
|
|
|
+ and t.pay_fee_time= #{payFeeTime}
|
|
|
|
|
+ </if>
|
|
|
order by t.create_time desc
|
|
order by t.create_time desc
|
|
|
<if test="page != -1 and page != null ">
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|
|
limit #{page}, #{row}
|
|
@@ -91,9 +108,6 @@
|
|
|
<if test="detailYear !=null and detailYear != ''">
|
|
<if test="detailYear !=null and detailYear != ''">
|
|
|
, t.detail_year= #{detailYear}
|
|
, t.detail_year= #{detailYear}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="detailId !=null and detailId != ''">
|
|
|
|
|
- , t.detail_id= #{detailId}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="receivableAmount !=null and receivableAmount != ''">
|
|
<if test="receivableAmount !=null and receivableAmount != ''">
|
|
|
, t.receivable_amount= #{receivableAmount}
|
|
, t.receivable_amount= #{receivableAmount}
|
|
|
</if>
|
|
</if>
|
|
@@ -106,17 +120,37 @@
|
|
|
<if test="receivedAmount !=null and receivedAmount != ''">
|
|
<if test="receivedAmount !=null and receivedAmount != ''">
|
|
|
, t.received_amount= #{receivedAmount}
|
|
, t.received_amount= #{receivedAmount}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="communityId !=null and communityId != ''">
|
|
|
|
|
- , t.community_id= #{communityId}
|
|
|
|
|
|
|
+ <if test="objName !=null and objName != ''">
|
|
|
|
|
+ , t.obj_name= #{objName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="feeId !=null and feeId != ''">
|
|
|
|
|
- , t.fee_id= #{feeId}
|
|
|
|
|
|
|
+ <if test="objId !=null and objId != ''">
|
|
|
|
|
+ , t.obj_id= #{objId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerName !=null and ownerName != ''">
|
|
|
|
|
+ , t.owner_name= #{ownerName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerId !=null and ownerId != ''">
|
|
|
|
|
+ , t.owner_id= #{ownerId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="state !=null and state != ''">
|
|
|
|
|
+ , t.state= #{state}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="payFeeTime !=null and payFeeTime != ''">
|
|
|
|
|
+ , t.pay_fee_time= #{payFeeTime}
|
|
|
</if>
|
|
</if>
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="monthId !=null and monthId != ''">
|
|
<if test="monthId !=null and monthId != ''">
|
|
|
and t.month_id= #{monthId}
|
|
and t.month_id= #{monthId}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+ <if test="communityId !=null and communityId != ''">
|
|
|
|
|
+ and t.community_id= #{communityId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="feeId !=null and feeId != ''">
|
|
|
|
|
+ and t.fee_id= #{feeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="detailId !=null and detailId != ''">
|
|
|
|
|
+ and t.detail_id= #{detailId}
|
|
|
|
|
+ </if>
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 查询月缴费表数量 add by wuxw 2018-07-03 -->
|
|
<!-- 查询月缴费表数量 add by wuxw 2018-07-03 -->
|
|
@@ -157,6 +191,24 @@
|
|
|
<if test="monthId !=null and monthId != ''">
|
|
<if test="monthId !=null and monthId != ''">
|
|
|
and t.month_id= #{monthId}
|
|
and t.month_id= #{monthId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="objName !=null and objName != ''">
|
|
|
|
|
+ and t.obj_name= #{objName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="objId !=null and objId != ''">
|
|
|
|
|
+ and t.obj_id= #{objId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerName !=null and ownerName != ''">
|
|
|
|
|
+ and t.owner_name= #{ownerName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ownerId !=null and ownerId != ''">
|
|
|
|
|
+ and t.owner_id= #{ownerId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="state !=null and state != ''">
|
|
|
|
|
+ and t.state= #{state}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="payFeeTime !=null and payFeeTime != ''">
|
|
|
|
|
+ and t.pay_fee_time= #{payFeeTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|