|
@@ -1,13 +1,15 @@
|
|
|
package platform.modules.api.web;
|
|
package platform.modules.api.web;
|
|
|
|
|
|
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
-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 org.springframework.web.bind.annotation.*;
|
|
|
|
|
+import platform.modules.api.dto.SkyImageCount;
|
|
|
import platform.modules.api.dto.Sync;
|
|
import platform.modules.api.dto.Sync;
|
|
|
import platform.modules.api.service.SkyImageApiService;
|
|
import platform.modules.api.service.SkyImageApiService;
|
|
|
|
|
+import platform.modules.api.service.SkyImageCountApiService;
|
|
|
|
|
+import platform.modules.carrier.dto.CarrierLibraryResult;
|
|
|
|
|
+import platform.modules.carrier.entity.Building;
|
|
|
import platform.modules.government.entity.User;
|
|
import platform.modules.government.entity.User;
|
|
|
import platform.modules.sys.web.ResponseMessage;
|
|
import platform.modules.sys.web.ResponseMessage;
|
|
|
|
|
|
|
@@ -24,6 +26,9 @@ public class SkyImageApiController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SkyImageApiService skyImageApiService;
|
|
private SkyImageApiService skyImageApiService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private SkyImageCountApiService skyImageCountApiService;
|
|
|
|
|
+
|
|
|
@PostMapping("syncUserInfo")
|
|
@PostMapping("syncUserInfo")
|
|
|
public ResponseMessage syncSkyImageUserInfo(@RequestBody List<Sync> syncs){
|
|
public ResponseMessage syncSkyImageUserInfo(@RequestBody List<Sync> syncs){
|
|
|
if (!ObjectUtils.isEmpty(syncs)){
|
|
if (!ObjectUtils.isEmpty(syncs)){
|
|
@@ -34,4 +39,27 @@ public class SkyImageApiController {
|
|
|
}
|
|
}
|
|
|
return ResponseMessage.success("success");
|
|
return ResponseMessage.success("success");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/factoryBuilding")
|
|
|
|
|
+ public ResponseMessage factoryBuilding(){
|
|
|
|
|
+ List<SkyImageCount> counts = skyImageCountApiService.factoryBuilding();
|
|
|
|
|
+ return ResponseMessage.success("success", counts);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("parkCount")
|
|
|
|
|
+ public ResponseMessage parkCount(){
|
|
|
|
|
+ return ResponseMessage.success("success", skyImageCountApiService.getParkStatistic());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("streetCount")
|
|
|
|
|
+ public ResponseMessage streetCount(){
|
|
|
|
|
+ return ResponseMessage.success("success", skyImageCountApiService.getStreetStatistic());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("leaseBuilding")
|
|
|
|
|
+ public ResponseMessage leaseBuilding(String startTime, String endTime){
|
|
|
|
|
+
|
|
|
|
|
+ return ResponseMessage.success("success", skyImageCountApiService.leaseBuilding(startTime, endTime));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|