|
@@ -1,35 +1,32 @@
|
|
|
-package com.example.controller;
|
|
|
+package com.example.controller.gdc;
|
|
|
|
|
|
import com.example.config.annotation.IgnoreAuth;
|
|
|
-import com.example.entity.OtnAreaEntity;
|
|
|
-import com.example.entity.WzHouseContracEntity;
|
|
|
-import com.example.entity.WzHouseContractCompareEntity;
|
|
|
-import com.example.entity.WzHouseContractInEntity;
|
|
|
-import com.example.entity.WzHouseContractTopEntity;
|
|
|
-import com.example.entity.WzHouseLeaseInConEntity;
|
|
|
-import com.example.entity.WzHouseUseEntity;
|
|
|
-import com.example.entity.vo.WzHouseUseVo;
|
|
|
-import com.example.service.WzHouseContractCompareService;
|
|
|
-import com.example.service.WzHouseContractInService;
|
|
|
-import com.example.service.WzHouseContractTopService;
|
|
|
-import com.example.service.WzHouseLeaseInConService;
|
|
|
-import com.example.service.WzHouseUseService;
|
|
|
-import com.example.service.WzOtnAreaService;
|
|
|
+import com.example.pojo.gdc.OtnAreaEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseContracEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseContractCompareEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseContractInEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseContractTopEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseLeaseInConEntity;
|
|
|
+import com.example.pojo.gdc.WzHouseUseEntity;
|
|
|
+import com.example.pojo.gdc.vo.WzHouseUseVo;
|
|
|
+import com.example.service.gdc.WzHouseContractCompareService;
|
|
|
+import com.example.service.gdc.WzHouseContractInService;
|
|
|
+import com.example.service.gdc.WzHouseContractTopService;
|
|
|
+import com.example.service.gdc.WzHouseLeaseInConService;
|
|
|
+import com.example.service.gdc.WzHouseUseService;
|
|
|
+import com.example.service.gdc.WzOtnAreaService;
|
|
|
import com.example.utils.PageMap;
|
|
|
import com.example.utils.PageUtils;
|
|
|
import com.example.utils.Query;
|
|
|
import com.example.utils.R;
|
|
|
import com.example.utils.excel.ExcelExport;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
import java.text.DateFormat;
|
|
|
import java.text.DecimalFormat;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
@@ -67,244 +64,244 @@ public class WzHouseLeaseInConController {
|
|
|
return R.ok().put("page", pageUtil);
|
|
|
}
|
|
|
|
|
|
- @RequestMapping("/echartList")
|
|
|
- @IgnoreAuth
|
|
|
- public R echartList(@RequestBody PageMap pageMap) {
|
|
|
- //查询列表数据
|
|
|
- Query query = new Query(pageMap);
|
|
|
- List<WzHouseLeaseInConEntity> wzHouseContracEntityList = wzHouseLeaseInConService.queryList(pageMap.getMap());
|
|
|
-
|
|
|
- Map<String,List<WzHouseLeaseInConEntity>> cityMap=new HashMap<>();
|
|
|
- for (WzHouseLeaseInConEntity leaveUseVo : wzHouseContracEntityList) {
|
|
|
- List<WzHouseLeaseInConEntity> list;
|
|
|
- if(cityMap.get(leaveUseVo.getStandardAddressLevel2())!=null){
|
|
|
- list=cityMap.get(leaveUseVo.getStandardAddressLevel2());
|
|
|
- list.add(leaveUseVo);
|
|
|
- }else{
|
|
|
- list=new ArrayList<>();
|
|
|
- list.add(leaveUseVo);
|
|
|
- }
|
|
|
- cityMap.put(leaveUseVo.getStandardAddressLevel2(),list);
|
|
|
- }
|
|
|
-
|
|
|
- List<WzHouseLeaseInConEntity> resultList=new ArrayList<>();
|
|
|
- List<WzHouseLeaseInConEntity> cityList=new ArrayList<>();
|
|
|
-
|
|
|
- double allContractQuantity=0l; // 租入合同数量
|
|
|
- double allNoTaxContractAmount=0l; // 合同总金额(含税)(元)
|
|
|
- double allRentArea=0l; // 总计面积(平米)
|
|
|
- double allUnitPricePerSquareMeter=0l; // 每平米单价
|
|
|
-
|
|
|
- double allbusinessAreaSquaMete=0l; //营业面积(平米)
|
|
|
- double allofficeAreaSquaMete=0l; //办公面积(平米)
|
|
|
- double allcommunicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
- double allotherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
-
|
|
|
- int cityNum=0;
|
|
|
- for(Map.Entry<String,List<WzHouseLeaseInConEntity>> entry:cityMap.entrySet()){
|
|
|
- List<WzHouseLeaseInConEntity> list=entry.getValue();
|
|
|
-
|
|
|
- if (list.get(0).getStandardAddressLevel3().equals("全省")) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- //县的Map集合
|
|
|
- Map<String, List<WzHouseLeaseInConEntity>> countyMap = new HashMap<>();
|
|
|
- for (WzHouseLeaseInConEntity leaveUseVo : list) {
|
|
|
- if (leaveUseVo.getStandardAddressLevel3() == null || leaveUseVo.getStandardAddressLevel3().equals("")) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- if (countyMap.get(leaveUseVo.getStandardAddressLevel3()) != null) {
|
|
|
- list = countyMap.get(leaveUseVo.getStandardAddressLevel3());
|
|
|
- list.add(leaveUseVo);
|
|
|
- } else {
|
|
|
- list = new ArrayList<>();
|
|
|
- list.add(leaveUseVo);
|
|
|
- }
|
|
|
- countyMap.put(leaveUseVo.getStandardAddressLevel3(), list);
|
|
|
- }
|
|
|
-
|
|
|
- double cityContractQuantity=0l;
|
|
|
- double cityNoTaxContractAmount=0l;
|
|
|
- double cityRentArea=0l;
|
|
|
- double cityUnitPricePerSquareMeter=0l;
|
|
|
-
|
|
|
- double citybusinessAreaSquaMete=0l; //营业面积(平米)
|
|
|
- double cityofficeAreaSquaMete=0l; //办公面积(平米)
|
|
|
- double citycommunicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
- double cityotherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
- List<WzHouseLeaseInConEntity> countyList=new ArrayList<>();
|
|
|
- for (Map.Entry<String, List<WzHouseLeaseInConEntity>> countyEntry : countyMap.entrySet()) {
|
|
|
- double contractQuantity=0l;
|
|
|
- double noTaxContractAmount=0l;
|
|
|
- double rentArea=0l;
|
|
|
- double unitPricePerSquareMeter=0l;
|
|
|
-
|
|
|
- double businessAreaSquaMete=0l; //营业面积(平米)
|
|
|
- double officeAreaSquaMete=0l; //办公面积(平米)
|
|
|
- double communicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
- double otherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
- for (WzHouseLeaseInConEntity leaveUseVo : countyEntry.getValue()) {
|
|
|
- contractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
- noTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
- rentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
- unitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
- businessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
- officeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
- communicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
- otherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
-
|
|
|
- cityContractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
- cityNoTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
- cityRentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
- cityUnitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
- citybusinessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
- cityofficeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
- citycommunicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
- cityotherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
-
|
|
|
- allContractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
- allNoTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
- allRentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
- allUnitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
- allbusinessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
- allofficeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
- allcommunicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
- allotherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
- }
|
|
|
- WzHouseLeaseInConEntity wzHouseInCustomerEntity = new WzHouseLeaseInConEntity();
|
|
|
- wzHouseInCustomerEntity.setLeaInContracQuantity(formatDouble(contractQuantity));
|
|
|
- wzHouseInCustomerEntity.setStandardAddressLevel2(countyEntry.getKey());
|
|
|
- wzHouseInCustomerEntity.setTotalContrAmount(formatDouble(noTaxContractAmount));
|
|
|
- wzHouseInCustomerEntity.setTotalAreaSquaMete(formatDouble(rentArea));
|
|
|
- wzHouseInCustomerEntity.setUnitPricePerSquareMeter(formatDouble(unitPricePerSquareMeter));
|
|
|
- wzHouseInCustomerEntity.setBusinessAreaSquaMete(formatDouble(businessAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setOfficeAreaSquaMete(formatDouble(officeAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setCommunicationRoomAreaSquaMete(formatDouble(communicationRoomAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setOtherUsageAreaSquaMete(formatDouble(otherUsageAreaSquaMete));
|
|
|
- countyList.add(wzHouseInCustomerEntity);
|
|
|
- }
|
|
|
- List<WzHouseLeaseInConEntity> orderCountyList=new ArrayList<>();
|
|
|
- try{
|
|
|
- //对countList 进行排序
|
|
|
- String city=list.get(0).getStandardAddressLevel2();
|
|
|
- if(city.contains("市")){
|
|
|
- city=city.split("市")[0];
|
|
|
- }
|
|
|
- OtnAreaEntity area=otnAreaService.queryObject(city);
|
|
|
- List<OtnAreaEntity> countyAreaList=otnAreaService.getCityOption(area.getId());
|
|
|
- int i=0;
|
|
|
- for (OtnAreaEntity otnAreaEntity : countyAreaList) {
|
|
|
- for (WzHouseLeaseInConEntity wzCity : countyList) {
|
|
|
- if(wzCity.getStandardAddressLevel2().contains(otnAreaEntity.getName())){
|
|
|
- i++;
|
|
|
- wzCity.setFlag(i%2==0);
|
|
|
- orderCountyList.add(wzCity);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }catch (Exception e){
|
|
|
- orderCountyList=countyList;
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
-
|
|
|
- WzHouseLeaseInConEntity wzHouseInCustomerEntity = new WzHouseLeaseInConEntity();
|
|
|
- wzHouseInCustomerEntity.setStandardAddressLevel2(entry.getKey());
|
|
|
- wzHouseInCustomerEntity.setLeaInContracQuantity(formatDouble(cityContractQuantity));
|
|
|
- wzHouseInCustomerEntity.setTotalContrAmount(formatDouble(cityNoTaxContractAmount));
|
|
|
- wzHouseInCustomerEntity.setTotalAreaSquaMete(formatDouble(cityRentArea));
|
|
|
- wzHouseInCustomerEntity.setBusinessAreaSquaMete(formatDouble(citybusinessAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setOfficeAreaSquaMete(formatDouble(cityofficeAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setCommunicationRoomAreaSquaMete(formatDouble(citycommunicationRoomAreaSquaMete));
|
|
|
- wzHouseInCustomerEntity.setOtherUsageAreaSquaMete(formatDouble(cityotherUsageAreaSquaMete));
|
|
|
- double num=cityUnitPricePerSquareMeter/countyMap.size();
|
|
|
- cityNum+=countyMap.size();
|
|
|
- wzHouseInCustomerEntity.setUnitPricePerSquareMeter(formatDouble(num));
|
|
|
- wzHouseInCustomerEntity.setChildren(orderCountyList);
|
|
|
- cityList.add(wzHouseInCustomerEntity);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //对cityList 进行排序
|
|
|
- List<OtnAreaEntity> areaList=otnAreaService.getCityOption("018");
|
|
|
- List<WzHouseLeaseInConEntity> orderList=new ArrayList<>();
|
|
|
- int i=0;
|
|
|
- for (OtnAreaEntity otnAreaEntity : areaList) {
|
|
|
- for (WzHouseLeaseInConEntity wzCity : cityList) {
|
|
|
- if(wzCity.getStandardAddressLevel2().contains(otnAreaEntity.getName())){
|
|
|
- wzCity.setFlag(i%2==0);
|
|
|
- i++;
|
|
|
- orderList.add(wzCity);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- WzHouseLeaseInConEntity province=new WzHouseLeaseInConEntity();
|
|
|
- province.setStandardAddressLevel2("全省");
|
|
|
- province.setLeaInContracQuantity(formatDouble(allContractQuantity));
|
|
|
- province.setTotalContrAmount(formatDouble(allNoTaxContractAmount));
|
|
|
- province.setTotalAreaSquaMete(formatDouble(allRentArea));
|
|
|
- if(cityList.size()!=0){
|
|
|
- province.setUnitPricePerSquareMeter(formatDouble(allUnitPricePerSquareMeter/cityNum ));
|
|
|
- }
|
|
|
- province.setBusinessAreaSquaMete(formatDouble(allbusinessAreaSquaMete));
|
|
|
- province.setOfficeAreaSquaMete(formatDouble(allofficeAreaSquaMete));
|
|
|
- province.setCommunicationRoomAreaSquaMete(formatDouble(allcommunicationRoomAreaSquaMete));
|
|
|
- province.setOtherUsageAreaSquaMete(formatDouble(allotherUsageAreaSquaMete));
|
|
|
- province.setChildren(orderList);
|
|
|
- if(orderList.size()>0){
|
|
|
- resultList.add(province);
|
|
|
- }
|
|
|
- int total = wzHouseLeaseInConService.queryTotal(query);
|
|
|
- PageUtils pageUtil = new PageUtils(resultList, total, query.getLimit(), query.getPage());
|
|
|
- return R.ok().put("page", pageUtil);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 清单excel
|
|
|
- */
|
|
|
- @GetMapping("/excel")
|
|
|
- @IgnoreAuth
|
|
|
- public void excel(String statisticalMonth,String name,String buildingNameAlias,String city,String county, HttpServletResponse response) {
|
|
|
- Map<String,Object> map1=new HashMap<>();
|
|
|
- if(buildingNameAlias!=null){
|
|
|
- map1.put("buildingNameAlias",buildingNameAlias);
|
|
|
- }
|
|
|
- if(buildingNameAlias!=null){
|
|
|
- map1.put("statisticalMonth",statisticalMonth);
|
|
|
- }
|
|
|
- if(city!=null){
|
|
|
- map1.put("city",city);
|
|
|
- }
|
|
|
- if(county!=null){
|
|
|
- map1.put("county",county);
|
|
|
- }
|
|
|
-
|
|
|
- DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
- ExcelExport ee1;
|
|
|
-
|
|
|
- //判定是闲置管理还是记录
|
|
|
- if(name.contains("合同管理")){
|
|
|
- ee1= new ExcelExport("房屋租入_合同管理" + df.format(new Date()));
|
|
|
- responseTab1(df,ee1,map1);
|
|
|
- ee1.export(response);
|
|
|
- }else if(name.contains("租入用途管理")){
|
|
|
- ee1= new ExcelExport("房屋租入_租入用途管理" + df.format(new Date()));
|
|
|
- responseTab2(df,ee1,map1);
|
|
|
- ee1.export(response);
|
|
|
- }else if(name.contains("租入房屋单价前10名")){
|
|
|
- ee1= new ExcelExport("房屋租入_租入房屋单价前10名" + df.format(new Date()));
|
|
|
- responseTab3(df,ee1,map1);
|
|
|
- ee1.export(response);
|
|
|
- }else if(name.contains("租入单价与平均单价比较")){
|
|
|
- ee1= new ExcelExport("房屋租入_租入单价与平均单价比较" + df.format(new Date()));
|
|
|
- responseTab4(df,ee1,map1);
|
|
|
- ee1.export(response);
|
|
|
- }else if(name.contains("租入合同记录")){
|
|
|
- ee1= new ExcelExport("房屋租入_租入合同记录" + df.format(new Date()));
|
|
|
- responseTab5(df,ee1,map1);
|
|
|
- ee1.export(response);
|
|
|
- }
|
|
|
- }
|
|
|
+// @RequestMapping("/echartList")
|
|
|
+// @IgnoreAuth
|
|
|
+// public R echartList(@RequestBody PageMap pageMap) {
|
|
|
+// //查询列表数据
|
|
|
+// Query query = new Query(pageMap);
|
|
|
+// List<WzHouseLeaseInConEntity> wzHouseContracEntityList = wzHouseLeaseInConService.queryList(pageMap.getMap());
|
|
|
+//
|
|
|
+// Map<String,List<WzHouseLeaseInConEntity>> cityMap=new HashMap<>();
|
|
|
+// for (WzHouseLeaseInConEntity leaveUseVo : wzHouseContracEntityList) {
|
|
|
+// List<WzHouseLeaseInConEntity> list;
|
|
|
+// if(cityMap.get(leaveUseVo.getStandardAddressLevel2())!=null){
|
|
|
+// list=cityMap.get(leaveUseVo.getStandardAddressLevel2());
|
|
|
+// list.add(leaveUseVo);
|
|
|
+// }else{
|
|
|
+// list=new ArrayList<>();
|
|
|
+// list.add(leaveUseVo);
|
|
|
+// }
|
|
|
+// cityMap.put(leaveUseVo.getStandardAddressLevel2(),list);
|
|
|
+// }
|
|
|
+//
|
|
|
+// List<WzHouseLeaseInConEntity> resultList=new ArrayList<>();
|
|
|
+// List<WzHouseLeaseInConEntity> cityList=new ArrayList<>();
|
|
|
+//
|
|
|
+// double allContractQuantity=0l; // 租入合同数量
|
|
|
+// double allNoTaxContractAmount=0l; // 合同总金额(含税)(元)
|
|
|
+// double allRentArea=0l; // 总计面积(平米)
|
|
|
+// double allUnitPricePerSquareMeter=0l; // 每平米单价
|
|
|
+//
|
|
|
+// double allbusinessAreaSquaMete=0l; //营业面积(平米)
|
|
|
+// double allofficeAreaSquaMete=0l; //办公面积(平米)
|
|
|
+// double allcommunicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
+// double allotherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
+//
|
|
|
+// int cityNum=0;
|
|
|
+// for(Map.Entry<String,List<WzHouseLeaseInConEntity>> entry:cityMap.entrySet()){
|
|
|
+// List<WzHouseLeaseInConEntity> list=entry.getValue();
|
|
|
+//
|
|
|
+// if (list.get(0).getStandardAddressLevel3().equals("全省")) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// //县的Map集合
|
|
|
+// Map<String, List<WzHouseLeaseInConEntity>> countyMap = new HashMap<>();
|
|
|
+// for (WzHouseLeaseInConEntity leaveUseVo : list) {
|
|
|
+// if (leaveUseVo.getStandardAddressLevel3() == null || leaveUseVo.getStandardAddressLevel3().equals("")) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// if (countyMap.get(leaveUseVo.getStandardAddressLevel3()) != null) {
|
|
|
+// list = countyMap.get(leaveUseVo.getStandardAddressLevel3());
|
|
|
+// list.add(leaveUseVo);
|
|
|
+// } else {
|
|
|
+// list = new ArrayList<>();
|
|
|
+// list.add(leaveUseVo);
|
|
|
+// }
|
|
|
+// countyMap.put(leaveUseVo.getStandardAddressLevel3(), list);
|
|
|
+// }
|
|
|
+//
|
|
|
+// double cityContractQuantity=0l;
|
|
|
+// double cityNoTaxContractAmount=0l;
|
|
|
+// double cityRentArea=0l;
|
|
|
+// double cityUnitPricePerSquareMeter=0l;
|
|
|
+//
|
|
|
+// double citybusinessAreaSquaMete=0l; //营业面积(平米)
|
|
|
+// double cityofficeAreaSquaMete=0l; //办公面积(平米)
|
|
|
+// double citycommunicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
+// double cityotherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
+// List<WzHouseLeaseInConEntity> countyList=new ArrayList<>();
|
|
|
+// for (Map.Entry<String, List<WzHouseLeaseInConEntity>> countyEntry : countyMap.entrySet()) {
|
|
|
+// double contractQuantity=0l;
|
|
|
+// double noTaxContractAmount=0l;
|
|
|
+// double rentArea=0l;
|
|
|
+// double unitPricePerSquareMeter=0l;
|
|
|
+//
|
|
|
+// double businessAreaSquaMete=0l; //营业面积(平米)
|
|
|
+// double officeAreaSquaMete=0l; //办公面积(平米)
|
|
|
+// double communicationRoomAreaSquaMete=0l; //通信机房面积(平米)
|
|
|
+// double otherUsageAreaSquaMete=0l; //其他用途面积(平米)
|
|
|
+// for (WzHouseLeaseInConEntity leaveUseVo : countyEntry.getValue()) {
|
|
|
+// contractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
+// noTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
+// rentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
+// unitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
+// businessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
+// officeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
+// communicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
+// otherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
+//
|
|
|
+// cityContractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
+// cityNoTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
+// cityRentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
+// cityUnitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
+// citybusinessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
+// cityofficeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
+// citycommunicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
+// cityotherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
+//
|
|
|
+// allContractQuantity+=leaveUseVo.getLeaInContracQuantity();
|
|
|
+// allNoTaxContractAmount+=leaveUseVo.getTotalContrAmount();
|
|
|
+// allRentArea+=leaveUseVo.getTotalAreaSquaMete();
|
|
|
+// allUnitPricePerSquareMeter+=leaveUseVo.getUnitPricePerSquareMeter();
|
|
|
+// allbusinessAreaSquaMete+= leaveUseVo.getBusinessAreaSquaMete();
|
|
|
+// allofficeAreaSquaMete+=leaveUseVo.getOfficeAreaSquaMete();
|
|
|
+// allcommunicationRoomAreaSquaMete+=leaveUseVo.getCommunicationRoomAreaSquaMete();
|
|
|
+// allotherUsageAreaSquaMete+=leaveUseVo.getOtherUsageAreaSquaMete();
|
|
|
+// }
|
|
|
+// WzHouseLeaseInConEntity wzHouseInCustomerEntity = new WzHouseLeaseInConEntity();
|
|
|
+// wzHouseInCustomerEntity.setLeaInContracQuantity(formatDouble(contractQuantity));
|
|
|
+// wzHouseInCustomerEntity.setStandardAddressLevel2(countyEntry.getKey());
|
|
|
+// wzHouseInCustomerEntity.setTotalContrAmount(formatDouble(noTaxContractAmount));
|
|
|
+// wzHouseInCustomerEntity.setTotalAreaSquaMete(formatDouble(rentArea));
|
|
|
+// wzHouseInCustomerEntity.setUnitPricePerSquareMeter(formatDouble(unitPricePerSquareMeter));
|
|
|
+// wzHouseInCustomerEntity.setBusinessAreaSquaMete(formatDouble(businessAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setOfficeAreaSquaMete(formatDouble(officeAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setCommunicationRoomAreaSquaMete(formatDouble(communicationRoomAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setOtherUsageAreaSquaMete(formatDouble(otherUsageAreaSquaMete));
|
|
|
+// countyList.add(wzHouseInCustomerEntity);
|
|
|
+// }
|
|
|
+// List<WzHouseLeaseInConEntity> orderCountyList=new ArrayList<>();
|
|
|
+// try{
|
|
|
+// //对countList 进行排序
|
|
|
+// String city=list.get(0).getStandardAddressLevel2();
|
|
|
+// if(city.contains("市")){
|
|
|
+// city=city.split("市")[0];
|
|
|
+// }
|
|
|
+// OtnAreaEntity area=otnAreaService.queryObject(city);
|
|
|
+// List<OtnAreaEntity> countyAreaList=otnAreaService.getCityOption(area.getId());
|
|
|
+// int i=0;
|
|
|
+// for (OtnAreaEntity otnAreaEntity : countyAreaList) {
|
|
|
+// for (WzHouseLeaseInConEntity wzCity : countyList) {
|
|
|
+// if(wzCity.getStandardAddressLevel2().contains(otnAreaEntity.getName())){
|
|
|
+// i++;
|
|
|
+// wzCity.setFlag(i%2==0);
|
|
|
+// orderCountyList.add(wzCity);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }catch (Exception e){
|
|
|
+// orderCountyList=countyList;
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+//
|
|
|
+// WzHouseLeaseInConEntity wzHouseInCustomerEntity = new WzHouseLeaseInConEntity();
|
|
|
+// wzHouseInCustomerEntity.setStandardAddressLevel2(entry.getKey());
|
|
|
+// wzHouseInCustomerEntity.setLeaInContracQuantity(formatDouble(cityContractQuantity));
|
|
|
+// wzHouseInCustomerEntity.setTotalContrAmount(formatDouble(cityNoTaxContractAmount));
|
|
|
+// wzHouseInCustomerEntity.setTotalAreaSquaMete(formatDouble(cityRentArea));
|
|
|
+// wzHouseInCustomerEntity.setBusinessAreaSquaMete(formatDouble(citybusinessAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setOfficeAreaSquaMete(formatDouble(cityofficeAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setCommunicationRoomAreaSquaMete(formatDouble(citycommunicationRoomAreaSquaMete));
|
|
|
+// wzHouseInCustomerEntity.setOtherUsageAreaSquaMete(formatDouble(cityotherUsageAreaSquaMete));
|
|
|
+// double num=cityUnitPricePerSquareMeter/countyMap.size();
|
|
|
+// cityNum+=countyMap.size();
|
|
|
+// wzHouseInCustomerEntity.setUnitPricePerSquareMeter(formatDouble(num));
|
|
|
+// wzHouseInCustomerEntity.setChildren(orderCountyList);
|
|
|
+// cityList.add(wzHouseInCustomerEntity);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// //对cityList 进行排序
|
|
|
+// List<OtnAreaEntity> areaList=otnAreaService.getCityOption("018");
|
|
|
+// List<WzHouseLeaseInConEntity> orderList=new ArrayList<>();
|
|
|
+// int i=0;
|
|
|
+// for (OtnAreaEntity otnAreaEntity : areaList) {
|
|
|
+// for (WzHouseLeaseInConEntity wzCity : cityList) {
|
|
|
+// if(wzCity.getStandardAddressLevel2().contains(otnAreaEntity.getName())){
|
|
|
+// wzCity.setFlag(i%2==0);
|
|
|
+// i++;
|
|
|
+// orderList.add(wzCity);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// WzHouseLeaseInConEntity province=new WzHouseLeaseInConEntity();
|
|
|
+// province.setStandardAddressLevel2("全省");
|
|
|
+// province.setLeaInContracQuantity(formatDouble(allContractQuantity));
|
|
|
+// province.setTotalContrAmount(formatDouble(allNoTaxContractAmount));
|
|
|
+// province.setTotalAreaSquaMete(formatDouble(allRentArea));
|
|
|
+// if(cityList.size()!=0){
|
|
|
+// province.setUnitPricePerSquareMeter(formatDouble(allUnitPricePerSquareMeter/cityNum ));
|
|
|
+// }
|
|
|
+// province.setBusinessAreaSquaMete(formatDouble(allbusinessAreaSquaMete));
|
|
|
+// province.setOfficeAreaSquaMete(formatDouble(allofficeAreaSquaMete));
|
|
|
+// province.setCommunicationRoomAreaSquaMete(formatDouble(allcommunicationRoomAreaSquaMete));
|
|
|
+// province.setOtherUsageAreaSquaMete(formatDouble(allotherUsageAreaSquaMete));
|
|
|
+// province.setChildren(orderList);
|
|
|
+// if(orderList.size()>0){
|
|
|
+// resultList.add(province);
|
|
|
+// }
|
|
|
+// int total = wzHouseLeaseInConService.queryTotal(query);
|
|
|
+// PageUtils pageUtil = new PageUtils(resultList, total, query.getLimit(), query.getPage());
|
|
|
+// return R.ok().put("page", pageUtil);
|
|
|
+// }
|
|
|
+
|
|
|
+// /**
|
|
|
+// * 清单excel
|
|
|
+// */
|
|
|
+// @GetMapping("/excel")
|
|
|
+// @IgnoreAuth
|
|
|
+// public void excel(String statisticalMonth,String name,String buildingNameAlias,String city,String county, HttpServletResponse response) {
|
|
|
+// Map<String,Object> map1=new HashMap<>();
|
|
|
+// if(buildingNameAlias!=null){
|
|
|
+// map1.put("buildingNameAlias",buildingNameAlias);
|
|
|
+// }
|
|
|
+// if(buildingNameAlias!=null){
|
|
|
+// map1.put("statisticalMonth",statisticalMonth);
|
|
|
+// }
|
|
|
+// if(city!=null){
|
|
|
+// map1.put("city",city);
|
|
|
+// }
|
|
|
+// if(county!=null){
|
|
|
+// map1.put("county",county);
|
|
|
+// }
|
|
|
+//
|
|
|
+// DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
+// ExcelExport ee1;
|
|
|
+//
|
|
|
+// //判定是闲置管理还是记录
|
|
|
+// if(name.contains("合同管理")){
|
|
|
+// ee1= new ExcelExport("房屋租入_合同管理" + df.format(new Date()));
|
|
|
+// responseTab1(df,ee1,map1);
|
|
|
+// ee1.export(response);
|
|
|
+// }else if(name.contains("租入用途管理")){
|
|
|
+// ee1= new ExcelExport("房屋租入_租入用途管理" + df.format(new Date()));
|
|
|
+// responseTab2(df,ee1,map1);
|
|
|
+// ee1.export(response);
|
|
|
+// }else if(name.contains("租入房屋单价前10名")){
|
|
|
+// ee1= new ExcelExport("房屋租入_租入房屋单价前10名" + df.format(new Date()));
|
|
|
+// responseTab3(df,ee1,map1);
|
|
|
+// ee1.export(response);
|
|
|
+// }else if(name.contains("租入单价与平均单价比较")){
|
|
|
+// ee1= new ExcelExport("房屋租入_租入单价与平均单价比较" + df.format(new Date()));
|
|
|
+// responseTab4(df,ee1,map1);
|
|
|
+// ee1.export(response);
|
|
|
+// }else if(name.contains("租入合同记录")){
|
|
|
+// ee1= new ExcelExport("房屋租入_租入合同记录" + df.format(new Date()));
|
|
|
+// responseTab5(df,ee1,map1);
|
|
|
+// ee1.export(response);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
public void responseTab1(DateFormat df, ExcelExport ee1, Map<String, Object> map1){
|
|
|
//查询列表数据
|