Commit 92e4a0d5 authored by lixuan's avatar lixuan

feat: 需求

parent 91dcf54d
Pipeline #147249 failed with stages
in 0 seconds
......@@ -134,11 +134,11 @@
t5.year
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
<where>
where
t1.delete_flag = 0
<if test="query.wgType != null">
and t1.type = #{query.wgType}
......@@ -298,7 +298,6 @@
</foreach>
)
</if>
</where>
GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null">
......@@ -327,11 +326,11 @@
t4.id AS businessEntityInfoId
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
<where>
where
t1.delete_flag = 0
<if test="query.wgType != null">
and t1.type = #{query.wgType}
......@@ -491,7 +490,6 @@
</foreach>
)
</if>
</where>
GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null">
......@@ -514,11 +512,11 @@
t5.year
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
<where>
where
t1.delete_flag = 0
<if test="query.wgType != null">
and t1.type = #{query.wgType}
......@@ -681,7 +679,6 @@
</foreach>
)
</if>
</where>
GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null">
......@@ -730,11 +727,11 @@
t1.business_license_url
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
<where>
where
t1.delete_flag = 0
<if test="query.wgType != null">
and t1.type = #{query.wgType}
......@@ -865,7 +862,6 @@
<if test="query.updateTimeEnd != null">
AND t1.update_time <![CDATA[ <= ]]> #{query.updateTimeEnd}
</if>
</where>
GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null">
......@@ -887,7 +883,7 @@
SUM(t5.year_tax) AS taxCount
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
......@@ -927,7 +923,7 @@
t4.principal
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four AND t1.delete_flag = 0
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id AND t3.delete_flag = 0
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id AND t4.delete_flag = 0
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment