|
|
@ -162,10 +162,13 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
@Override |
|
|
|
public List<HouseListResultDTO> getHouseList(TokenDto tokenDto, HouseFormDTO formDTO) { |
|
|
|
//查询楼栋下房屋列表
|
|
|
|
LambdaQueryWrapper<IcHouseEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcHouseEntity::getBuildingId, formDTO.getBuildingId()); |
|
|
|
wrapper.last("ORDER BY CONVERT ( HOUSE_NAME USING gbk ) ASC"); |
|
|
|
List<IcHouseEntity> list = baseDao.selectList(wrapper); |
|
|
|
// LambdaQueryWrapper<IcHouseEntity> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
// wrapper.eq(IcHouseEntity::getBuildingId, formDTO.getBuildingId());
|
|
|
|
// wrapper.last("ORDER BY CONVERT ( HOUSE_NAME USING gbk ) ASC");
|
|
|
|
// List<IcHouseEntity> list = baseDao.selectList(wrapper);
|
|
|
|
|
|
|
|
List<IcHouseEntity> list = baseDao.selectListForRenFangStats(formDTO.getBuildingId()); |
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(list)) { |
|
|
|
return Collections.emptyList(); |
|
|
|
} |
|
|
|