Commit 6f7ed96a authored by lixuan's avatar lixuan

feat: 房源

parent b9649a94
Pipeline #145365 failed with stages
......@@ -6,7 +6,6 @@ import com.ruoyi.system.domain.house.HouseResource;
import com.ruoyi.system.domain.house.vo.*;
import com.ruoyi.system.service.house.HouseResourceService;
import org.springframework.beans.BeanUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
......@@ -56,8 +55,8 @@ public class HouseResourceController {
return AjaxResult.success();
}
@GetMapping("/page")
public AjaxResult getPageHouseResources(HouseResourcePageQuery query) {
@PostMapping("/page")
public AjaxResult getPageHouseResources(@RequestBody HouseResourcePageQuery query) {
if (Objects.nonNull(query.getIncomeSort()) && query.getIncomeSort().length() > 4) {
return AjaxResult.error("<UNK>4<UNK>");
}
......
......@@ -79,4 +79,18 @@ public class HouseResourcePageQuery extends PageDomain {
private Integer year;
private Integer registrationPlaceFlag;
private List<AiQuery> aiQueries;
@Data
public static class AiQuery {
private String two;
private String three;
private String four;
private Integer wgType;
}
}
......@@ -187,6 +187,13 @@
#{item}
</foreach>
</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>
GROUP BY t1.id
<if test="query.dayPriceMin != null and query.dayPriceMin != '' and query.dayPriceMax != null and query.dayPriceMax != ''">
......
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