Commit 92e4a0d5 authored by lixuan's avatar lixuan

feat: 需求

parent 91dcf54d
Pipeline #147249 failed with stages
in 0 seconds
...@@ -134,11 +134,11 @@ ...@@ -134,11 +134,11 @@
t5.year t5.year
FROM FROM
house_resource t1 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 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_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 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 t1.delete_flag = 0
<if test="query.wgType != null"> <if test="query.wgType != null">
and t1.type = #{query.wgType} and t1.type = #{query.wgType}
...@@ -298,7 +298,6 @@ ...@@ -298,7 +298,6 @@
</foreach> </foreach>
) )
</if> </if>
</where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null"> <if test="query.dayPriceMin != null">
...@@ -327,11 +326,11 @@ ...@@ -327,11 +326,11 @@
t4.id AS businessEntityInfoId t4.id AS businessEntityInfoId
FROM FROM
house_resource t1 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 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_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 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 t1.delete_flag = 0
<if test="query.wgType != null"> <if test="query.wgType != null">
and t1.type = #{query.wgType} and t1.type = #{query.wgType}
...@@ -491,7 +490,6 @@ ...@@ -491,7 +490,6 @@
</foreach> </foreach>
) )
</if> </if>
</where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null"> <if test="query.dayPriceMin != null">
...@@ -514,11 +512,11 @@ ...@@ -514,11 +512,11 @@
t5.year t5.year
FROM FROM
house_resource t1 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 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_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 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 t1.delete_flag = 0
<if test="query.wgType != null"> <if test="query.wgType != null">
and t1.type = #{query.wgType} and t1.type = #{query.wgType}
...@@ -681,7 +679,6 @@ ...@@ -681,7 +679,6 @@
</foreach> </foreach>
) )
</if> </if>
</where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null"> <if test="query.dayPriceMin != null">
...@@ -730,11 +727,11 @@ ...@@ -730,11 +727,11 @@
t1.business_license_url t1.business_license_url
FROM FROM
house_resource t1 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 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_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 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 t1.delete_flag = 0
<if test="query.wgType != null"> <if test="query.wgType != null">
and t1.type = #{query.wgType} and t1.type = #{query.wgType}
...@@ -865,7 +862,6 @@ ...@@ -865,7 +862,6 @@
<if test="query.updateTimeEnd != null"> <if test="query.updateTimeEnd != null">
AND t1.update_time <![CDATA[ <= ]]> #{query.updateTimeEnd} AND t1.update_time <![CDATA[ <= ]]> #{query.updateTimeEnd}
</if> </if>
</where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null"> <if test="query.dayPriceMin != null">
...@@ -887,7 +883,7 @@ ...@@ -887,7 +883,7 @@
SUM(t5.year_tax) AS taxCount SUM(t5.year_tax) AS taxCount
FROM FROM
house_resource t1 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 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_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 LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id AND t5.delete_flag = 0
...@@ -927,7 +923,7 @@ ...@@ -927,7 +923,7 @@
t4.principal t4.principal
FROM FROM
house_resource t1 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 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_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 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