|
@@ -54,7 +54,6 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!-- 查询收据信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询收据信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="getFeeReceiptInfoNew" parameterType="Map" resultType="Map">
|
|
<select id="getFeeReceiptInfoNew" parameterType="Map" resultType="Map">
|
|
|
SELECT
|
|
SELECT
|
|
@@ -86,7 +85,7 @@
|
|
|
tt.amount amount,
|
|
tt.amount amount,
|
|
|
uu.NAME AS userName,
|
|
uu.NAME AS userName,
|
|
|
t.create_time AS createTime,
|
|
t.create_time AS createTime,
|
|
|
- p.remark as remark
|
|
|
|
|
|
|
+ p.remark as remark
|
|
|
FROM
|
|
FROM
|
|
|
fee_receipt t
|
|
fee_receipt t
|
|
|
LEFT JOIN fee_receipt_detail tt ON t.receipt_id = tt.receipt_id
|
|
LEFT JOIN fee_receipt_detail tt ON t.receipt_id = tt.receipt_id
|
|
@@ -169,23 +168,23 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
</if>
|
|
|
- AND bo.owner_type_cd = '1001'
|
|
|
|
|
|
|
+ AND bo.owner_type_cd = '1001'
|
|
|
) AS t
|
|
) AS t
|
|
|
WHERE 1=1
|
|
WHERE 1=1
|
|
|
<if test="type !=null and type == 1 ">
|
|
<if test="type !=null and type == 1 ">
|
|
|
- AND feeName in ('预交物业管理费','装修垃圾清运费','装修电梯使用费','水费','电费')
|
|
|
|
|
|
|
+ AND feeName in ('预交物业管理费','装修垃圾清运费','装修电梯使用费','水费','电费')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type !=null and type == 2">
|
|
<if test="type !=null and type == 2">
|
|
|
- AND feeName in ('装修保证金','施工进入证')
|
|
|
|
|
|
|
+ AND feeName in ('装修保证金','施工进入证')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type !=null and type == 3">
|
|
<if test="type !=null and type == 3">
|
|
|
- AND feeName in ('预交物业管理费','水费','电费','地下停车费','地上停车费')
|
|
|
|
|
|
|
+ AND feeName in ('预交物业管理费','水费','电费','地下停车费','地上停车费')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type !=null and type == 4">
|
|
<if test="type !=null and type == 4">
|
|
|
- AND feeName in ('地上停车费','地下停车费')
|
|
|
|
|
|
|
+ AND feeName in ('地上停车费','地下停车费')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type !=null and type == 5">
|
|
<if test="type !=null and type == 5">
|
|
|
- AND feeName in ('公共区域公摊电费','生活水泵公摊电费','走廊楼道应急公摊电费','电梯公摊电费')
|
|
|
|
|
|
|
+ AND feeName in ('公共区域公摊电费','生活水泵公摊电费','走廊楼道应急公摊电费','电梯公摊电费')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="qstartTime !=null and qstartTime != ''">
|
|
<if test="qstartTime !=null and qstartTime != ''">
|
|
|
AND DATE_FORMAT(t.createTime, '%Y-%m-%d') >= DATE_FORMAT( #{qstartTime}, '%Y-%m-%d' )
|
|
AND DATE_FORMAT(t.createTime, '%Y-%m-%d') >= DATE_FORMAT( #{qstartTime}, '%Y-%m-%d' )
|
|
@@ -219,7 +218,6 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!-- 修改收据信息 add by wuxw 2018-07-03 -->
|
|
<!-- 修改收据信息 add by wuxw 2018-07-03 -->
|
|
|
<update id="updateFeeReceiptInfo" parameterType="Map">
|
|
<update id="updateFeeReceiptInfo" parameterType="Map">
|
|
|
update fee_receipt t set t.status_cd = #{statusCd}
|
|
update fee_receipt t set t.status_cd = #{statusCd}
|
|
@@ -277,6 +275,12 @@
|
|
|
<if test="receiptId !=null and receiptId != ''">
|
|
<if test="receiptId !=null and receiptId != ''">
|
|
|
and t.receipt_id= #{receiptId}
|
|
and t.receipt_id= #{receiptId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="receiptIds !=null">
|
|
|
|
|
+ and t.receipt_id in
|
|
|
|
|
+ <foreach collection="receiptIds" item="item" open="(" close=")" separator=",">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
<if test="objType !=null and objType != ''">
|
|
<if test="objType !=null and objType != ''">
|
|
|
and t.obj_type= #{objType}
|
|
and t.obj_type= #{objType}
|
|
|
</if>
|
|
</if>
|