| | |
| | | hd.app_user_id as appuserId, |
| | | hd.title, |
| | | hd.house_model as houseModel, |
| | | hd.rental_duration as rentalDuration, |
| | | hd.sale_amount as saleAmount, |
| | | au.profile_photo as profilePhoto, |
| | | au.nickname, |
| | |
| | | <if test="null != req.content and '' != req.content"> |
| | | and hd.title like CONCAT('%', #{req.content}, '%') |
| | | </if> |
| | | <if test="null != cityIds and cityIds.size()>0"> |
| | | and hd.id in (select housing_demand_id from t_housing_demand_district |
| | | where t_housing_demand_district.district_id in |
| | | <foreach collection="cityIds" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="null != district and district.size()>0"> |
| | | and hd.id in (select housing_demand_id from t_housing_demand_district |
| | | where t_housing_demand_district.city_id in |
| | |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="null != cityIds and cityIds.size()>0"> |
| | | and hd.id in (select housing_demand_id from t_housing_demand_district |
| | | where t_housing_demand_district.district_id in |
| | | <foreach collection="cityIds" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="null != saleAmountStart and null != saleAmountEnd"> |
| | | and hd.sale_amount >= #{saleAmountStart} and hd.sale_amount < #{saleAmountEnd} |
| | | and CAST(SUBSTRING_INDEX(hd.sale_amount, '-', 1) AS DECIMAL) <= #{saleAmountStart} |
| | | and CAST(SUBSTRING_INDEX(hd.sale_amount, '-', -1) AS DECIMAL) >= #{saleAmountEnd} |
| | | </if> |
| | | <if test="null != houseModels"> |
| | | and hd.house_model in |
| | |
| | | au.profile_photo as profilePhoto, |
| | | au.nickname, |
| | | hd.elevator, |
| | | hd.house_type_id as houseTypeId, |
| | | hd.rental_duration as rentalDuration, |
| | | hd.drying_area as dryingArea, |
| | | hd.garden, |
| | |
| | | hd.data_type as dataType, |
| | | hd.insert_time as insertTime, |
| | | hd.type as `type`, |
| | | hd.upTime as upTime, |
| | | hd.keep_pet as keepPet |
| | | from t_housing_demand hd |
| | | left join t_app_user au on (hd.app_user_id = au.id) |
| | |
| | | hd.app_user_id as appuserId, |
| | | hd.title, |
| | | hd.house_model as houseModel, |
| | | hd.house_type_id as houseTypeId, |
| | | hd.sale_amount as saleAmount, |
| | | au.profile_photo as profilePhoto, |
| | | au.nickname, |