Commit e4985f01 authored by lixuan's avatar lixuan

feat: 房源

parent 0720c40d
Pipeline #145374 canceled with stages
...@@ -73,8 +73,8 @@ public class HouseResourceController { ...@@ -73,8 +73,8 @@ public class HouseResourceController {
return AjaxResult.success(houseResourceService.appProfileGraphHouseResources(query)); return AjaxResult.success(houseResourceService.appProfileGraphHouseResources(query));
} }
@GetMapping("/list") @PostMapping("/list")
public AjaxResult getListHouseResources(HouseResourcePageQuery query) { public AjaxResult getListHouseResources(@RequestBody HouseResourcePageQuery query) {
return AjaxResult.success(houseResourceService.listHouseResources(query)); return AjaxResult.success(houseResourceService.listHouseResources(query));
} }
......
...@@ -270,6 +270,13 @@ ...@@ -270,6 +270,13 @@
<if test="query.sortWay != null and query.sortWay != ''"> <if test="query.sortWay != null and query.sortWay != ''">
order by t1.house_area ${query.sortWay} order by t1.house_area ${query.sortWay}
</if> </if>
<if test="query.aiQueries != null and query.aiQueries.size() > 0">
and (
<foreach collection="query.aiQueries" item="ai" separator=" or ">
(t1.two = #{ai.two} and t1.three = #{ai.three} and t1.four = #{ai.four} and t1.type = #{ai.wgType})
</foreach>
)
</if>
</where> </where>
GROUP BY t1.id GROUP BY t1.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
......
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