|
|
@ -118,7 +118,7 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
LambdaQueryWrapper<IcHouseEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(formDTO.getBuildingId()), IcHouseEntity::getBuildingId, formDTO.getBuildingId()); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(formDTO.getUnitId()), IcHouseEntity::getBuildingUnitId, formDTO.getUnitId()); |
|
|
|
wrapper.last("ORDER BY CONVERT ( HOUSE_NAME USING gbk ) ASC"); |
|
|
|
wrapper.last("ORDER BY CAST(DOOR_NAME AS SIGNED), CONVERT (DOOR_NAME USING gbk )"); |
|
|
|
List<IcHouseEntity> list = baseDao.selectList(wrapper); |
|
|
|
if(CollectionUtils.isEmpty(list)) { |
|
|
|
return Collections.emptyList(); |
|
|
@ -160,7 +160,7 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
//查询楼栋下房屋列表
|
|
|
|
LambdaQueryWrapper<IcHouseEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcHouseEntity::getBuildingId, formDTO.getBuildingId()); |
|
|
|
wrapper.last("ORDER BY CONVERT ( HOUSE_NAME USING gbk ) ASC"); |
|
|
|
wrapper.last("ORDER BY ORDER BY CAST(DOOR_NAME AS SIGNED), CONVERT (DOOR_NAME USING gbk ), CONVERT ( HOUSE_NAME USING gbk ) ASC"); |
|
|
|
List<IcHouseEntity> list = baseDao.selectList(wrapper); |
|
|
|
if(CollectionUtils.isEmpty(list)) { |
|
|
|
return Collections.emptyList(); |
|
|
@ -246,4 +246,4 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
return baseDao.getHousesNameByIdCards(idCards); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|