Commit 8003eb35 authored by lixuan's avatar lixuan

feat: 房源

parent 79a6de8a
Pipeline #145038 failed with stages
in 31 minutes and 42 seconds
......@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@RestController
@RequestMapping("/api/house")
......@@ -53,6 +54,9 @@ public class HouseResourceController {
@GetMapping("/page")
public AjaxResult getPageHouseResources(HouseResourcePageQuery query) {
if (Objects.nonNull(query.getIncomeSort()) && query.getIncomeSort().length() > 4) {
return AjaxResult.error("<UNK>4<UNK>");
}
return AjaxResult.success(houseResourceService.pageHouseResources(query));
}
......
......@@ -192,7 +192,7 @@
having dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
</if>
<if test="query.incomeSort != null and query.incomeSort != ''">
ORDER BY income #{incomeSort}
ORDER BY income ${query.incomeSort}
</if>
</select>
<select id="selectProfileGraph" resultType="com.ruoyi.system.domain.house.vo.HouseResourcePage">
......
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