From db55c4b35bc881286e8a1c4797127f63bb2f7499 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 26 二月 2021 13:07:35 +0800
Subject: [PATCH] 优化实收计算错误问题
---
java110-db/src/main/resources/mapper/report/ReportCommunityServiceDaoImplMapper.xml | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/report/ReportCommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/report/ReportCommunityServiceDaoImplMapper.xml
index d840991..fa17753 100644
--- a/java110-db/src/main/resources/mapper/report/ReportCommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/report/ReportCommunityServiceDaoImplMapper.xml
@@ -23,7 +23,7 @@
select t.apartment,t.built_up_area builtUpArea,t.community_id communityId,t.create_time createTime,
t.fee_coefficient feeCoefficient,t.layer,t.room_id roomId,t.room_num roomNum,t.section,
t.state,bu.unit_id unitId,bu.unit_num unitNum,ff.floor_id floorId,ff.floor_num floorNum,
- bo.age,bo.id_card idCard,bo.link,bo.member_id memberId,bo.`name`,bo.owner_id ownerId
+ bo.age,bo.id_card idCard,bo.link,bo.member_id memberId,bo.`name`,bo.`name` ownerName,bo.owner_id ownerId,t.room_type roomType
from building_room t
INNER JOIN building_unit bu on t.unit_id = bu.unit_id and bu.status_cd = '0'
inner join f_floor ff on bu.floor_id = ff.floor_id and ff.status_cd = '0'
@@ -42,4 +42,41 @@
</select>
+ <!-- 鏌ヨ鎴垮眿涓暟 add by wuxw 2018-07-03 -->
+ <select id="getCarCount" parameterType="com.java110.dto.report.ReportCarDto" resultType="Map">
+ select count(1) count
+ from owner_car t
+ where t.status_cd = '0'
+ <if test="state !=null and state != ''">
+ and t.state= #{state}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ </select>
+
+
+ <!-- 鏌ヨ 鎴垮眿 妤兼爧 鍗曞厓 涓氫富 -->
+ <select id="getCarParkingSpace" parameterType="com.java110.dto.report.ReportCarDto"
+ resultType="com.java110.dto.report.ReportCarDto">
+ select t.car_brand carBrand,t.car_color carColor,t.car_id carId,t.car_num carNum,t.car_type carType,
+ t.community_id communityId,bo.`name` ownerName,bo.id_card idCard,bo.link,bo.owner_id ownerId,ps.ps_id psId,
+ ps.num,pa.pa_id paId,pa.num areaNum,ps.state,t.start_time startTime,t.end_time endTime
+ from owner_car t
+ INNER JOIN building_owner bo on t.owner_id = bo.member_id and t.status_cd = '0'
+ left join parking_space ps on t.ps_id = ps.ps_id and ps.status_cd = '0'
+ left join parking_area pa on ps.pa_id = pa.pa_id and pa.status_cd = '0'
+ where t.status_cd = '0'
+ <if test="state !=null and state != ''">
+ and t.state= #{state}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+ </select>
+
+
</mapper>
--
Gitblit v1.8.0