|
|
@@ -219,6 +219,50 @@ public class CarrierQueryService {
|
|
|
return building;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param no
|
|
|
+ * @param query
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Building checkinDetatilByNo(String no, CarrierQueryDto query) {
|
|
|
+ Building building = buildingService.findByNo(no);
|
|
|
+ Integer id = building.getId();
|
|
|
+ if (building != null){
|
|
|
+ building.setCarrier_attriute_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.FACTORY_TYPE, building.getCarrier_attriute() + ""));
|
|
|
+ building.setBuild_use_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.BUILDING_USES, building.getBuild_use() + ""));
|
|
|
+ building.setCarrier_structure_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.CARRIER_STRUCTURE, building.getCarrier_structure() + ""));
|
|
|
+ building.setDriving_type_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.DRIVING_TYPE, building.getDriving_type() + ""));
|
|
|
+ building.setDriving_load_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.DRIVING_LOAD, building.getDriving_load() + ""));
|
|
|
+ building.setDriving_spqn_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.DRIVING_SPQN, building.getDriving_spqn() + ""));
|
|
|
+ building.setFire_rating_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.FIRE_RATING, building.getFire_rating() + ""));
|
|
|
+ building.setSpqn_desc(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.SPQN, building.getSpqn() + ""));
|
|
|
+
|
|
|
+ //最早入住时间
|
|
|
+ List<BuildFloor> buildingFloors = findBuildingFloors(id);
|
|
|
+ for (BuildFloor floor : buildingFloors) {
|
|
|
+ if (query.getCount() != null && query.getCount() == 1){
|
|
|
+ floor.setEarliest_checkin_date(singleEarliestCheckinTime(query, floor).toString());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ floor.setEarliest_checkin_date(multilayerEarliestCheckinTime(query));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ building.setFloorList(buildingFloors);
|
|
|
+
|
|
|
+ //获取园区基本信息
|
|
|
+ Park park = parkService.findById(building.getPark_id());
|
|
|
+ Street street = streetService.findById(park.getStreet_id());
|
|
|
+ park.setStreetName(street.getName());
|
|
|
+ building.setPark(park);
|
|
|
+ //合同到期企业
|
|
|
+ List<ContractFloor> contractList = icContractService.findEndContractList(query.getDemandTime(), id);
|
|
|
+ building.setContractList(contractList);
|
|
|
+
|
|
|
+ }
|
|
|
+ return building;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取方案详情的楼层
|
|
|
*
|
|
|
@@ -228,4 +272,6 @@ public class CarrierQueryService {
|
|
|
private List<BuildFloor> findBuildingFloors(Integer id) {
|
|
|
return floorService.findCarrierQueryDetailFloors(id);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|