|
@@ -7,6 +7,8 @@ import com.project.zcustom.domain.addional.LargeBuildingControl;
|
|
|
import com.project.zcustom.mapper.unit.PlatBuildingMapper;
|
|
|
import com.project.zcustom.service.smart.IPlatBuildingService;
|
|
|
import com.project.zcustom.service.smart.IPlatGreenFoodsService;
|
|
|
+import com.project.zcustom.tools.ApiUrlConfig;
|
|
|
+import com.project.zcustom.tools.BuildingService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -22,6 +24,9 @@ public class PlatBuildingServiceImpl implements IPlatBuildingService {
|
|
|
@Autowired
|
|
|
private PlatBuildingMapper platBuildingMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private BuildingService buildingService;
|
|
|
+
|
|
|
public List<Map<String, Object>> getPowerAndWaterMonth(){
|
|
|
List<Map<String, Object>> resultList = new ArrayList<>();
|
|
|
|
|
@@ -307,8 +312,9 @@ public class PlatBuildingServiceImpl implements IPlatBuildingService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- public JSONArray getThisAmmeterDetail(){
|
|
|
+ public JSONArray getThisAmmeterDetail(String type){
|
|
|
// TODO
|
|
|
+ /*return buildingService.repeat(ApiUrlConfig.getControlElectricityDetail(), "type=" + type);*/
|
|
|
String str = "[\n" +
|
|
|
" {\n" +
|
|
|
" \"number\": \"1# 1-3\",\n" +
|
|
@@ -410,8 +416,11 @@ public class PlatBuildingServiceImpl implements IPlatBuildingService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- public JSONArray getAbnormalPoint(){
|
|
|
+ public JSONArray getAbnormalPoint(String type){
|
|
|
// TODO
|
|
|
+ /*
|
|
|
+ return buildingService.repeat(ApiUrlConfig.getControlAlertDetails(), "type=" + type);
|
|
|
+ */
|
|
|
String str = "[\n" +
|
|
|
" {\n" +
|
|
|
" \"alertTime\": \"2025-01-01 15:12:11\",\n" +
|