Browse Source

房源档案导出调整

LAPTOP-FO2T5SIU\35838 4 months ago
parent
commit
de6f95696b

+ 10 - 1
pro-base/src/main/resources/mybatis/buildManage/ParkRoomExtendMapper.xml

@@ -173,9 +173,18 @@
   </select>
 
     <select id="projectHouseAllVoList" resultType="com.idea.buildManage.dto.ProjectHouseAllVo">
-      select r.*,c.id contractId,c.customer_management_id
+      select r.*,c.id contractId,c.customer_management_id,c.record_number,c.contract_number,
+             c.actual_build_area contractArea,c.buyer_money contractTotalPrice,cm.buyer_identity_card,
+             (
+                 case p.area_status
+                 when '1' then '预测'
+                 when '2' then '实测'
+                 end
+             ) contractAreaStatus
       from park_room r
+      left join park_info p on p.id = r.group_id
       left join contract_manage c on r.id = c.house_id
+      left join customer_management cm on cm.id = c.customer_management_id
       and c.created_at = (select max(created_at) from contract_manage where contract_manage.house_id = r.id)
       <where>
         <if test="groupId != null and groupId != ''">