zhangqiankun 3 年之前
父节点
当前提交
6124998247
共有 1 个文件被更改,包括 23 次插入27 次删除
  1. 23 27
      src/main/java/com/persagy/proxy/report/controller/AdmSpaceInfoController.java

+ 23 - 27
src/main/java/com/persagy/proxy/report/controller/AdmSpaceInfoController.java

@@ -1,29 +1,32 @@
 package com.persagy.proxy.report.controller;
 
-import cn.hutool.core.util.StrUtil;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.QueryParam;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.alibaba.fastjson.JSONObject;
 import com.fasterxml.jackson.databind.node.JsonNodeFactory;
 import com.fasterxml.jackson.databind.node.ObjectNode;
 import com.persagy.dmp.common.constant.ResponseCode;
-import com.persagy.proxy.adm.constant.AdmCommonConstant;
 import com.persagy.proxy.adm.request.AdmDCSQueryRequest;
 import com.persagy.proxy.adm.request.AdmQueryCriteria;
 import com.persagy.proxy.adm.request.AdmResponse;
-import com.persagy.proxy.adm.service.IAdmRelationService;
 import com.persagy.proxy.adm.utils.AdmContextUtil;
 import com.persagy.proxy.object.model.AdmEquipment;
 import com.persagy.proxy.object.model.AdmISpace;
 import com.persagy.proxy.object.model.AdmSystem;
-import com.persagy.proxy.object.service.*;
-import lombok.RequiredArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import com.persagy.proxy.object.service.IAdmEquipmentService;
+import com.persagy.proxy.object.service.IAdmISpaceService;
+import com.persagy.proxy.object.service.IAdmSystemService;
 
-import javax.servlet.http.HttpServletRequest;
-import javax.ws.rs.QueryParam;
+import cn.hutool.core.util.StrUtil;
+import lombok.RequiredArgsConstructor;
 
 /**
  * 
@@ -37,22 +40,15 @@ import javax.ws.rs.QueryParam;
 @RequestMapping("/space")
 public class AdmSpaceInfoController {
 
-	public static final String EXPORT_SHEET_NAME = "关系维护";
-
 	@Value("${middleware.group.code}")
 	private String defaultCode;
 	@Autowired
-	private IAdmSpaceService spaceService;
-	@Autowired
 	private IAdmISpaceService ispaceService;
 	@Autowired
 	private IAdmSystemService systemService;
 	@Autowired
 	private IAdmEquipmentService equipmentService;
-	@Autowired
-	private IAdmRelationService relationService;
-	@Autowired
-	private IAdmFloorService floorService;
+	
 	/**
 	 * 统计 属于多建筑楼层的空间
 	 * 
@@ -60,12 +56,12 @@ public class AdmSpaceInfoController {
 	 * @return
 	 */
 	@RequestMapping("/space-bd-fl")
-	public AdmResponse queryCount(HttpServletRequest request) {
-		String groupCode = request.getHeader(AdmCommonConstant.GROUP_CODE_HEADER);
-		String projectId = request.getHeader(AdmCommonConstant.PROJECT_ID_HEADER);
-		AdmResponse response = AdmResponse.success();
-		response.setCount(0L);
-		return response;
+	public JSONObject queryCount(HttpServletRequest request) {
+		JSONObject result = new JSONObject();
+		result.put("count", 0);
+		result.put("message", "");
+		result.put("result", "success");
+		return result;
 	}
 
 	/**