|
|
@ -201,9 +201,7 @@ public class HouseServiceImpl implements HouseService { |
|
|
|
//3.保存
|
|
|
|
icHouseService.insertBatch(houseEntityList); |
|
|
|
|
|
|
|
/*if(!"".equals(str)){ |
|
|
|
return new Result().error(9999, str.append("不存在").toString()); |
|
|
|
}*/ |
|
|
|
|
|
|
|
return numList; |
|
|
|
|
|
|
|
} |
|
|
@ -252,28 +250,6 @@ public class HouseServiceImpl implements HouseService { |
|
|
|
private IPage<Map<String, Object>> searchHouse(ListIcNeighborHoodFormDTO formDTO) { |
|
|
|
IPage<IcHouseEntity> page = new Page<IcHouseEntity>(formDTO.getPageNo(),formDTO.getPageSize()); |
|
|
|
|
|
|
|
// QueryWrapper<IcNeighborHoodEntity> neighborHoodEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
// neighborHoodEntityQueryWrapper.lambda()
|
|
|
|
// .eq(!StringUtils.isEmpty(formDTO.getAgencyId()),IcNeighborHoodEntity::getAgencyId,formDTO.getAgencyId())
|
|
|
|
// .eq(!StringUtils.isEmpty(formDTO.getGridId()),IcNeighborHoodEntity::getId,formDTO.getGridId())
|
|
|
|
// .eq(!StringUtils.isEmpty(formDTO.getNeighborHoodId()),IcNeighborHoodEntity::getId,formDTO.getNeighborHoodId())
|
|
|
|
// .like(!StringUtils.isEmpty(formDTO.getNeighborHoodName()),IcNeighborHoodEntity::getNeighborHoodName,formDTO.getNeighborHoodName());
|
|
|
|
// IcNeighborHoodEntity neighbor = ConvertUtils.sourceToTarget(formDTO, IcNeighborHoodEntity.class);
|
|
|
|
|
|
|
|
|
|
|
|
// QueryWrapper<IcBuildingEntity> buildingEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
// buildingEntityQueryWrapper.lambda()
|
|
|
|
// .eq(!StringUtils.isEmpty(formDTO.getBuildingId()),IcBuildingEntity::getId,formDTO.getBuildingId())
|
|
|
|
// .like(!StringUtils.isEmpty(formDTO.getBuildingName()),IcBuildingEntity::getBuildingName,formDTO.getBuildingName());
|
|
|
|
// IcBuildingEntity building = ConvertUtils.sourceToTarget(formDTO, IcBuildingEntity.class);
|
|
|
|
|
|
|
|
|
|
|
|
// QueryWrapper<IcHouseEntity> houseEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
// houseEntityQueryWrapper.lambda()
|
|
|
|
// .eq(!StringUtils.isEmpty(formDTO.getOwnerName()),IcHouseEntity::getOwnerName,formDTO.getOwnerName())
|
|
|
|
// .like(!StringUtils.isEmpty(formDTO.getOwnerPhone()),IcHouseEntity::getOwnerPhone,formDTO.getOwnerPhone());
|
|
|
|
// houseEntityQueryWrapper.eq("a.DEL_FLAG","0");
|
|
|
|
|
|
|
|
IcHouseEntity house = ConvertUtils.sourceToTarget(formDTO, IcHouseEntity.class); |
|
|
|
house.setDelFlag("0"); |
|
|
|
|
|
|
@ -281,7 +257,6 @@ public class HouseServiceImpl implements HouseService { |
|
|
|
List<Map<String, Object>> records = mapIPage.getRecords(); |
|
|
|
records.forEach(item->{ |
|
|
|
item.put("houseType", HouseTypeEnums.getTypeValue(item.get("houseTypeKey"))); |
|
|
|
// item.put("rentFlag", HouseRentFlagEnums.getTypeValue(item.get("rentFlagKey") ));
|
|
|
|
item.put("purpose", HousePurposeEnums.getTypeValue(item.get("purposeKey"))); |
|
|
|
}); |
|
|
|
return mapIPage; |
|
|
|