|
@@ -87,7 +87,7 @@ open class GraphicTypeController {
|
|
@PostMapping(value = ["/query-count"])
|
|
@PostMapping(value = ["/query-count"])
|
|
fun queryCount(): SQueryResponse<GraphicType> {
|
|
fun queryCount(): SQueryResponse<GraphicType> {
|
|
return graphicTypeMapperService.queryCounts()
|
|
return graphicTypeMapperService.queryCounts()
|
|
- } /* Fun pageQuery() */
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 下载模板
|
|
* 下载模板
|
|
@@ -96,7 +96,7 @@ open class GraphicTypeController {
|
|
@GetMapping(value = ["/template-downloads"])
|
|
@GetMapping(value = ["/template-downloads"])
|
|
fun templateDownloads(@RequestBody response: HttpServletResponse) {
|
|
fun templateDownloads(@RequestBody response: HttpServletResponse) {
|
|
RelationTypeProjectService.templateDownloads(response)
|
|
RelationTypeProjectService.templateDownloads(response)
|
|
- } // Fun templateDownloads
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 导出关系
|
|
* 导出关系
|
|
@@ -105,7 +105,7 @@ open class GraphicTypeController {
|
|
@GetMapping(value = ["/export"])
|
|
@GetMapping(value = ["/export"])
|
|
fun exportExcel( response: HttpServletResponse, @RequestParam projectId: String,@RequestParam relType: String,@RequestParam code: String = "对象ID", @RequestParam zoneType: String? = null) {
|
|
fun exportExcel( response: HttpServletResponse, @RequestParam projectId: String,@RequestParam relType: String,@RequestParam code: String = "对象ID", @RequestParam zoneType: String? = null) {
|
|
RelationTypeProjectService.exportExcel(response, projectId,relType, code, zoneType)
|
|
RelationTypeProjectService.exportExcel(response, projectId,relType, code, zoneType)
|
|
- } // Fun exportExcel
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 导入excel
|
|
* 导入excel
|
|
@@ -122,16 +122,16 @@ open class GraphicTypeController {
|
|
return SBaseResponse(SResponseType.failure,"error:" + e.message)
|
|
return SBaseResponse(SResponseType.failure,"error:" + e.message)
|
|
}
|
|
}
|
|
return SBaseResponse(SResponseType.success, "")
|
|
return SBaseResponse(SResponseType.success, "")
|
|
- } // Fun importExcel()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 下载报告
|
|
* 下载报告
|
|
*/
|
|
*/
|
|
@Operation(summary="下载报告", description ="")
|
|
@Operation(summary="下载报告", description ="")
|
|
@GetMapping(value = ["/report-downloads"])
|
|
@GetMapping(value = ["/report-downloads"])
|
|
- fun reportDownloads(@RequestBody response: HttpServletResponse, @RequestParam relType: String, @RequestParam zoneType: String? = null) {
|
|
|
|
- RelationTypeProjectService.reportDownloads(response, relType, zoneType)
|
|
|
|
- } // Fun reportDownloads()
|
|
|
|
|
|
+ fun reportDownloads(response: HttpServletResponse,@RequestParam projectId: String, @RequestParam relType: String, @RequestParam zoneType: String? = null) {
|
|
|
|
+ RelationTypeProjectService.reportDownloads(response,projectId, relType, zoneType)
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取源末端
|
|
* 获取源末端
|
|
@@ -140,7 +140,7 @@ open class GraphicTypeController {
|
|
@PostMapping(value = ["/connected-block-query"])
|
|
@PostMapping(value = ["/connected-block-query"])
|
|
fun connectedBlockQuery(@RequestBody request: SQueryRequest): SQueryResponse<ConnectedBlockResponse> {
|
|
fun connectedBlockQuery(@RequestBody request: SQueryRequest): SQueryResponse<ConnectedBlockResponse> {
|
|
return ConnectedBlockService.getConnectedBlock(request);
|
|
return ConnectedBlockService.getConnectedBlock(request);
|
|
- } // Fun connectedBlockQuery()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 覆盖源末端
|
|
* 覆盖源末端
|
|
@@ -149,7 +149,7 @@ open class GraphicTypeController {
|
|
@PostMapping(value = ["/replace-connected-block-source"])
|
|
@PostMapping(value = ["/replace-connected-block-source"])
|
|
fun replaceConnectedBlockSource(@RequestBody request: ConnectedBlockSourceRequest): SCreateResponse<ConnectedBlockSource> {
|
|
fun replaceConnectedBlockSource(@RequestBody request: ConnectedBlockSourceRequest): SCreateResponse<ConnectedBlockSource> {
|
|
return ConnectedBlockSourceService.replaceConnectedBlockSource(request)
|
|
return ConnectedBlockSourceService.replaceConnectedBlockSource(request)
|
|
- } // Fun replaceConnectedBlockSource()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -160,7 +160,7 @@ open class GraphicTypeController {
|
|
fun relationTypeProject(@RequestBody request: SQueryRequest): SQueryResponse<RelationTypeProject> {
|
|
fun relationTypeProject(@RequestBody request: SQueryRequest): SQueryResponse<RelationTypeProject> {
|
|
val service = SObjectService(RelationTypeProject::class.java)
|
|
val service = SObjectService(RelationTypeProject::class.java)
|
|
return service.pageQuery(request, arrayListOf(SFilter.eq("projectId", SPageContext.getHeader("projectId").toString())))
|
|
return service.pageQuery(request, arrayListOf(SFilter.eq("projectId", SPageContext.getHeader("projectId").toString())))
|
|
- } // Fun replaceConnectedBlockSource()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -170,7 +170,7 @@ open class GraphicTypeController {
|
|
@GetMapping(value = ["/export/point"])
|
|
@GetMapping(value = ["/export/point"])
|
|
fun exportExcelPoint(response: HttpServletResponse, @RequestParam buildingId: String,floorId: String,category: String) {
|
|
fun exportExcelPoint(response: HttpServletResponse, @RequestParam buildingId: String,floorId: String,category: String) {
|
|
RelationTypeProjectService.exportExcelPoint(response,buildingId,floorId,category)
|
|
RelationTypeProjectService.exportExcelPoint(response,buildingId,floorId,category)
|
|
- } // Fun exportExcel
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 导入excel
|
|
* 导入excel
|
|
@@ -186,12 +186,12 @@ open class GraphicTypeController {
|
|
}catch (e : Exception){
|
|
}catch (e : Exception){
|
|
return SBaseResponse(SResponseType.failure,"error:" + e.message)
|
|
return SBaseResponse(SResponseType.failure,"error:" + e.message)
|
|
}
|
|
}
|
|
- } // Fun importExcel()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
@Operation(summary="下载报告-点表", description="")
|
|
@Operation(summary="下载报告-点表", description="")
|
|
@GetMapping(value = ["/downloads/point"])
|
|
@GetMapping(value = ["/downloads/point"])
|
|
fun reportDownloadsPoint(response: HttpServletResponse, @RequestParam key: String) {
|
|
fun reportDownloadsPoint(response: HttpServletResponse, @RequestParam key: String) {
|
|
RelationTypeProjectService.reportDownloadsPoint(response, key)
|
|
RelationTypeProjectService.reportDownloadsPoint(response, key)
|
|
- } // Fun reportDownloads()
|
|
|
|
|
|
+ }
|
|
|
|
|
|
-} // Class EquipScanTaskController
|
|
|
|
|
|
+}
|