|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
@ -222,19 +221,8 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
HouseListResultDTO dto = new HouseListResultDTO(); |
|
|
|
dto.setHouseId(item.getId()); |
|
|
|
dto.setHouseName(item.getHouseName()); |
|
|
|
switch (item.getRentFlag()) { |
|
|
|
case NumConstant.ZERO: |
|
|
|
dto.setRentFlag("自住"); |
|
|
|
break; |
|
|
|
case NumConstant.ONE: |
|
|
|
dto.setRentFlag("出租"); |
|
|
|
break; |
|
|
|
case NumConstant.TWO: |
|
|
|
dto.setRentFlag("闲置"); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
String houseTypeName = HouseRentFlagEnums.getTypeValue(item.getRentFlag()); |
|
|
|
dto.setRentFlag(houseTypeName == null ? StrConstant.EPMETY_STR:houseTypeName); |
|
|
|
List<HouseListResultDTO.CategoryListBean> categories = new ArrayList<>(); |
|
|
|
if (null != countMap && CollectionUtils.isNotEmpty(categoryList)) { |
|
|
|
for (IcResiCategoryStatsConfigDTO category : categoryList) { |
|
|
@ -302,4 +290,4 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
lqw.eq(IcHouseEntity::getHouseCode, houseCode); |
|
|
|
return ConvertUtils.sourceToTarget(baseDao.selectOne(lqw), IcHouseDTO.class); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|