feat(house): 添加房源类型字段支持
- 在 HouseInfo 实体类中新增 type 字段 - 在 HouseInfoParam 参数类中新增 type 查询字段 - 更新 HouseInfoMapper.xml 支持 type 字段查询条件 - 完善 Swagger 文档对房源类型字段的描述
This commit is contained in:
@@ -33,6 +33,9 @@ public class HouseInfo implements Serializable {
|
||||
@Schema(description = "房源标题")
|
||||
private String houseTitle;
|
||||
|
||||
@Schema(description = "房源类型")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "房产所在的城市")
|
||||
private String cityByHouse;
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
<if test="param.houseTitle != null">
|
||||
AND a.house_title LIKE CONCAT('%', #{param.houseTitle}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type = #{param.type}
|
||||
</if>
|
||||
<if test="param.cityByHouse != null">
|
||||
AND a.city_by_house LIKE CONCAT('%', #{param.cityByHouse}, '%')
|
||||
</if>
|
||||
|
||||
@@ -31,6 +31,10 @@ public class HouseInfoParam extends BaseParam {
|
||||
@Schema(description = "房源标题")
|
||||
private String houseTitle;
|
||||
|
||||
@Schema(description = "房源类型")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "房产所在的城市")
|
||||
private String cityByHouse;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user