bug修改。
This commit is contained in:
parent
5908f07d7d
commit
5ad7c4ba27
@ -215,15 +215,9 @@ public class HouseBuilding {
|
|||||||
if(unit_count != null && (""+unit_count).length() > 11 ) {
|
if(unit_count != null && (""+unit_count).length() > 11 ) {
|
||||||
throw new ParamsException("单元数超出长度");
|
throw new ParamsException("单元数超出长度");
|
||||||
}
|
}
|
||||||
if(house_count == null) {
|
|
||||||
throw new ParamsException("每层户数不能为空");
|
|
||||||
}
|
|
||||||
if(house_count != null && (""+house_count).length() > 11 ) {
|
if(house_count != null && (""+house_count).length() > 11 ) {
|
||||||
throw new ParamsException("每层户数超出长度");
|
throw new ParamsException("每层户数超出长度");
|
||||||
}
|
}
|
||||||
if(floor_count == null) {
|
|
||||||
throw new ParamsException("楼层数不能为空");
|
|
||||||
}
|
|
||||||
if(floor_count != null && (""+floor_count).length() > 11 ) {
|
if(floor_count != null && (""+floor_count).length() > 11 ) {
|
||||||
throw new ParamsException("楼层数超出长度");
|
throw new ParamsException("楼层数超出长度");
|
||||||
}
|
}
|
||||||
@ -233,15 +227,9 @@ public class HouseBuilding {
|
|||||||
if(elevator != null && (""+elevator).length() > 11 ) {
|
if(elevator != null && (""+elevator).length() > 11 ) {
|
||||||
throw new ParamsException("电梯数超出长度");
|
throw new ParamsException("电梯数超出长度");
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(floor_count_for_unit)) {
|
|
||||||
throw new ParamsException("每单元层数名不能为空");
|
|
||||||
}
|
|
||||||
if(floor_count_for_unit != null && floor_count_for_unit.length() > 11 ) {
|
if(floor_count_for_unit != null && floor_count_for_unit.length() > 11 ) {
|
||||||
throw new ParamsException("每单元层数超出长度");
|
throw new ParamsException("每单元层数超出长度");
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(house_count_for_floor)) {
|
|
||||||
throw new ParamsException("每层户数名不能为空");
|
|
||||||
}
|
|
||||||
if(house_count_for_floor != null && house_count_for_floor.length() > 11 ) {
|
if(house_count_for_floor != null && house_count_for_floor.length() > 11 ) {
|
||||||
throw new ParamsException("每层户数超出长度");
|
throw new ParamsException("每层户数超出长度");
|
||||||
}
|
}
|
||||||
|
@ -252,6 +252,7 @@ public class BuildingHouseServiceImpl extends DefaultBaseService implements IBui
|
|||||||
BuildingDTO buildingDTO = buildingService.get(buildingHouseDTO.getBuildingId());
|
BuildingDTO buildingDTO = buildingService.get(buildingHouseDTO.getBuildingId());
|
||||||
if(null != buildingDTO) {
|
if(null != buildingDTO) {
|
||||||
buildingHouseDTO.setGrid(buildingDTO.getGrid());
|
buildingHouseDTO.setGrid(buildingDTO.getGrid());
|
||||||
|
buildingHouseDTO.setLocationCode(buildingDTO.getLocationCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,9 @@ public class GridServiceImpl extends DefaultBaseService implements IGridService
|
|||||||
@Override
|
@Override
|
||||||
public String getLocationAll(String locationCode) {
|
public String getLocationAll(String locationCode) {
|
||||||
String locationAll = "";
|
String locationAll = "";
|
||||||
|
System.out.println("locationCode = " + locationCode);
|
||||||
AreaDTO areaDTO = mongoAreaService.getByCode(locationCode);
|
AreaDTO areaDTO = mongoAreaService.getByCode(locationCode);
|
||||||
|
System.out.println("areaDTO.toString() = " + areaDTO.toString());
|
||||||
Integer parentId = Integer.valueOf(areaDTO.getAreaParentId());
|
Integer parentId = Integer.valueOf(areaDTO.getAreaParentId());
|
||||||
String areaName = areaDTO.getAreaName();
|
String areaName = areaDTO.getAreaName();
|
||||||
locationAll += areaName;
|
locationAll += areaName;
|
||||||
|
@ -90,10 +90,10 @@ public class FullSyncC0004 implements ApplicationEventPublisherAware {
|
|||||||
buildingVO.setElevator(buildingDTO.getElevator());
|
buildingVO.setElevator(buildingDTO.getElevator());
|
||||||
buildingVO.setFloorCountForUnit(buildingDTO.getFloorCountForUnit());
|
buildingVO.setFloorCountForUnit(buildingDTO.getFloorCountForUnit());
|
||||||
buildingVO.setHouseCountForFloor(buildingDTO.getHouseCountForFloor());
|
buildingVO.setHouseCountForFloor(buildingDTO.getHouseCountForFloor());
|
||||||
buildingVO.setLocationCode(buildingDTO.getLocationCode());
|
buildingVO.setLocationCode(residentialDTO.getLocationCode());
|
||||||
buildingVO.setLongitude(buildingDTO.getLongitude());
|
buildingVO.setLongitude(buildingDTO.getLongitude());
|
||||||
buildingVO.setLatitude(buildingDTO.getLatitude());
|
buildingVO.setLatitude(buildingDTO.getLatitude());
|
||||||
buildingVO.setGrid(buildingDTO.getGrid());
|
buildingVO.setGrid(residentialDTO.getGrid());
|
||||||
return buildingVO;
|
return buildingVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ public class FullSyncC0005 implements ApplicationEventPublisherAware {
|
|||||||
BuildingHouseVO buildingHouseVO = setData(buildingHouseDTO, buildingDTO);
|
BuildingHouseVO buildingHouseVO = setData(buildingHouseDTO, buildingDTO);
|
||||||
buildingHouseService.saveKafka(buildingHouseDTO.getBuildingHouseId(), buildingHouseVO, buildingDTO, residentialDTO);
|
buildingHouseService.saveKafka(buildingHouseDTO.getBuildingHouseId(), buildingHouseVO, buildingDTO, residentialDTO);
|
||||||
}else {
|
}else {
|
||||||
|
System.out.println("buildingDTO.getResidentialId() = " + buildingDTO.getResidentialId());
|
||||||
throw new SearchException("当前小区数据已不存在");
|
throw new SearchException("当前小区数据已不存在");
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
Reference in New Issue
Block a user