diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java index 87876d247..fc28c6302 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java @@ -1,18 +1,33 @@ package com.fangjia.open.controllers.weixin; -import com.fangjia.core.util.DataUtil; -import com.fangjia.core.util.GeocodeUtils; +import com.alibaba.fastjson.JSON; +import com.alibaba.nacos.client.identify.Base64; +import com.fangjia.core.util.*; import com.fangjia.dal.QueryParam; import com.fangjia.dal.SdQuery; import com.fangjia.dal.SrQuery; +import com.fangjia.dal.mongo.model.DistrictRoomSqmetreRent; +import com.fangjia.dal.mongo.model.Evaluation; +import com.fangjia.dal.mongo.model.RentDealPrice; +import com.fangjia.dal.seawater.model.Seawater; import com.fangjia.dal.seaweed.model.District; import com.fangjia.open.compatible.model.JsonModel; +import com.fangjia.open.dto.DistrictHouseDtao; +import com.fangjia.open.interceptors.AuthenticationBean; import com.fangjia.open.model.BaseModel; +import com.fangjia.open.model.BasicModel; import com.fangjia.open.model.weixin.EvaluationModel; import com.fangjia.open.model.weixin.PropertyEvaluationModel; import com.fangjia.service.api.AutoCompleteBo; import com.fangjia.service.datastore.DistrictService; +import com.fangjia.service.datastore.EvaluationService; +import com.fangjia.service.datastore.HouseService; +import com.fangjia.service.district.DistrictRoomSqmetreRentService; +import com.fangjia.service.district.RentDealPriceService; +import com.fangjia.service.mongo.fangjia.SeawaterService; +import com.fangjia.service.util.DistrictScoreUtil; import com.lowagie.text.pdf.BaseFont; +import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.lucene.index.Term; import org.apache.lucene.search.BooleanClause; @@ -24,15 +39,13 @@ import org.springframework.beans.factory.annotation.Autowired; import org.xhtmlrenderer.pdf.ITextFontResolver; import org.xhtmlrenderer.pdf.ITextRenderer; -import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.File; import java.io.IOException; import java.io.OutputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; +import java.text.ParseException; +import java.util.*; /** * ½¨ÉèÒøÐÐ×â½ð¿ØÖÆÀà @@ -43,6 +56,11 @@ import java.util.Map; public class CcbRentController { private DistrictService districtService; + private SeawaterService seawaterService; + private DistrictRoomSqmetreRentService districtRoomSqmetreRentService; + private EvaluationService evaluationService; + private HouseService houseService; + private RentDealPriceService rentDealPriceService; public Object indexAction(BaseModel result) { return result; @@ -50,7 +68,9 @@ public class CcbRentController { public Object reportAction(EvaluationModel result, @Param(name = "address") String address, @Param(name = "totalPrice") String totalPrice) { result.setLender(address); - result.setDealPrice(Double.valueOf(totalPrice)); + if (StringUtils.isNotBlank(totalPrice)) { + result.setDealPrice(Double.valueOf(totalPrice)); + } return result; } @@ -58,8 +78,317 @@ public class CcbRentController { return result; } - public void downloadAction(HttpServletResponse response, HttpServletRequest request) throws IOException { - response.setHeader("Content-disposition", "attachment; filename=temp.pdf"); + public Object downloadPageAction(PropertyEvaluationModel result, HttpServletRequest request, @Param(name = "city") String city, @Param(name = "district") String districtStr, + @Param(name = "name") String name, @Param(name = "address") String address, + @Param(name = "size") Double size, @Param(name = "floor") Integer floor, @Param(name = "height") Integer height, @Param(name = "room") Integer room, + @Param(name = "hall") Integer hall, @Param(name = "toilet") Integer toilet, @Param(name = "direction") String direction, @Param(name = "fitment") String fitment) { + com.fangjia.open.model.PropertyEvaluationModel model = new com.fangjia.open.model.PropertyEvaluationModel(); + model.setCity(city); + model.setDistrict(districtStr); + model.setName(name); + model.setAddress(address); + model.setSize(size); + model.setFloor(floor); + model.setHeight(height); + if (room != null) { + model.setRoom(room); + } + if (hall != null) { + model.setHall(hall); + } + if (toilet != null) { + model.setToilet(toilet); + } + model.setDirection(direction); + model.setFitment(fitment); + + if (model.getCity().endsWith("ÊÐ")) { + model.setCity(model.getCity().replaceAll("ÊÐ$", "")); + } + if (StringUtils.isNotBlank(request.getParameter("calDate"))) { + Date calDate = null; + try { + calDate = org.apache.commons.lang.time.DateUtils.parseDate(request.getParameter("calDate"), new String[] { "yyyy-MM-dd" }); + } catch (ParseException e) { + + } + model.setCalDate(calDate); + } + /* Ïȵ½CPDB¿âÖвéÕÒСÇø */ + District district = districtService.findByNameAndAlias(model.getCity(), model.getDistrict(), model.getName(), + "district"); + model.setName(district.getName()); + + + model.setRegion(district.getRegion()); + model.setDistrictName(district.getName()); + if (StringUtils.isBlank(model.getPropertyType())) { + if (district.getEstateType2() != null && district.getEstateType2().contains("±ðÊû")) { + model.setPropertyType("1"); + } + } + + if (model.getCalDate() != null) { + if (new Date().before(model.getCalDate())) { + model.setCalDate(DateUtil.getFirstDayOfWeek(new Date())); + } else { + model.setCalDate(DateUtil.getFirstDayOfWeek(model.getCalDate())); + } + } else { + model.setCalDate(DateUtil.getFirstDayOfWeek(new Date())); + } + + Evaluation evaluation = buildEvaluation(model, request); + evaluation.setSource("api_property_evaluate_rent"); + evaluation = evaluationService.evaluateRent(district, evaluation, model.getCalDate()); + + if (evaluation.getTotalPrice() != null && evaluation.getTotalPrice() != 0) { + evaluation.setAvgPrice((int)(evaluation.getTotalPrice()/evaluation.getArea())); + Map districtPriceMap = new HashMap(); + districtPriceMap.put("city", district.getCity()); + districtPriceMap.put("district", district.getRegion()); + districtPriceMap.put("name", district.getName()); + districtPriceMap.put("address", district.getAddress()); + districtPriceMap.put("totalPrice", evaluation.getTotalPrice()); + districtPriceMap.put("totalPriceUpper", CNNMFilter.convert(String.valueOf(evaluation.getTotalPrice()))); + districtPriceMap.put("cal_date", DateUtil.formatByPattern(new Date(), "yyyy/MM/dd")); + districtPriceMap.put("direction", evaluation.getDirection()); + districtPriceMap.put("size", evaluation.getArea()); + districtPriceMap.put("floor", model.getFloor()); + districtPriceMap.put("height", model.getHeight()); + districtPriceMap.put("fitment", evaluation.getFitment()); + + Integer startPrice = (int)(evaluation.getTotalPrice() - evaluation.getTotalPrice()*0.2); + Integer endPrice = (int)(evaluation.getTotalPrice() + evaluation.getTotalPrice()*0.2); + + //ÖܱßÏàËÆСÇø + if (null == model.getRadius()) {// ÉèÖÃĬÈÏֵ + model.setRadius(1000); + } + String[] fields = { "city", "region", "name", "estateType2", "id","finishBuildingDate"}; + List allDistricts = districtService.findNearestDistrict(district, model.getRadius(), fields, Integer.MAX_VALUE); + //°´Ìõ¼þ¹ýÂËÏàËÆСÇø + Integer buildYear = null; + List districts = null; + if(StringUtils.isNotBlank(district.getFinishBuildingDate())){ + buildYear = DistrictScoreUtil.parseStringToDate(district.getFinishBuildingDate()); + if(buildYear!=null){ + districts = new ArrayList(); + int startYear = buildYear -7; + int endYear = buildYear + 7; + for(District dist : allDistricts){ + if(StringUtils.isNotBlank(dist.getFinishBuildingDate())){ + int simlarDistYear = DistrictScoreUtil.parseStringToDate(district.getFinishBuildingDate()); + if(simlarDistYear>=startYear && simlarDistYear<=endYear && StringUtils.isNotBlank(district.getEstateType2()) && StringUtils.isNotBlank(dist.getEstateType2()) && district.getEstateType2().equals(dist.getEstateType2())){ + districts.add(dist); + } + } + } + } + } + + //ÏàËƷ¿Դ + Double startArea = model.getSize() - model.getSize()*0.1; + Double endArea = model.getSize() + model.getSize()*0.1; + Integer startDate = Integer.parseInt(org.apache.tools.ant.util.DateUtils.format(DateUtil.addMonthToDate(new Date(), -12), "yyyyMMdd")); + List houses = seawaterService.findSeawatersFromEs2("rent", district.getCity(), district.getRegion(), district.getName(), null, null, startDate, null, + startArea, endArea, startPrice, endPrice, null, null, "p_date", false, 1, 5 , null,"seawater-20*/_doc"); + //ÎÞÆÀ¹ÀСÇø·¿ԴÓÃÖܱßÏàËÆСÇøµķ¿Դ + if(null == houses || houses.size()==0){ + for (District dist : districts) { + houses = seawaterService.findSeawatersFromEs2("rent", dist.getCity(), dist.getRegion(), dist.getName(), null, null, startDate, null, + startArea, endArea, startPrice, endPrice, null, null, "p_date", false, 1, 5 , null,"seawater-20*/_doc"); + if(houses!=null && houses.size()>0){ + break; + } + } + } + districtPriceMap.put("houses", houses); + + //ÖܱßÏàËÆСÇø×â½ð + if(model.getHouseType()!=null){ + room = model.getHouseType(); + }else{ + room = houseService.getDistrictRoomType((float)model.getSize()); + } + if (null != districts) { + if (null != room) { + List dtos = new ArrayList(); + Date weekend = DateUtil.getFirstDayOfWeek(new Date()); + for (District dist : districts) { + + List districtRoomSqmetreRents = districtRoomSqmetreRentService.findDistrictRoomSqmetreRents(dist, 1, room); + + ///List districtStatRents = districtStatRentService.findLatestDistrictStatRent(dist, 1, room); + if (null != districtRoomSqmetreRents && districtRoomSqmetreRents.size() > 0) { + DistrictRoomSqmetreRent districtRoomSqmetreRent = districtRoomSqmetreRents.get(0); + if (districtRoomSqmetreRent.getAvgPrice() > 0) { + + int startSqPrice = (int)(evaluation.getAvgPrice() - evaluation.getAvgPrice()*0.1); + int endSqPrice = (int)(evaluation.getAvgPrice() + evaluation.getAvgPrice()*0.1); +// SqmetreRent sqmetreRent = sqmetreRentService.findNearestSqmetreRent(dist.getCity(), dist.getRegion(), dist.getName(), DateUtil.formatToYYYYMMDD(weekend), "district"); + if(districtRoomSqmetreRent.getAvgPrice()>=startSqPrice && districtRoomSqmetreRent.getAvgPrice()<=endSqPrice){ + DistrictHouseDtao dto = new DistrictHouseDtao(); + dto.setCity(dist.getCity()); + dto.setRegion(dist.getRegion()); + dto.setDistrictName(dist.getName()); + dto.setSqAvgPrice(districtRoomSqmetreRent.getAvgPrice()); + dto.setRoom(room); + dtos.add(dto); + if(dtos.size()>=5){ + break; + } + } + } + } + } + districtPriceMap.put("districts", dtos); + } + } + + //½üһÄ껧ÐÍ×â½ð×ßÊÆ + Map trendsMap = districtRoomSqmetreRentService.getRentTrends(district.getCity(), district.getRegion(), district.getName(), room, -12); + districtPriceMap.put("trends", trendsMap); + + //³ɽ»µÄ×ⷿ·¿Դ + List rentTrades = rentDealPriceService.getRentDealPrices(district.getCity(), district.getRegion(), district.getName(), 5); + districtPriceMap.put("trades", rentTrades); + + result.setResult(districtPriceMap); + } +// result.setResult(new HashMap()); + return result; + } + + /** + * ͨ¹ýEvaluationModel×éװEvaluationʵÌå + * + * @param model + * @param request + * @return + */ + private Evaluation buildEvaluation(com.fangjia.open.model.PropertyEvaluationModel model, HttpServletRequest request) { + Evaluation evaluation = new Evaluation(); + evaluation.setCity(model.getCity()); + evaluation.setRegion(model.getRegion()); + evaluation.setDistrictName(model.getName()); + evaluation.setDirection(DIRECTION.get(model.getDirection())); + evaluation.setFitment(EVALUATION_MODEL_FITMENT.get(FITMENT.get(model.getDecoration()))); + evaluation.setAtticArea(model.getAtticSize()); + evaluation.setTerraceArea(model.getOuterSize()); + evaluation.setBasementArea(model.getBasementSize()); + evaluation.setGardenArea(model.getGardenSize()); + String worryFacility = model.getNegativeFactor(); + evaluation.setCreationDate(new Date()); + evaluation.setModificationDate(new Date()); + evaluation.setClientNo(model.getClientNo()); + if (0 != model.getAge()) { + evaluation.setAge(model.getAge()); + } + evaluation.setArea(model.getSize()); + if (StringUtils.isNotBlank(model.getBuildType())) { + evaluation.setBuildType(model.getBuildType()); + } + if (StringUtils.isNotBlank(model.getCarport())) { + evaluation.setCarport(model.getCarport()); + } + if (model.getDecorationAge() >= 1 && model.getDecorationAge() <= 5) { + evaluation.setFitmentAge(model.getDecorationAge()); + } + evaluation.setCarportPrice(model.getCarportPrice()); + evaluation.setCity(model.getCity()); + evaluation.setDistrictName(model.getName()); + if (model.getDecorationCost() != null && model.getDecorationCost() > 0) { + evaluation.setFitmentCharge(model.getDecorationCost()); + } + if (0 != model.getHall()) { + evaluation.setHall(model.getHall()); + } + if (null != model.getFloor()) { + evaluation.setFloor(model.getFloor()); + } + if (model.getMaxFloor() != null && 0 != model.getMaxFloor()) { + evaluation.setHeight(model.getMaxFloor()); + } + if (StringUtils.isNotBlank(model.getBuildingNumber())) { + evaluation.setHouseNum(model.getBuildingNumber()); + } + if (StringUtils.isNotBlank(model.getHouseProperty())) { + evaluation.setHouseProperty(model.getHouseProperty()); + } + if (StringUtils.isNotBlank(model.getInsidepos())) { + evaluation.setInsidepos(model.getInsidepos()); + } + if (StringUtils.isNotBlank(model.getLightingVentilation())) { + evaluation.setLightingVentilation(model.getLightingVentilation()); + } + + if (StringUtils.isNotBlank(model.getOtherFactor())) { + evaluation.setOtherFactor(model.getOtherFactor()); + } + evaluation.setRegion(model.getDistrict()); + if (0 != model.getRoom()) { + evaluation.setRoom(model.getRoom()); + } + if (StringUtils.isNotBlank(model.getRoomNumber())) { + evaluation.setRoomNum(model.getRoomNumber()); + } + if (StringUtils.isNotBlank(model.getSideset())) { + evaluation.setSideset(model.getSideset()); + } + if (0 != model.getToilet()) { + evaluation.setToilet(model.getToilet()); + } + + if (StringUtils.isNotBlank(model.getFacade())) { + evaluation.setFacade(model.getFacade()); + } + if (StringUtils.isNotBlank(model.getTraffice())) { + evaluation.setTraffice(model.getTraffice()); + } + if (StringUtils.isNotBlank(model.getShape())) { + evaluation.setShape(model.getShape()); + } + if (StringUtils.isNotBlank(model.getObstacle())) { + evaluation.setObstacle(model.getObstacle()); + } + if (StringUtils.isNotBlank(model.getIndustry())) { + evaluation.setIndustry(model.getIndustry()); + } + if (StringUtils.isNotBlank(model.getSupportDevice())) { + evaluation.setSupportDevice(model.getSupportDevice()); + } + if (StringUtils.isNotBlank(model.getLeftPosition())) { + evaluation.setLeftPosition(model.getLeftPosition()); + } + if (StringUtils.isNotBlank(model.getShopType())) { + evaluation.setShopType(model.getShopType()); + } + if (StringUtils.isNotBlank(model.getShopUnique())) { + evaluation.setShopUnique(model.getShopUnique()); + } + if (StringUtils.isNotBlank(model.getLocation())) { + evaluation.setLocation(model.getLocation()); + } + if (model.isNewDistrict()) { + evaluation.setNewDistrict(model.isNewDistrict()); + } + String ip = AnalyticsUtil.getIpAddress(ActionContext.getContext().getRequest()); + evaluation.setIp(ip); + AuthenticationBean authenticationBean = (AuthenticationBean) request + .getAttribute(AuthenticationBean.ATTR_AUTHENTICATION_BEAN); + if (authenticationBean != null && authenticationBean.apiUser != null) { + evaluation.setFromUserId(String.valueOf(authenticationBean.apiUser.getId())); + } + evaluation.setSource("api_property_evaluation"); + return evaluation; + } + + public void downloadAction(HttpServletResponse response, HttpServletRequest request, @Param(name = "city") String city, @Param(name = "district") String district, + @Param(name = "name") String name, @Param(name = "address") String address, + @Param(name = "size") Double size, @Param(name = "floor") Integer floor, @Param(name = "height") Integer height, @Param(name = "room") Integer room, + @Param(name = "hall") Integer hall, @Param(name = "toilet") Integer toilet, @Param(name = "direction") String direction, @Param(name = "fitment") String fitment) throws IOException { + response.setHeader("Content-disposition", "attachment; filename=report.pdf"); response.setContentType("application/pdf;charset=UTF-8"); response.setCharacterEncoding("UTF-8"); OutputStream os = null; @@ -67,14 +396,14 @@ public class CcbRentController { os = response.getOutputStream(); ITextRenderer renderer = new ITextRenderer(35, 20); ITextFontResolver fontResolver = renderer.getFontResolver(); - String url = "http://localhost:8080/open/ccbRent/detail"; - renderer.setDocument(url); String fontUrl = ActionContext.getContext().getServletContext().getRealPath("/") + "fonts" + File.separator + "simsun.ttc"; fontResolver.addFont(fontUrl, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED); + String url = "http://localhost:8080/open/ccbRent/downloadPage?city=" + DataUtil.urlEncode(city) + "&district="+DataUtil.urlEncode(district)+"&name="+DataUtil.urlEncode(name); + url += "&address=" + DataUtil.urlEncode(address) +"&size="+size+"&floor="+floor+"&height="+height+"&room="+room+"&hall="+hall+"&toilet="+toilet+"&direction="+direction+"&fitment="+fitment; + renderer.setDocument(url); renderer.layout(); renderer.createPDF(os, true); renderer.finishPDF(); - System.out.println(); os.flush(); os.close(); } catch (Exception e) { @@ -146,8 +475,63 @@ public class CcbRentController { return ret; } - @Autowired + private static final Map DIRECTION = new HashMap() { + { + put(null, "ÄÏ"); + put("1", "Î÷ÄÏ"); + put("2", "¶«ÄÏ"); + put("3", "ÄÏ"); + put("4", "Î÷±±"); + put("5", "¶«±±"); + put("6", "¶«"); + put("7", "Î÷"); + put("8", "±±"); + put("9", "¶«Î÷"); + put("10", "Äϱ±"); + } + }; + + private static final Map FITMENT = new HashMap() { + { + put(null, "¼òװ"); + put("1", "ëÅ÷"); + put("2", "¼òװ"); + put("3", "¾«װ"); + put("4", "ºÀװ"); + } + }; + + private static final Map EVALUATION_MODEL_FITMENT = new HashMap() { + { + put(null, "¼òµ¥װÐÞ"); + put("¼òװ", "¼òµ¥װÐÞ"); + put("ëÅ÷", "ëÅ÷"); + put("¾«װ", "¾«װÐÞ"); + put("ºÀװ", "ºÀ»ªװÐÞ"); + } + }; + public void setDistrictService(DistrictService districtService) { this.districtService = districtService; } + + public void setSeawaterService(SeawaterService seawaterService) { + this.seawaterService = seawaterService; + } + + public void setDistrictRoomSqmetreRentService(DistrictRoomSqmetreRentService districtRoomSqmetreRentService) { + this.districtRoomSqmetreRentService = districtRoomSqmetreRentService; + } + + public void setEvaluationService(EvaluationService evaluationService) { + this.evaluationService = evaluationService; + } + + public void setHouseService(HouseService houseService) { + this.houseService = houseService; + } + + public void setRentDealPriceService(RentDealPriceService rentDealPriceService) { + this.rentDealPriceService = rentDealPriceService; + } } diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/model/weixin/PropertyEvaluationModel.java b/projects/fangjia-open/src/main/java/com/fangjia/open/model/weixin/PropertyEvaluationModel.java index 5be1763fa..18068d19c 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/model/weixin/PropertyEvaluationModel.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/model/weixin/PropertyEvaluationModel.java @@ -2,6 +2,8 @@ package com.fangjia.open.model.weixin; import com.fangjia.open.model.BaseModel; +import java.util.Map; + /** * ½¨ÐÐ×ⷿ¹Àֵ * @@ -69,6 +71,8 @@ public class PropertyEvaluationModel extends BaseModel { */ private String fitment; + private Map result; + @Override public String getCityName() { return cityName; @@ -166,4 +170,12 @@ public class PropertyEvaluationModel extends BaseModel { public void setFitment(String fitment) { this.fitment = fitment; } + + public Map getResult() { + return result; + } + + public void setResult(Map result) { + this.result = result; + } } diff --git a/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl b/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl index d3834d7df..2a539183c 100644 --- a/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl +++ b/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl @@ -219,7 +219,8 @@ // jspdf.setFont('SourceHanSans-Light'); //console.log(jspdf.getFontList()); $("#download").bind('click', function(){ - window.location.href = "download" + window.location.href = "download?city="+params.city+"&district="+params.district+"&name="+params.name+"&address="+params.address+"&size="+params.size+"&floor="+params.floor + +"&height="+params.height+"&room="+params.room+"&hall="+params.hall+"&toilet="+params.toilet+"&direction="+params.direction+"&fitment="+params.fitment; // jspdf.html(document.body, { // callback: function (doc) { // doc.save("租金报告.pdf"); @@ -238,22 +239,23 @@ // }); }); + // 后台传参过来用 + let params = { + 'city': sessionStorage.city, + 'district': sessionStorage.district, + 'name': sessionStorage.name, + 'address': sessionStorage.address, + 'size': sessionStorage.size, + 'floor': sessionStorage.floor, + 'height': sessionStorage.height, + 'room': sessionStorage.room, + 'hall': sessionStorage.hall, + 'toilet': sessionStorage.toilet, + 'direction': sessionStorage.direction, + 'fitment': sessionStorage.fitment + }; + function init() { - // 后台传参过来用 - let params = { - 'city': sessionStorage.city, - 'district': sessionStorage.district, - 'name': sessionStorage.name, - 'address': sessionStorage.address, - 'size': sessionStorage.size, - 'floor': sessionStorage.floor, - 'height': sessionStorage.height, - 'room': sessionStorage.room, - 'hall': sessionStorage.hall, - 'toilet': sessionStorage.toilet, - 'direction': sessionStorage.direction, - 'fitment': sessionStorage.fitment - }; $.ajax({ // 注意需要加.. url: '../property/rentReport', diff --git a/projects/fangjia-open/src/main/webapp/ccbRent/download.ftl b/projects/fangjia-open/src/main/webapp/ccbRent/download.ftl deleted file mode 100644 index bdcefd573..000000000 --- a/projects/fangjia-open/src/main/webapp/ccbRent/download.ftl +++ /dev/null @@ -1,475 +0,0 @@ -<#ftl attributes={"content_type":"text/html; charset=UTF-8"}> -<#compress> - - - - - - - 租金报告中心 - - - - - - - - - - - -
-
- 估值报告下载 -
-
-
1 评估申明
-
建设银行遵循中立、客观、公正的原则,通过周密细致的测算,评估求得分析对象的房地产市场参考。
-
-
-
2 评估时间
-
-
- 评估结果
- 楼盘名称:
- 楼盘地址:
- 租金估值(RMB):元/月
- 大写(人民币):
-
-
-
-
3 报告有效期
-
本报告在市场无较大波动的情况下,该评估价格在报告出具起三个月内有效。
-
-
-
4 房产状况
-
- 详细地址:
- 楼盘名称:
- 室号:
- 朝向:
- 建筑面积:平米
- 所在楼层: 层 总层数
- 电梯配套:
- 装修情况:
- 建筑年代:
-
-
-
-
5 历史租金
-
-
-
-
6 已租房源
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
城市区域小区名成交价面积室厅装修成交日期
上海浦东区永泰花苑***8220普通装修2020-07-29
上海浦东区永泰花苑***8220普通装修2020-07-29
-
-
-
-
7 样本参考
-
- - - - - - - - - - - - - - - - - -
城市区域小区名租金面积室厅装修成交日期
暂无数据
-
-
-
-
8 周边同类小区租金
-
- - - - - - - - - - - - - - - - -
城市区域小区名平米租金室厅
暂无数据
-
-
-
- - - - - - - - -<#-- --> -<#-- --> -<#-- --> -<#-- --> -<#-- --> -<#-- --> - - - - \ No newline at end of file diff --git a/projects/fangjia-open/src/main/webapp/ccbRent/downloadPage.ftl b/projects/fangjia-open/src/main/webapp/ccbRent/downloadPage.ftl new file mode 100644 index 000000000..d22216559 --- /dev/null +++ b/projects/fangjia-open/src/main/webapp/ccbRent/downloadPage.ftl @@ -0,0 +1,214 @@ +<#ftl attributes={"content_type":"text/html; charset=UTF-8"}> +<#compress> + + + + + + + 租金报告中心 + + + + + + + + + + + +
+
+ 估值报告 +
+
+
1 评估申明
+
建设银行遵循中立、客观、公正的原则,通过周密细致的测算,评估求得分析对象的房地产市场参考。
+
+
+
2 评估时间
+
+ <#if result.cal_date??>${result.cal_date}
+ 评估结果
+ 楼盘名称:<#if result.name??>${result.name}
+ 楼盘地址:<#if result.address??>${result.address}
+ 租金估值(RMB):<#if result.totalPrice??>${result.totalPrice}元/月
+ 大写(人民币):<#if result.totalPriceUpper??>${result.totalPriceUpper}
+
+
+
+
3 报告有效期
+
本报告在市场无较大波动的情况下,该评估价格在报告出具起三个月内有效。
+
+
+
4 房产状况
+
+ 详细地址:<#if result.address??>${result.address}
+ 楼盘名称:<#if result.name??>${result.name}
+ 室号:<#if result.room??>${result.room}
+ 朝向:<#if result.direction??>${result.direction}
+ 建筑面积:<#if result.size??>${result.size}平米
+ 所在楼层:<#if result.floor??>${result.floor} 层 <#if result.height??>${result.height}总层数
+ 电梯配套:<#if result.hasLift??>${result.hasLift}
+ 装修情况:<#if result.fitment??>${result.fitment}
+ 建筑年代:<#if result.buildYear??>${result.buildYear}
+
+
+
+
5 历史租金
+
+
+
+
6 已租房源
+
+ + + + + + + + + + + + + + + + <#if (result.trades??&&result.trades?size>0)> + <#list result.trades as bo> + + + + + + + + + + + + + <#else> + + + +
城市区域小区名成交价面积室厅装修成交日期
<#if bo.city??>${bo.city}<#if bo.region??>${bo.region}<#if bo.districtName??>${bo.districtName}<#if bo.totalPrice??>${bo.totalPrice}<#if bo.area??>${bo.area}<#if bo.room??>${bo.room}<#if bo.hall??>${bo.hall}<#if bo.fitment??>${bo.fitment}<#if bo.tradeDate??>${bo.tradeDate}
暂无数据
+
+
+
+
7 样本参考
+
+ + + + + + + + + + + + + + + + <#if (result.houses??&&result.houses?size>0)> + <#list result.houses as bo> + + + + + + + + + + + + + <#else> + + + +
城市区域小区名租金面积室厅装修成交日期
<#if bo.city??>${bo.city}<#if bo.region??>${bo.region}<#if bo.districtName??>${bo.districtName}<#if bo.totalPrice??>${bo.totalPrice}<#if bo.area??>${bo.area}<#if bo.room??>${bo.room}<#if bo.hall??>${bo.hall}<#if bo.fitment??>${bo.fitment}<#if bo.pDate??>${bo.pDate}
暂无数据
+
+
+
+
8 周边同类小区租金
+
+ + + + + + + + + + + + + + + + +
城市区域小区名平米租金室厅
暂无数据
+
+
+
+ + + \ No newline at end of file diff --git a/projects/fangjia-open/src/main/webapp/ccbRent/report.ftl b/projects/fangjia-open/src/main/webapp/ccbRent/report.ftl index 15209e55a..9085c3fc6 100644 --- a/projects/fangjia-open/src/main/webapp/ccbRent/report.ftl +++ b/projects/fangjia-open/src/main/webapp/ccbRent/report.ftl @@ -3,21 +3,18 @@ - - + + 租金报告中心 - - - - - - - + + + + + + - -