From 106cced10b51430175bc6937f95b9439512f789d Mon Sep 17 00:00:00 2001 From: maotiantian Date: Tue, 21 Apr 2026 09:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetLifecycleManagementController.java | 104 ++++ .../DeviceRealtimeMonitoringController.java | 104 ++++ .../system/MapFeaturesController.java | 104 ++++ .../SpaceResourceManagementController.java | 104 ++++ .../domain/AssetLifecycleManagement.java | 379 +++++++++++++ .../domain/DeviceRealtimeMonitoring.java | 391 +++++++++++++ .../chenhai/system/domain/MapFeatures.java | 116 ++++ .../domain/SpaceResourceManagement.java | 422 ++++++++++++++ .../AssetLifecycleManagementMapper.java | 61 ++ .../DeviceRealtimeMonitoringMapper.java | 61 ++ .../system/mapper/MapFeaturesMapper.java | 61 ++ .../mapper/SpaceResourceManagementMapper.java | 61 ++ .../IAssetLifecycleManagementService.java | 61 ++ .../IDeviceRealtimeMonitoringService.java | 61 ++ .../system/service/IMapFeaturesService.java | 61 ++ .../ISpaceResourceManagementService.java | 61 ++ .../AssetLifecycleManagementServiceImpl.java | 96 ++++ .../DeviceRealtimeMonitoringServiceImpl.java | 96 ++++ .../service/impl/MapFeaturesServiceImpl.java | 93 ++++ .../SpaceResourceManagementServiceImpl.java | 96 ++++ .../system/AssetLifecycleManagementMapper.xml | 180 ++++++ .../system/DeviceRealtimeMonitoringMapper.xml | 178 ++++++ .../mapper/system/MapFeaturesMapper.xml | 76 +++ .../system/SpaceResourceManagementMapper.xml | 195 +++++++ chenhai-ui/src/api/system/features.js | 44 ++ chenhai-ui/src/api/system/management.js | 44 ++ chenhai-ui/src/api/system/monitoring.js | 44 ++ chenhai-ui/src/api/system/resource.js | 44 ++ .../src/views/system/features/index.vue | 314 +++++++++++ .../src/views/system/management/index.vue | 483 ++++++++++++++++ .../src/views/system/monitoring/index.vue | 465 ++++++++++++++++ .../src/views/system/resource/index.vue | 522 ++++++++++++++++++ 32 files changed, 5182 insertions(+) create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/system/AssetLifecycleManagementController.java create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/system/DeviceRealtimeMonitoringController.java create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/system/MapFeaturesController.java create mode 100644 chenhai-admin/src/main/java/com/chenhai/web/controller/system/SpaceResourceManagementController.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/domain/AssetLifecycleManagement.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/domain/DeviceRealtimeMonitoring.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/domain/MapFeatures.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/domain/SpaceResourceManagement.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/mapper/AssetLifecycleManagementMapper.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/mapper/DeviceRealtimeMonitoringMapper.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/mapper/MapFeaturesMapper.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/mapper/SpaceResourceManagementMapper.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/IAssetLifecycleManagementService.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/IDeviceRealtimeMonitoringService.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/IMapFeaturesService.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/ISpaceResourceManagementService.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/impl/AssetLifecycleManagementServiceImpl.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/impl/DeviceRealtimeMonitoringServiceImpl.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/impl/MapFeaturesServiceImpl.java create mode 100644 chenhai-system/src/main/java/com/chenhai/system/service/impl/SpaceResourceManagementServiceImpl.java create mode 100644 chenhai-system/src/main/resources/mapper/system/AssetLifecycleManagementMapper.xml create mode 100644 chenhai-system/src/main/resources/mapper/system/DeviceRealtimeMonitoringMapper.xml create mode 100644 chenhai-system/src/main/resources/mapper/system/MapFeaturesMapper.xml create mode 100644 chenhai-system/src/main/resources/mapper/system/SpaceResourceManagementMapper.xml create mode 100644 chenhai-ui/src/api/system/features.js create mode 100644 chenhai-ui/src/api/system/management.js create mode 100644 chenhai-ui/src/api/system/monitoring.js create mode 100644 chenhai-ui/src/api/system/resource.js create mode 100644 chenhai-ui/src/views/system/features/index.vue create mode 100644 chenhai-ui/src/views/system/management/index.vue create mode 100644 chenhai-ui/src/views/system/monitoring/index.vue create mode 100644 chenhai-ui/src/views/system/resource/index.vue diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/AssetLifecycleManagementController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/AssetLifecycleManagementController.java new file mode 100644 index 0000000..ac3c1aa --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/AssetLifecycleManagementController.java @@ -0,0 +1,104 @@ +package com.chenhai.web.controller.system; + +import java.util.List; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.system.domain.AssetLifecycleManagement; +import com.chenhai.system.service.IAssetLifecycleManagementService; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.common.core.page.TableDataInfo; + +/** + * 资产全生命周期管理Controller + * + * @author ruoyi + * @date 2026-04-16 + */ +@RestController +@RequestMapping("/system/management") +public class AssetLifecycleManagementController extends BaseController +{ + @Autowired + private IAssetLifecycleManagementService assetLifecycleManagementService; + + /** + * 查询资产全生命周期管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:management:list')") + @GetMapping("/list") + public TableDataInfo list(AssetLifecycleManagement assetLifecycleManagement) + { + startPage(); + List list = assetLifecycleManagementService.selectAssetLifecycleManagementList(assetLifecycleManagement); + return getDataTable(list); + } + + /** + * 导出资产全生命周期管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:management:export')") + @Log(title = "资产全生命周期管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AssetLifecycleManagement assetLifecycleManagement) + { + List list = assetLifecycleManagementService.selectAssetLifecycleManagementList(assetLifecycleManagement); + ExcelUtil util = new ExcelUtil(AssetLifecycleManagement.class); + util.exportExcel(response, list, "资产全生命周期管理数据"); + } + + /** + * 获取资产全生命周期管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:management:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(assetLifecycleManagementService.selectAssetLifecycleManagementById(id)); + } + + /** + * 新增资产全生命周期管理 + */ + @PreAuthorize("@ss.hasPermi('system:management:add')") + @Log(title = "资产全生命周期管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AssetLifecycleManagement assetLifecycleManagement) + { + return toAjax(assetLifecycleManagementService.insertAssetLifecycleManagement(assetLifecycleManagement)); + } + + /** + * 修改资产全生命周期管理 + */ + @PreAuthorize("@ss.hasPermi('system:management:edit')") + @Log(title = "资产全生命周期管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AssetLifecycleManagement assetLifecycleManagement) + { + return toAjax(assetLifecycleManagementService.updateAssetLifecycleManagement(assetLifecycleManagement)); + } + + /** + * 删除资产全生命周期管理 + */ + @PreAuthorize("@ss.hasPermi('system:management:remove')") + @Log(title = "资产全生命周期管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(assetLifecycleManagementService.deleteAssetLifecycleManagementByIds(ids)); + } +} diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/DeviceRealtimeMonitoringController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/DeviceRealtimeMonitoringController.java new file mode 100644 index 0000000..1588522 --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/DeviceRealtimeMonitoringController.java @@ -0,0 +1,104 @@ +package com.chenhai.web.controller.system; + +import java.util.List; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.system.domain.DeviceRealtimeMonitoring; +import com.chenhai.system.service.IDeviceRealtimeMonitoringService; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.common.core.page.TableDataInfo; + +/** + * 设备实时状态监控Controller + * + * @author ruoyi + * @date 2026-04-16 + */ +@RestController +@RequestMapping("/system/monitoring") +public class DeviceRealtimeMonitoringController extends BaseController +{ + @Autowired + private IDeviceRealtimeMonitoringService deviceRealtimeMonitoringService; + + /** + * 查询设备实时状态监控列表 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:list')") + @GetMapping("/list") + public TableDataInfo list(DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + startPage(); + List list = deviceRealtimeMonitoringService.selectDeviceRealtimeMonitoringList(deviceRealtimeMonitoring); + return getDataTable(list); + } + + /** + * 导出设备实时状态监控列表 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:export')") + @Log(title = "设备实时状态监控", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + List list = deviceRealtimeMonitoringService.selectDeviceRealtimeMonitoringList(deviceRealtimeMonitoring); + ExcelUtil util = new ExcelUtil(DeviceRealtimeMonitoring.class); + util.exportExcel(response, list, "设备实时状态监控数据"); + } + + /** + * 获取设备实时状态监控详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(deviceRealtimeMonitoringService.selectDeviceRealtimeMonitoringById(id)); + } + + /** + * 新增设备实时状态监控 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:add')") + @Log(title = "设备实时状态监控", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + return toAjax(deviceRealtimeMonitoringService.insertDeviceRealtimeMonitoring(deviceRealtimeMonitoring)); + } + + /** + * 修改设备实时状态监控 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:edit')") + @Log(title = "设备实时状态监控", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + return toAjax(deviceRealtimeMonitoringService.updateDeviceRealtimeMonitoring(deviceRealtimeMonitoring)); + } + + /** + * 删除设备实时状态监控 + */ + @PreAuthorize("@ss.hasPermi('system:monitoring:remove')") + @Log(title = "设备实时状态监控", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(deviceRealtimeMonitoringService.deleteDeviceRealtimeMonitoringByIds(ids)); + } +} diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/MapFeaturesController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/MapFeaturesController.java new file mode 100644 index 0000000..5bcd55a --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/MapFeaturesController.java @@ -0,0 +1,104 @@ +package com.chenhai.web.controller.system; + +import java.util.List; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.system.domain.MapFeatures; +import com.chenhai.system.service.IMapFeaturesService; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.common.core.page.TableDataInfo; + +/** + * 地图配套标注管理Controller + * + * @author ruoyi + * @date 2026-04-17 + */ +@RestController +@RequestMapping("/system/features") +public class MapFeaturesController extends BaseController +{ + @Autowired + private IMapFeaturesService mapFeaturesService; + + /** + * 查询地图配套标注管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:features:list')") + @GetMapping("/list") + public TableDataInfo list(MapFeatures mapFeatures) + { + startPage(); + List list = mapFeaturesService.selectMapFeaturesList(mapFeatures); + return getDataTable(list); + } + + /** + * 导出地图配套标注管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:features:export')") + @Log(title = "地图配套标注管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, MapFeatures mapFeatures) + { + List list = mapFeaturesService.selectMapFeaturesList(mapFeatures); + ExcelUtil util = new ExcelUtil(MapFeatures.class); + util.exportExcel(response, list, "地图配套标注管理数据"); + } + + /** + * 获取地图配套标注管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:features:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(mapFeaturesService.selectMapFeaturesById(id)); + } + + /** + * 新增地图配套标注管理 + */ + @PreAuthorize("@ss.hasPermi('system:features:add')") + @Log(title = "地图配套标注管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody MapFeatures mapFeatures) + { + return toAjax(mapFeaturesService.insertMapFeatures(mapFeatures)); + } + + /** + * 修改地图配套标注管理 + */ + @PreAuthorize("@ss.hasPermi('system:features:edit')") + @Log(title = "地图配套标注管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody MapFeatures mapFeatures) + { + return toAjax(mapFeaturesService.updateMapFeatures(mapFeatures)); + } + + /** + * 删除地图配套标注管理 + */ + @PreAuthorize("@ss.hasPermi('system:features:remove')") + @Log(title = "地图配套标注管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(mapFeaturesService.deleteMapFeaturesByIds(ids)); + } +} diff --git a/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SpaceResourceManagementController.java b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SpaceResourceManagementController.java new file mode 100644 index 0000000..428313e --- /dev/null +++ b/chenhai-admin/src/main/java/com/chenhai/web/controller/system/SpaceResourceManagementController.java @@ -0,0 +1,104 @@ +package com.chenhai.web.controller.system; + +import java.util.List; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.chenhai.common.annotation.Log; +import com.chenhai.common.core.controller.BaseController; +import com.chenhai.common.core.domain.AjaxResult; +import com.chenhai.common.enums.BusinessType; +import com.chenhai.system.domain.SpaceResourceManagement; +import com.chenhai.system.service.ISpaceResourceManagementService; +import com.chenhai.common.utils.poi.ExcelUtil; +import com.chenhai.common.core.page.TableDataInfo; + +/** + * 空间资源管理Controller + * + * @author ruoyi + * @date 2026-04-16 + */ +@RestController +@RequestMapping("/system/resource") +public class SpaceResourceManagementController extends BaseController +{ + @Autowired + private ISpaceResourceManagementService spaceResourceManagementService; + + /** + * 查询空间资源管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:resource:list')") + @GetMapping("/list") + public TableDataInfo list(SpaceResourceManagement spaceResourceManagement) + { + startPage(); + List list = spaceResourceManagementService.selectSpaceResourceManagementList(spaceResourceManagement); + return getDataTable(list); + } + + /** + * 导出空间资源管理列表 + */ + @PreAuthorize("@ss.hasPermi('system:resource:export')") + @Log(title = "空间资源管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SpaceResourceManagement spaceResourceManagement) + { + List list = spaceResourceManagementService.selectSpaceResourceManagementList(spaceResourceManagement); + ExcelUtil util = new ExcelUtil(SpaceResourceManagement.class); + util.exportExcel(response, list, "空间资源管理数据"); + } + + /** + * 获取空间资源管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:resource:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(spaceResourceManagementService.selectSpaceResourceManagementById(id)); + } + + /** + * 新增空间资源管理 + */ + @PreAuthorize("@ss.hasPermi('system:resource:add')") + @Log(title = "空间资源管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SpaceResourceManagement spaceResourceManagement) + { + return toAjax(spaceResourceManagementService.insertSpaceResourceManagement(spaceResourceManagement)); + } + + /** + * 修改空间资源管理 + */ + @PreAuthorize("@ss.hasPermi('system:resource:edit')") + @Log(title = "空间资源管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SpaceResourceManagement spaceResourceManagement) + { + return toAjax(spaceResourceManagementService.updateSpaceResourceManagement(spaceResourceManagement)); + } + + /** + * 删除空间资源管理 + */ + @PreAuthorize("@ss.hasPermi('system:resource:remove')") + @Log(title = "空间资源管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(spaceResourceManagementService.deleteSpaceResourceManagementByIds(ids)); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/AssetLifecycleManagement.java b/chenhai-system/src/main/java/com/chenhai/system/domain/AssetLifecycleManagement.java new file mode 100644 index 0000000..6dddb72 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/AssetLifecycleManagement.java @@ -0,0 +1,379 @@ +package com.chenhai.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; + +/** + * 资产全生命周期管理对象 asset_lifecycle_management + * + * @author ruoyi + * @date 2026-04-16 + */ +public class AssetLifecycleManagement extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 资产编号(唯一标识) */ + @Excel(name = "资产编号", readConverterExp = "唯=一标识") + private String assetCode; + + /** 资产名称 */ + @Excel(name = "资产名称") + private String assetName; + + /** 资产类型(摄像头/灌溉系统/座椅/垃圾桶等) */ + @Excel(name = "资产类型", readConverterExp = "摄=像头/灌溉系统/座椅/垃圾桶等") + private String assetType; + + /** 资产分类(如:监控设备/基础设施) */ + @Excel(name = "资产分类", readConverterExp = "如=:监控设备/基础设施") + private String assetCategory; + + /** 品牌型号 */ + @Excel(name = "品牌型号") + private String model; + + /** 生产厂家 */ + @Excel(name = "生产厂家") + private String manufacturer; + + /** 供应商 */ + @Excel(name = "供应商") + private String supplier; + + /** 采购日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date purchaseDate; + + /** 采购价格(元) */ + @Excel(name = "采购价格", readConverterExp = "元=") + private BigDecimal purchasePrice; + + /** 保修开始日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "保修开始日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date warrantyStartDate; + + /** 保修结束日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "保修结束日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date warrantyEndDate; + + /** 安装位置/存放位置 */ + @Excel(name = "安装位置/存放位置") + private String location; + + /** 经度(GIS定位) */ + @Excel(name = "经度", readConverterExp = "G=IS定位") + private BigDecimal longitude; + + /** 纬度(GIS定位) */ + @Excel(name = "纬度", readConverterExp = "G=IS定位") + private BigDecimal latitude; + + /** 资产状态(1-正常 2-维修中 3-报废 4-闲置) */ + @Excel(name = "资产状态", readConverterExp = "1=-正常,2=-维修中,3=-报废,4=-闲置") + private Integer status; + + /** 健康状态(1-良好 2-一般 3-待维修 4-严重) */ + @Excel(name = "健康状态", readConverterExp = "1=-良好,2=-一般,3=-待维修,4=-严重") + private Integer healthStatus; + + /** 责任部门 */ + @Excel(name = "责任部门") + private String responsibleDepartment; + + /** 责任人 */ + @Excel(name = "责任人") + private String responsiblePerson; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String contactPhone; + + /** 最近维护日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最近维护日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastMaintenanceDate; + + /** 下次维护日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "下次维护日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date nextMaintenanceDate; + + /** 删除标志(0-正常 1-已删除) */ + private Integer delFlag; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setAssetCode(String assetCode) + { + this.assetCode = assetCode; + } + + public String getAssetCode() + { + return assetCode; + } + + public void setAssetName(String assetName) + { + this.assetName = assetName; + } + + public String getAssetName() + { + return assetName; + } + + public void setAssetType(String assetType) + { + this.assetType = assetType; + } + + public String getAssetType() + { + return assetType; + } + + public void setAssetCategory(String assetCategory) + { + this.assetCategory = assetCategory; + } + + public String getAssetCategory() + { + return assetCategory; + } + + public void setModel(String model) + { + this.model = model; + } + + public String getModel() + { + return model; + } + + public void setManufacturer(String manufacturer) + { + this.manufacturer = manufacturer; + } + + public String getManufacturer() + { + return manufacturer; + } + + public void setSupplier(String supplier) + { + this.supplier = supplier; + } + + public String getSupplier() + { + return supplier; + } + + public void setPurchaseDate(Date purchaseDate) + { + this.purchaseDate = purchaseDate; + } + + public Date getPurchaseDate() + { + return purchaseDate; + } + + public void setPurchasePrice(BigDecimal purchasePrice) + { + this.purchasePrice = purchasePrice; + } + + public BigDecimal getPurchasePrice() + { + return purchasePrice; + } + + public void setWarrantyStartDate(Date warrantyStartDate) + { + this.warrantyStartDate = warrantyStartDate; + } + + public Date getWarrantyStartDate() + { + return warrantyStartDate; + } + + public void setWarrantyEndDate(Date warrantyEndDate) + { + this.warrantyEndDate = warrantyEndDate; + } + + public Date getWarrantyEndDate() + { + return warrantyEndDate; + } + + public void setLocation(String location) + { + this.location = location; + } + + public String getLocation() + { + return location; + } + + public void setLongitude(BigDecimal longitude) + { + this.longitude = longitude; + } + + public BigDecimal getLongitude() + { + return longitude; + } + + public void setLatitude(BigDecimal latitude) + { + this.latitude = latitude; + } + + public BigDecimal getLatitude() + { + return latitude; + } + + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + public void setHealthStatus(Integer healthStatus) + { + this.healthStatus = healthStatus; + } + + public Integer getHealthStatus() + { + return healthStatus; + } + + public void setResponsibleDepartment(String responsibleDepartment) + { + this.responsibleDepartment = responsibleDepartment; + } + + public String getResponsibleDepartment() + { + return responsibleDepartment; + } + + public void setResponsiblePerson(String responsiblePerson) + { + this.responsiblePerson = responsiblePerson; + } + + public String getResponsiblePerson() + { + return responsiblePerson; + } + + public void setContactPhone(String contactPhone) + { + this.contactPhone = contactPhone; + } + + public String getContactPhone() + { + return contactPhone; + } + + public void setLastMaintenanceDate(Date lastMaintenanceDate) + { + this.lastMaintenanceDate = lastMaintenanceDate; + } + + public Date getLastMaintenanceDate() + { + return lastMaintenanceDate; + } + + public void setNextMaintenanceDate(Date nextMaintenanceDate) + { + this.nextMaintenanceDate = nextMaintenanceDate; + } + + public Date getNextMaintenanceDate() + { + return nextMaintenanceDate; + } + + public void setDelFlag(Integer delFlag) + { + this.delFlag = delFlag; + } + + public Integer getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("assetCode", getAssetCode()) + .append("assetName", getAssetName()) + .append("assetType", getAssetType()) + .append("assetCategory", getAssetCategory()) + .append("model", getModel()) + .append("manufacturer", getManufacturer()) + .append("supplier", getSupplier()) + .append("purchaseDate", getPurchaseDate()) + .append("purchasePrice", getPurchasePrice()) + .append("warrantyStartDate", getWarrantyStartDate()) + .append("warrantyEndDate", getWarrantyEndDate()) + .append("location", getLocation()) + .append("longitude", getLongitude()) + .append("latitude", getLatitude()) + .append("status", getStatus()) + .append("healthStatus", getHealthStatus()) + .append("responsibleDepartment", getResponsibleDepartment()) + .append("responsiblePerson", getResponsiblePerson()) + .append("contactPhone", getContactPhone()) + .append("lastMaintenanceDate", getLastMaintenanceDate()) + .append("nextMaintenanceDate", getNextMaintenanceDate()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/DeviceRealtimeMonitoring.java b/chenhai-system/src/main/java/com/chenhai/system/domain/DeviceRealtimeMonitoring.java new file mode 100644 index 0000000..91f494a --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/DeviceRealtimeMonitoring.java @@ -0,0 +1,391 @@ +package com.chenhai.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; + +/** + * 设备实时状态监控对象 device_realtime_monitoring + * + * @author ruoyi + * @date 2026-04-16 + */ +public class DeviceRealtimeMonitoring extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 设备编号(关联资产表) */ + @Excel(name = "设备编号", readConverterExp = "关=联资产表") + private String deviceCode; + + /** 设备名称 */ + @Excel(name = "设备名称") + private String deviceName; + + /** 设备类型(摄像头/传感器/网关等) */ + @Excel(name = "设备类型", readConverterExp = "摄=像头/传感器/网关等") + private String deviceType; + + /** 在线状态(0-离线 1-在线 2-休眠) */ + @Excel(name = "在线状态", readConverterExp = "0=-离线,1=-在线,2=-休眠") + private Integer onlineStatus; + + /** 最后在线时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后在线时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastOnlineTime; + + /** 离线时长(分钟) */ + @Excel(name = "离线时长", readConverterExp = "分=钟") + private Long offlineDuration; + + /** 信号强度(0-100,数值越大信号越好) */ + @Excel(name = "信号强度", readConverterExp = "0=-100,数值越大信号越好") + private Integer signalStrength; + + /** 信号等级(强/中/弱/无) */ + @Excel(name = "信号等级", readConverterExp = "强=/中/弱/无") + private String signalLevel; + + /** 已用存储空间(字节) */ + @Excel(name = "已用存储空间", readConverterExp = "字=节") + private Long storageUsed; + + /** 总存储空间(字节) */ + @Excel(name = "总存储空间", readConverterExp = "字=节") + private Long storageTotal; + + /** 存储使用率(%) */ + @Excel(name = "存储使用率", readConverterExp = "%=") + private BigDecimal storageUsageRate; + + /** CPU使用率(%) */ + @Excel(name = "CPU使用率", readConverterExp = "%=") + private BigDecimal cpuUsage; + + /** 内存使用率(%) */ + @Excel(name = "内存使用率", readConverterExp = "%=") + private BigDecimal memoryUsage; + + /** 磁盘使用率(%) */ + @Excel(name = "磁盘使用率", readConverterExp = "%=") + private BigDecimal diskUsage; + + /** 设备温度(℃) */ + @Excel(name = "设备温度", readConverterExp = "℃=") + private BigDecimal deviceTemperature; + + /** 最后心跳时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后心跳时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastHeartbeatTime; + + /** 异常状态(多个用逗号分隔) */ + @Excel(name = "异常状态", readConverterExp = "多=个用逗号分隔") + private String abnormalStatus; + + /** 是否告警(0-否 1-是) */ + @Excel(name = "是否告警", readConverterExp = "0=-否,1=-是") + private Integer isAlert; + + /** 告警信息 */ + @Excel(name = "告警信息") + private String alertMessage; + + /** 告警时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date alertTime; + + /** 固件版本 */ + @Excel(name = "固件版本") + private String firmwareVersion; + + /** IP地址 */ + @Excel(name = "IP地址") + private String ipAddress; + + /** MAC地址 */ + @Excel(name = "MAC地址") + private String macAddress; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setDeviceCode(String deviceCode) + { + this.deviceCode = deviceCode; + } + + public String getDeviceCode() + { + return deviceCode; + } + + public void setDeviceName(String deviceName) + { + this.deviceName = deviceName; + } + + public String getDeviceName() + { + return deviceName; + } + + public void setDeviceType(String deviceType) + { + this.deviceType = deviceType; + } + + public String getDeviceType() + { + return deviceType; + } + + public void setOnlineStatus(Integer onlineStatus) + { + this.onlineStatus = onlineStatus; + } + + public Integer getOnlineStatus() + { + return onlineStatus; + } + + public void setLastOnlineTime(Date lastOnlineTime) + { + this.lastOnlineTime = lastOnlineTime; + } + + public Date getLastOnlineTime() + { + return lastOnlineTime; + } + + public void setOfflineDuration(Long offlineDuration) + { + this.offlineDuration = offlineDuration; + } + + public Long getOfflineDuration() + { + return offlineDuration; + } + + public void setSignalStrength(Integer signalStrength) + { + this.signalStrength = signalStrength; + } + + public Integer getSignalStrength() + { + return signalStrength; + } + + public void setSignalLevel(String signalLevel) + { + this.signalLevel = signalLevel; + } + + public String getSignalLevel() + { + return signalLevel; + } + + public void setStorageUsed(Long storageUsed) + { + this.storageUsed = storageUsed; + } + + public Long getStorageUsed() + { + return storageUsed; + } + + public void setStorageTotal(Long storageTotal) + { + this.storageTotal = storageTotal; + } + + public Long getStorageTotal() + { + return storageTotal; + } + + public void setStorageUsageRate(BigDecimal storageUsageRate) + { + this.storageUsageRate = storageUsageRate; + } + + public BigDecimal getStorageUsageRate() + { + return storageUsageRate; + } + + public void setCpuUsage(BigDecimal cpuUsage) + { + this.cpuUsage = cpuUsage; + } + + public BigDecimal getCpuUsage() + { + return cpuUsage; + } + + public void setMemoryUsage(BigDecimal memoryUsage) + { + this.memoryUsage = memoryUsage; + } + + public BigDecimal getMemoryUsage() + { + return memoryUsage; + } + + public void setDiskUsage(BigDecimal diskUsage) + { + this.diskUsage = diskUsage; + } + + public BigDecimal getDiskUsage() + { + return diskUsage; + } + + public void setDeviceTemperature(BigDecimal deviceTemperature) + { + this.deviceTemperature = deviceTemperature; + } + + public BigDecimal getDeviceTemperature() + { + return deviceTemperature; + } + + public void setLastHeartbeatTime(Date lastHeartbeatTime) + { + this.lastHeartbeatTime = lastHeartbeatTime; + } + + public Date getLastHeartbeatTime() + { + return lastHeartbeatTime; + } + + public void setAbnormalStatus(String abnormalStatus) + { + this.abnormalStatus = abnormalStatus; + } + + public String getAbnormalStatus() + { + return abnormalStatus; + } + + public void setIsAlert(Integer isAlert) + { + this.isAlert = isAlert; + } + + public Integer getIsAlert() + { + return isAlert; + } + + public void setAlertMessage(String alertMessage) + { + this.alertMessage = alertMessage; + } + + public String getAlertMessage() + { + return alertMessage; + } + + public void setAlertTime(Date alertTime) + { + this.alertTime = alertTime; + } + + public Date getAlertTime() + { + return alertTime; + } + + public void setFirmwareVersion(String firmwareVersion) + { + this.firmwareVersion = firmwareVersion; + } + + public String getFirmwareVersion() + { + return firmwareVersion; + } + + public void setIpAddress(String ipAddress) + { + this.ipAddress = ipAddress; + } + + public String getIpAddress() + { + return ipAddress; + } + + public void setMacAddress(String macAddress) + { + this.macAddress = macAddress; + } + + public String getMacAddress() + { + return macAddress; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("deviceCode", getDeviceCode()) + .append("deviceName", getDeviceName()) + .append("deviceType", getDeviceType()) + .append("onlineStatus", getOnlineStatus()) + .append("lastOnlineTime", getLastOnlineTime()) + .append("offlineDuration", getOfflineDuration()) + .append("signalStrength", getSignalStrength()) + .append("signalLevel", getSignalLevel()) + .append("storageUsed", getStorageUsed()) + .append("storageTotal", getStorageTotal()) + .append("storageUsageRate", getStorageUsageRate()) + .append("cpuUsage", getCpuUsage()) + .append("memoryUsage", getMemoryUsage()) + .append("diskUsage", getDiskUsage()) + .append("deviceTemperature", getDeviceTemperature()) + .append("lastHeartbeatTime", getLastHeartbeatTime()) + .append("abnormalStatus", getAbnormalStatus()) + .append("isAlert", getIsAlert()) + .append("alertMessage", getAlertMessage()) + .append("alertTime", getAlertTime()) + .append("firmwareVersion", getFirmwareVersion()) + .append("ipAddress", getIpAddress()) + .append("macAddress", getMacAddress()) + .append("remark", getRemark()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/MapFeatures.java b/chenhai-system/src/main/java/com/chenhai/system/domain/MapFeatures.java new file mode 100644 index 0000000..8922361 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/MapFeatures.java @@ -0,0 +1,116 @@ +package com.chenhai.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; + +/** + * 地图配套标注管理对象 map_features + * + * @author ruoyi + * @date 2026-04-17 + */ +public class MapFeatures extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 设施名称 */ + @Excel(name = "设施名称") + private String name; + + /** 设施类型 */ + @Excel(name = "设施类型") + private String type; + + /** 经度 */ + @Excel(name = "经度") + private BigDecimal longitude; + + /** 纬度 */ + @Excel(name = "纬度") + private BigDecimal latitude; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date createdAt; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + + public void setLongitude(BigDecimal longitude) + { + this.longitude = longitude; + } + + public BigDecimal getLongitude() + { + return longitude; + } + + public void setLatitude(BigDecimal latitude) + { + this.latitude = latitude; + } + + public BigDecimal getLatitude() + { + return latitude; + } + + public void setCreatedAt(Date createdAt) + { + this.createdAt = createdAt; + } + + public Date getCreatedAt() + { + return createdAt; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("type", getType()) + .append("longitude", getLongitude()) + .append("latitude", getLatitude()) + .append("createdAt", getCreatedAt()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/domain/SpaceResourceManagement.java b/chenhai-system/src/main/java/com/chenhai/system/domain/SpaceResourceManagement.java new file mode 100644 index 0000000..d75d121 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/domain/SpaceResourceManagement.java @@ -0,0 +1,422 @@ +package com.chenhai.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.chenhai.common.annotation.Excel; +import com.chenhai.common.core.domain.BaseEntity; + +/** + * 空间资源管理对象 space_resource_management + * + * @author ruoyi + * @date 2026-04-16 + */ +public class SpaceResourceManagement extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 资源编号(唯一标识) */ + @Excel(name = "资源编号", readConverterExp = "唯=一标识") + private String resourceCode; + + /** 资源名称 */ + @Excel(name = "资源名称") + private String resourceName; + + /** 资源类型(绿地/古树名木/灌溉系统/座椅/垃圾桶等) */ + @Excel(name = "资源类型", readConverterExp = "绿=地/古树名木/灌溉系统/座椅/垃圾桶等") + private String resourceType; + + /** 资源子类型(如古树名木可细分:一级古树/二级古树/名木) */ + @Excel(name = "资源子类型", readConverterExp = "如=古树名木可细分:一级古树/二级古树/名木") + private String resourceSubtype; + + /** 植物学名(古树名木专用) */ + @Excel(name = "植物学名", readConverterExp = "古=树名木专用") + private String scientificName; + + /** 科属(古树名木专用) */ + @Excel(name = "科属", readConverterExp = "古=树名木专用") + private String familyGenus; + + /** 树龄(年,古树名木专用) */ + @Excel(name = "树龄", readConverterExp = "年=,古树名木专用") + private Long age; + + /** 保护级别(古树名木专用:国家一级/国家二级/地方级) */ + @Excel(name = "保护级别", readConverterExp = "古=树名木专用:国家一级/国家二级/地方级") + private String protectionLevel; + + /** 详细位置 */ + @Excel(name = "详细位置") + private String locationDetail; + + /** 经度(GIS定位) */ + @Excel(name = "经度", readConverterExp = "G=IS定位") + private BigDecimal longitude; + + /** 纬度(GIS定位) */ + @Excel(name = "纬度", readConverterExp = "G=IS定位") + private BigDecimal latitude; + + /** 占地面积(平方米,绿地/设施区域专用) */ + @Excel(name = "占地面积", readConverterExp = "平=方米,绿地/设施区域专用") + private BigDecimal areaSize; + + /** 高度(米,古树/设施专用) */ + @Excel(name = "高度", readConverterExp = "米=,古树/设施专用") + private BigDecimal height; + + /** 材质(座椅/垃圾桶等设施专用) */ + @Excel(name = "材质", readConverterExp = "座=椅/垃圾桶等设施专用") + private String material; + + /** 生产厂家 */ + @Excel(name = "生产厂家") + private String manufacturer; + + /** 安装/种植日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "安装/种植日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date installationDate; + + /** 状态(1-正常 2-损坏 3-维护中 4-已移除) */ + @Excel(name = "状态", readConverterExp = "1=-正常,2=-损坏,3=-维护中,4=-已移除") + private Integer status; + + /** 责任部门 */ + @Excel(name = "责任部门") + private String responsibleDepartment; + + /** 责任人 */ + @Excel(name = "责任人") + private String responsiblePerson; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String contactPhone; + + /** 最近巡检日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最近巡检日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastInspectionDate; + + /** 下次巡检日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "下次巡检日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date nextInspectionDate; + + /** 巡检周期(天) */ + @Excel(name = "巡检周期", readConverterExp = "天=") + private Long inspectionCycle; + + /** 图片URL */ + @Excel(name = "图片URL") + private String imageUrl; + + /** 删除标志(0-正常 1-已删除) */ + private Integer delFlag; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setResourceCode(String resourceCode) + { + this.resourceCode = resourceCode; + } + + public String getResourceCode() + { + return resourceCode; + } + + public void setResourceName(String resourceName) + { + this.resourceName = resourceName; + } + + public String getResourceName() + { + return resourceName; + } + + public void setResourceType(String resourceType) + { + this.resourceType = resourceType; + } + + public String getResourceType() + { + return resourceType; + } + + public void setResourceSubtype(String resourceSubtype) + { + this.resourceSubtype = resourceSubtype; + } + + public String getResourceSubtype() + { + return resourceSubtype; + } + + public void setScientificName(String scientificName) + { + this.scientificName = scientificName; + } + + public String getScientificName() + { + return scientificName; + } + + public void setFamilyGenus(String familyGenus) + { + this.familyGenus = familyGenus; + } + + public String getFamilyGenus() + { + return familyGenus; + } + + public void setAge(Long age) + { + this.age = age; + } + + public Long getAge() + { + return age; + } + + public void setProtectionLevel(String protectionLevel) + { + this.protectionLevel = protectionLevel; + } + + public String getProtectionLevel() + { + return protectionLevel; + } + + public void setLocationDetail(String locationDetail) + { + this.locationDetail = locationDetail; + } + + public String getLocationDetail() + { + return locationDetail; + } + + public void setLongitude(BigDecimal longitude) + { + this.longitude = longitude; + } + + public BigDecimal getLongitude() + { + return longitude; + } + + public void setLatitude(BigDecimal latitude) + { + this.latitude = latitude; + } + + public BigDecimal getLatitude() + { + return latitude; + } + + public void setAreaSize(BigDecimal areaSize) + { + this.areaSize = areaSize; + } + + public BigDecimal getAreaSize() + { + return areaSize; + } + + public void setHeight(BigDecimal height) + { + this.height = height; + } + + public BigDecimal getHeight() + { + return height; + } + + public void setMaterial(String material) + { + this.material = material; + } + + public String getMaterial() + { + return material; + } + + public void setManufacturer(String manufacturer) + { + this.manufacturer = manufacturer; + } + + public String getManufacturer() + { + return manufacturer; + } + + public void setInstallationDate(Date installationDate) + { + this.installationDate = installationDate; + } + + public Date getInstallationDate() + { + return installationDate; + } + + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + public void setResponsibleDepartment(String responsibleDepartment) + { + this.responsibleDepartment = responsibleDepartment; + } + + public String getResponsibleDepartment() + { + return responsibleDepartment; + } + + public void setResponsiblePerson(String responsiblePerson) + { + this.responsiblePerson = responsiblePerson; + } + + public String getResponsiblePerson() + { + return responsiblePerson; + } + + public void setContactPhone(String contactPhone) + { + this.contactPhone = contactPhone; + } + + public String getContactPhone() + { + return contactPhone; + } + + public void setLastInspectionDate(Date lastInspectionDate) + { + this.lastInspectionDate = lastInspectionDate; + } + + public Date getLastInspectionDate() + { + return lastInspectionDate; + } + + public void setNextInspectionDate(Date nextInspectionDate) + { + this.nextInspectionDate = nextInspectionDate; + } + + public Date getNextInspectionDate() + { + return nextInspectionDate; + } + + public void setInspectionCycle(Long inspectionCycle) + { + this.inspectionCycle = inspectionCycle; + } + + public Long getInspectionCycle() + { + return inspectionCycle; + } + + public void setImageUrl(String imageUrl) + { + this.imageUrl = imageUrl; + } + + public String getImageUrl() + { + return imageUrl; + } + + public void setDelFlag(Integer delFlag) + { + this.delFlag = delFlag; + } + + public Integer getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("resourceCode", getResourceCode()) + .append("resourceName", getResourceName()) + .append("resourceType", getResourceType()) + .append("resourceSubtype", getResourceSubtype()) + .append("scientificName", getScientificName()) + .append("familyGenus", getFamilyGenus()) + .append("age", getAge()) + .append("protectionLevel", getProtectionLevel()) + .append("locationDetail", getLocationDetail()) + .append("longitude", getLongitude()) + .append("latitude", getLatitude()) + .append("areaSize", getAreaSize()) + .append("height", getHeight()) + .append("material", getMaterial()) + .append("manufacturer", getManufacturer()) + .append("installationDate", getInstallationDate()) + .append("status", getStatus()) + .append("responsibleDepartment", getResponsibleDepartment()) + .append("responsiblePerson", getResponsiblePerson()) + .append("contactPhone", getContactPhone()) + .append("lastInspectionDate", getLastInspectionDate()) + .append("nextInspectionDate", getNextInspectionDate()) + .append("inspectionCycle", getInspectionCycle()) + .append("imageUrl", getImageUrl()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .toString(); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/AssetLifecycleManagementMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/AssetLifecycleManagementMapper.java new file mode 100644 index 0000000..312eed7 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/AssetLifecycleManagementMapper.java @@ -0,0 +1,61 @@ +package com.chenhai.system.mapper; + +import java.util.List; +import com.chenhai.system.domain.AssetLifecycleManagement; + +/** + * 资产全生命周期管理Mapper接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface AssetLifecycleManagementMapper +{ + /** + * 查询资产全生命周期管理 + * + * @param id 资产全生命周期管理主键 + * @return 资产全生命周期管理 + */ + public AssetLifecycleManagement selectAssetLifecycleManagementById(Long id); + + /** + * 查询资产全生命周期管理列表 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 资产全生命周期管理集合 + */ + public List selectAssetLifecycleManagementList(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 新增资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + public int insertAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 修改资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + public int updateAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 删除资产全生命周期管理 + * + * @param id 资产全生命周期管理主键 + * @return 结果 + */ + public int deleteAssetLifecycleManagementById(Long id); + + /** + * 批量删除资产全生命周期管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteAssetLifecycleManagementByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/DeviceRealtimeMonitoringMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/DeviceRealtimeMonitoringMapper.java new file mode 100644 index 0000000..9225ab7 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/DeviceRealtimeMonitoringMapper.java @@ -0,0 +1,61 @@ +package com.chenhai.system.mapper; + +import java.util.List; +import com.chenhai.system.domain.DeviceRealtimeMonitoring; + +/** + * 设备实时状态监控Mapper接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface DeviceRealtimeMonitoringMapper +{ + /** + * 查询设备实时状态监控 + * + * @param id 设备实时状态监控主键 + * @return 设备实时状态监控 + */ + public DeviceRealtimeMonitoring selectDeviceRealtimeMonitoringById(Long id); + + /** + * 查询设备实时状态监控列表 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 设备实时状态监控集合 + */ + public List selectDeviceRealtimeMonitoringList(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 新增设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + public int insertDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 修改设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + public int updateDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 删除设备实时状态监控 + * + * @param id 设备实时状态监控主键 + * @return 结果 + */ + public int deleteDeviceRealtimeMonitoringById(Long id); + + /** + * 批量删除设备实时状态监控 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteDeviceRealtimeMonitoringByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/MapFeaturesMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/MapFeaturesMapper.java new file mode 100644 index 0000000..821f4d3 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/MapFeaturesMapper.java @@ -0,0 +1,61 @@ +package com.chenhai.system.mapper; + +import java.util.List; +import com.chenhai.system.domain.MapFeatures; + +/** + * 地图配套标注管理Mapper接口 + * + * @author ruoyi + * @date 2026-04-17 + */ +public interface MapFeaturesMapper +{ + /** + * 查询地图配套标注管理 + * + * @param id 地图配套标注管理主键 + * @return 地图配套标注管理 + */ + public MapFeatures selectMapFeaturesById(Long id); + + /** + * 查询地图配套标注管理列表 + * + * @param mapFeatures 地图配套标注管理 + * @return 地图配套标注管理集合 + */ + public List selectMapFeaturesList(MapFeatures mapFeatures); + + /** + * 新增地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + public int insertMapFeatures(MapFeatures mapFeatures); + + /** + * 修改地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + public int updateMapFeatures(MapFeatures mapFeatures); + + /** + * 删除地图配套标注管理 + * + * @param id 地图配套标注管理主键 + * @return 结果 + */ + public int deleteMapFeaturesById(Long id); + + /** + * 批量删除地图配套标注管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteMapFeaturesByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/mapper/SpaceResourceManagementMapper.java b/chenhai-system/src/main/java/com/chenhai/system/mapper/SpaceResourceManagementMapper.java new file mode 100644 index 0000000..4650b29 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/mapper/SpaceResourceManagementMapper.java @@ -0,0 +1,61 @@ +package com.chenhai.system.mapper; + +import java.util.List; +import com.chenhai.system.domain.SpaceResourceManagement; + +/** + * 空间资源管理Mapper接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface SpaceResourceManagementMapper +{ + /** + * 查询空间资源管理 + * + * @param id 空间资源管理主键 + * @return 空间资源管理 + */ + public SpaceResourceManagement selectSpaceResourceManagementById(Long id); + + /** + * 查询空间资源管理列表 + * + * @param spaceResourceManagement 空间资源管理 + * @return 空间资源管理集合 + */ + public List selectSpaceResourceManagementList(SpaceResourceManagement spaceResourceManagement); + + /** + * 新增空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + public int insertSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement); + + /** + * 修改空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + public int updateSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement); + + /** + * 删除空间资源管理 + * + * @param id 空间资源管理主键 + * @return 结果 + */ + public int deleteSpaceResourceManagementById(Long id); + + /** + * 批量删除空间资源管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteSpaceResourceManagementByIds(Long[] ids); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/IAssetLifecycleManagementService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IAssetLifecycleManagementService.java new file mode 100644 index 0000000..df190c8 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IAssetLifecycleManagementService.java @@ -0,0 +1,61 @@ +package com.chenhai.system.service; + +import java.util.List; +import com.chenhai.system.domain.AssetLifecycleManagement; + +/** + * 资产全生命周期管理Service接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface IAssetLifecycleManagementService +{ + /** + * 查询资产全生命周期管理 + * + * @param id 资产全生命周期管理主键 + * @return 资产全生命周期管理 + */ + public AssetLifecycleManagement selectAssetLifecycleManagementById(Long id); + + /** + * 查询资产全生命周期管理列表 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 资产全生命周期管理集合 + */ + public List selectAssetLifecycleManagementList(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 新增资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + public int insertAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 修改资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + public int updateAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement); + + /** + * 批量删除资产全生命周期管理 + * + * @param ids 需要删除的资产全生命周期管理主键集合 + * @return 结果 + */ + public int deleteAssetLifecycleManagementByIds(Long[] ids); + + /** + * 删除资产全生命周期管理信息 + * + * @param id 资产全生命周期管理主键 + * @return 结果 + */ + public int deleteAssetLifecycleManagementById(Long id); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/IDeviceRealtimeMonitoringService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IDeviceRealtimeMonitoringService.java new file mode 100644 index 0000000..794bd74 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IDeviceRealtimeMonitoringService.java @@ -0,0 +1,61 @@ +package com.chenhai.system.service; + +import java.util.List; +import com.chenhai.system.domain.DeviceRealtimeMonitoring; + +/** + * 设备实时状态监控Service接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface IDeviceRealtimeMonitoringService +{ + /** + * 查询设备实时状态监控 + * + * @param id 设备实时状态监控主键 + * @return 设备实时状态监控 + */ + public DeviceRealtimeMonitoring selectDeviceRealtimeMonitoringById(Long id); + + /** + * 查询设备实时状态监控列表 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 设备实时状态监控集合 + */ + public List selectDeviceRealtimeMonitoringList(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 新增设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + public int insertDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 修改设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + public int updateDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring); + + /** + * 批量删除设备实时状态监控 + * + * @param ids 需要删除的设备实时状态监控主键集合 + * @return 结果 + */ + public int deleteDeviceRealtimeMonitoringByIds(Long[] ids); + + /** + * 删除设备实时状态监控信息 + * + * @param id 设备实时状态监控主键 + * @return 结果 + */ + public int deleteDeviceRealtimeMonitoringById(Long id); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/IMapFeaturesService.java b/chenhai-system/src/main/java/com/chenhai/system/service/IMapFeaturesService.java new file mode 100644 index 0000000..2e53945 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/IMapFeaturesService.java @@ -0,0 +1,61 @@ +package com.chenhai.system.service; + +import java.util.List; +import com.chenhai.system.domain.MapFeatures; + +/** + * 地图配套标注管理Service接口 + * + * @author ruoyi + * @date 2026-04-17 + */ +public interface IMapFeaturesService +{ + /** + * 查询地图配套标注管理 + * + * @param id 地图配套标注管理主键 + * @return 地图配套标注管理 + */ + public MapFeatures selectMapFeaturesById(Long id); + + /** + * 查询地图配套标注管理列表 + * + * @param mapFeatures 地图配套标注管理 + * @return 地图配套标注管理集合 + */ + public List selectMapFeaturesList(MapFeatures mapFeatures); + + /** + * 新增地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + public int insertMapFeatures(MapFeatures mapFeatures); + + /** + * 修改地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + public int updateMapFeatures(MapFeatures mapFeatures); + + /** + * 批量删除地图配套标注管理 + * + * @param ids 需要删除的地图配套标注管理主键集合 + * @return 结果 + */ + public int deleteMapFeaturesByIds(Long[] ids); + + /** + * 删除地图配套标注管理信息 + * + * @param id 地图配套标注管理主键 + * @return 结果 + */ + public int deleteMapFeaturesById(Long id); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/ISpaceResourceManagementService.java b/chenhai-system/src/main/java/com/chenhai/system/service/ISpaceResourceManagementService.java new file mode 100644 index 0000000..1d96c13 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/ISpaceResourceManagementService.java @@ -0,0 +1,61 @@ +package com.chenhai.system.service; + +import java.util.List; +import com.chenhai.system.domain.SpaceResourceManagement; + +/** + * 空间资源管理Service接口 + * + * @author ruoyi + * @date 2026-04-16 + */ +public interface ISpaceResourceManagementService +{ + /** + * 查询空间资源管理 + * + * @param id 空间资源管理主键 + * @return 空间资源管理 + */ + public SpaceResourceManagement selectSpaceResourceManagementById(Long id); + + /** + * 查询空间资源管理列表 + * + * @param spaceResourceManagement 空间资源管理 + * @return 空间资源管理集合 + */ + public List selectSpaceResourceManagementList(SpaceResourceManagement spaceResourceManagement); + + /** + * 新增空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + public int insertSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement); + + /** + * 修改空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + public int updateSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement); + + /** + * 批量删除空间资源管理 + * + * @param ids 需要删除的空间资源管理主键集合 + * @return 结果 + */ + public int deleteSpaceResourceManagementByIds(Long[] ids); + + /** + * 删除空间资源管理信息 + * + * @param id 空间资源管理主键 + * @return 结果 + */ + public int deleteSpaceResourceManagementById(Long id); +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/impl/AssetLifecycleManagementServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/AssetLifecycleManagementServiceImpl.java new file mode 100644 index 0000000..d25b7d9 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/AssetLifecycleManagementServiceImpl.java @@ -0,0 +1,96 @@ +package com.chenhai.system.service.impl; + +import java.util.List; +import com.chenhai.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.chenhai.system.mapper.AssetLifecycleManagementMapper; +import com.chenhai.system.domain.AssetLifecycleManagement; +import com.chenhai.system.service.IAssetLifecycleManagementService; + +/** + * 资产全生命周期管理Service业务层处理 + * + * @author ruoyi + * @date 2026-04-16 + */ +@Service +public class AssetLifecycleManagementServiceImpl implements IAssetLifecycleManagementService +{ + @Autowired + private AssetLifecycleManagementMapper assetLifecycleManagementMapper; + + /** + * 查询资产全生命周期管理 + * + * @param id 资产全生命周期管理主键 + * @return 资产全生命周期管理 + */ + @Override + public AssetLifecycleManagement selectAssetLifecycleManagementById(Long id) + { + return assetLifecycleManagementMapper.selectAssetLifecycleManagementById(id); + } + + /** + * 查询资产全生命周期管理列表 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 资产全生命周期管理 + */ + @Override + public List selectAssetLifecycleManagementList(AssetLifecycleManagement assetLifecycleManagement) + { + return assetLifecycleManagementMapper.selectAssetLifecycleManagementList(assetLifecycleManagement); + } + + /** + * 新增资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + @Override + public int insertAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement) + { + assetLifecycleManagement.setCreateTime(DateUtils.getNowDate()); + return assetLifecycleManagementMapper.insertAssetLifecycleManagement(assetLifecycleManagement); + } + + /** + * 修改资产全生命周期管理 + * + * @param assetLifecycleManagement 资产全生命周期管理 + * @return 结果 + */ + @Override + public int updateAssetLifecycleManagement(AssetLifecycleManagement assetLifecycleManagement) + { + assetLifecycleManagement.setUpdateTime(DateUtils.getNowDate()); + return assetLifecycleManagementMapper.updateAssetLifecycleManagement(assetLifecycleManagement); + } + + /** + * 批量删除资产全生命周期管理 + * + * @param ids 需要删除的资产全生命周期管理主键 + * @return 结果 + */ + @Override + public int deleteAssetLifecycleManagementByIds(Long[] ids) + { + return assetLifecycleManagementMapper.deleteAssetLifecycleManagementByIds(ids); + } + + /** + * 删除资产全生命周期管理信息 + * + * @param id 资产全生命周期管理主键 + * @return 结果 + */ + @Override + public int deleteAssetLifecycleManagementById(Long id) + { + return assetLifecycleManagementMapper.deleteAssetLifecycleManagementById(id); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/impl/DeviceRealtimeMonitoringServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/DeviceRealtimeMonitoringServiceImpl.java new file mode 100644 index 0000000..b8d4f96 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/DeviceRealtimeMonitoringServiceImpl.java @@ -0,0 +1,96 @@ +package com.chenhai.system.service.impl; + +import java.util.List; +import com.chenhai.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.chenhai.system.mapper.DeviceRealtimeMonitoringMapper; +import com.chenhai.system.domain.DeviceRealtimeMonitoring; +import com.chenhai.system.service.IDeviceRealtimeMonitoringService; + +/** + * 设备实时状态监控Service业务层处理 + * + * @author ruoyi + * @date 2026-04-16 + */ +@Service +public class DeviceRealtimeMonitoringServiceImpl implements IDeviceRealtimeMonitoringService +{ + @Autowired + private DeviceRealtimeMonitoringMapper deviceRealtimeMonitoringMapper; + + /** + * 查询设备实时状态监控 + * + * @param id 设备实时状态监控主键 + * @return 设备实时状态监控 + */ + @Override + public DeviceRealtimeMonitoring selectDeviceRealtimeMonitoringById(Long id) + { + return deviceRealtimeMonitoringMapper.selectDeviceRealtimeMonitoringById(id); + } + + /** + * 查询设备实时状态监控列表 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 设备实时状态监控 + */ + @Override + public List selectDeviceRealtimeMonitoringList(DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + return deviceRealtimeMonitoringMapper.selectDeviceRealtimeMonitoringList(deviceRealtimeMonitoring); + } + + /** + * 新增设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + @Override + public int insertDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + deviceRealtimeMonitoring.setCreateTime(DateUtils.getNowDate()); + return deviceRealtimeMonitoringMapper.insertDeviceRealtimeMonitoring(deviceRealtimeMonitoring); + } + + /** + * 修改设备实时状态监控 + * + * @param deviceRealtimeMonitoring 设备实时状态监控 + * @return 结果 + */ + @Override + public int updateDeviceRealtimeMonitoring(DeviceRealtimeMonitoring deviceRealtimeMonitoring) + { + deviceRealtimeMonitoring.setUpdateTime(DateUtils.getNowDate()); + return deviceRealtimeMonitoringMapper.updateDeviceRealtimeMonitoring(deviceRealtimeMonitoring); + } + + /** + * 批量删除设备实时状态监控 + * + * @param ids 需要删除的设备实时状态监控主键 + * @return 结果 + */ + @Override + public int deleteDeviceRealtimeMonitoringByIds(Long[] ids) + { + return deviceRealtimeMonitoringMapper.deleteDeviceRealtimeMonitoringByIds(ids); + } + + /** + * 删除设备实时状态监控信息 + * + * @param id 设备实时状态监控主键 + * @return 结果 + */ + @Override + public int deleteDeviceRealtimeMonitoringById(Long id) + { + return deviceRealtimeMonitoringMapper.deleteDeviceRealtimeMonitoringById(id); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/impl/MapFeaturesServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/MapFeaturesServiceImpl.java new file mode 100644 index 0000000..2b6b7a9 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/MapFeaturesServiceImpl.java @@ -0,0 +1,93 @@ +package com.chenhai.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.chenhai.system.mapper.MapFeaturesMapper; +import com.chenhai.system.domain.MapFeatures; +import com.chenhai.system.service.IMapFeaturesService; + +/** + * 地图配套标注管理Service业务层处理 + * + * @author ruoyi + * @date 2026-04-17 + */ +@Service +public class MapFeaturesServiceImpl implements IMapFeaturesService +{ + @Autowired + private MapFeaturesMapper mapFeaturesMapper; + + /** + * 查询地图配套标注管理 + * + * @param id 地图配套标注管理主键 + * @return 地图配套标注管理 + */ + @Override + public MapFeatures selectMapFeaturesById(Long id) + { + return mapFeaturesMapper.selectMapFeaturesById(id); + } + + /** + * 查询地图配套标注管理列表 + * + * @param mapFeatures 地图配套标注管理 + * @return 地图配套标注管理 + */ + @Override + public List selectMapFeaturesList(MapFeatures mapFeatures) + { + return mapFeaturesMapper.selectMapFeaturesList(mapFeatures); + } + + /** + * 新增地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + @Override + public int insertMapFeatures(MapFeatures mapFeatures) + { + return mapFeaturesMapper.insertMapFeatures(mapFeatures); + } + + /** + * 修改地图配套标注管理 + * + * @param mapFeatures 地图配套标注管理 + * @return 结果 + */ + @Override + public int updateMapFeatures(MapFeatures mapFeatures) + { + return mapFeaturesMapper.updateMapFeatures(mapFeatures); + } + + /** + * 批量删除地图配套标注管理 + * + * @param ids 需要删除的地图配套标注管理主键 + * @return 结果 + */ + @Override + public int deleteMapFeaturesByIds(Long[] ids) + { + return mapFeaturesMapper.deleteMapFeaturesByIds(ids); + } + + /** + * 删除地图配套标注管理信息 + * + * @param id 地图配套标注管理主键 + * @return 结果 + */ + @Override + public int deleteMapFeaturesById(Long id) + { + return mapFeaturesMapper.deleteMapFeaturesById(id); + } +} diff --git a/chenhai-system/src/main/java/com/chenhai/system/service/impl/SpaceResourceManagementServiceImpl.java b/chenhai-system/src/main/java/com/chenhai/system/service/impl/SpaceResourceManagementServiceImpl.java new file mode 100644 index 0000000..aba6ec3 --- /dev/null +++ b/chenhai-system/src/main/java/com/chenhai/system/service/impl/SpaceResourceManagementServiceImpl.java @@ -0,0 +1,96 @@ +package com.chenhai.system.service.impl; + +import java.util.List; +import com.chenhai.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.chenhai.system.mapper.SpaceResourceManagementMapper; +import com.chenhai.system.domain.SpaceResourceManagement; +import com.chenhai.system.service.ISpaceResourceManagementService; + +/** + * 空间资源管理Service业务层处理 + * + * @author ruoyi + * @date 2026-04-16 + */ +@Service +public class SpaceResourceManagementServiceImpl implements ISpaceResourceManagementService +{ + @Autowired + private SpaceResourceManagementMapper spaceResourceManagementMapper; + + /** + * 查询空间资源管理 + * + * @param id 空间资源管理主键 + * @return 空间资源管理 + */ + @Override + public SpaceResourceManagement selectSpaceResourceManagementById(Long id) + { + return spaceResourceManagementMapper.selectSpaceResourceManagementById(id); + } + + /** + * 查询空间资源管理列表 + * + * @param spaceResourceManagement 空间资源管理 + * @return 空间资源管理 + */ + @Override + public List selectSpaceResourceManagementList(SpaceResourceManagement spaceResourceManagement) + { + return spaceResourceManagementMapper.selectSpaceResourceManagementList(spaceResourceManagement); + } + + /** + * 新增空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + @Override + public int insertSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement) + { + spaceResourceManagement.setCreateTime(DateUtils.getNowDate()); + return spaceResourceManagementMapper.insertSpaceResourceManagement(spaceResourceManagement); + } + + /** + * 修改空间资源管理 + * + * @param spaceResourceManagement 空间资源管理 + * @return 结果 + */ + @Override + public int updateSpaceResourceManagement(SpaceResourceManagement spaceResourceManagement) + { + spaceResourceManagement.setUpdateTime(DateUtils.getNowDate()); + return spaceResourceManagementMapper.updateSpaceResourceManagement(spaceResourceManagement); + } + + /** + * 批量删除空间资源管理 + * + * @param ids 需要删除的空间资源管理主键 + * @return 结果 + */ + @Override + public int deleteSpaceResourceManagementByIds(Long[] ids) + { + return spaceResourceManagementMapper.deleteSpaceResourceManagementByIds(ids); + } + + /** + * 删除空间资源管理信息 + * + * @param id 空间资源管理主键 + * @return 结果 + */ + @Override + public int deleteSpaceResourceManagementById(Long id) + { + return spaceResourceManagementMapper.deleteSpaceResourceManagementById(id); + } +} diff --git a/chenhai-system/src/main/resources/mapper/system/AssetLifecycleManagementMapper.xml b/chenhai-system/src/main/resources/mapper/system/AssetLifecycleManagementMapper.xml new file mode 100644 index 0000000..64c0af8 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/system/AssetLifecycleManagementMapper.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, asset_code, asset_name, asset_type, asset_category, model, manufacturer, supplier, purchase_date, purchase_price, warranty_start_date, warranty_end_date, location, longitude, latitude, status, health_status, responsible_department, responsible_person, contact_phone, last_maintenance_date, next_maintenance_date, remark, create_by, create_time, update_by, update_time, del_flag from asset_lifecycle_management + + + + + + + + insert into asset_lifecycle_management + + asset_code, + asset_name, + asset_type, + asset_category, + model, + manufacturer, + supplier, + purchase_date, + purchase_price, + warranty_start_date, + warranty_end_date, + location, + longitude, + latitude, + status, + health_status, + responsible_department, + responsible_person, + contact_phone, + last_maintenance_date, + next_maintenance_date, + remark, + create_by, + create_time, + update_by, + update_time, + del_flag, + + + #{assetCode}, + #{assetName}, + #{assetType}, + #{assetCategory}, + #{model}, + #{manufacturer}, + #{supplier}, + #{purchaseDate}, + #{purchasePrice}, + #{warrantyStartDate}, + #{warrantyEndDate}, + #{location}, + #{longitude}, + #{latitude}, + #{status}, + #{healthStatus}, + #{responsibleDepartment}, + #{responsiblePerson}, + #{contactPhone}, + #{lastMaintenanceDate}, + #{nextMaintenanceDate}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + + + + + update asset_lifecycle_management + + asset_code = #{assetCode}, + asset_name = #{assetName}, + asset_type = #{assetType}, + asset_category = #{assetCategory}, + model = #{model}, + manufacturer = #{manufacturer}, + supplier = #{supplier}, + purchase_date = #{purchaseDate}, + purchase_price = #{purchasePrice}, + warranty_start_date = #{warrantyStartDate}, + warranty_end_date = #{warrantyEndDate}, + location = #{location}, + longitude = #{longitude}, + latitude = #{latitude}, + status = #{status}, + health_status = #{healthStatus}, + responsible_department = #{responsibleDepartment}, + responsible_person = #{responsiblePerson}, + contact_phone = #{contactPhone}, + last_maintenance_date = #{lastMaintenanceDate}, + next_maintenance_date = #{nextMaintenanceDate}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + + where id = #{id} + + + + delete from asset_lifecycle_management where id = #{id} + + + + delete from asset_lifecycle_management where id in + + #{id} + + + diff --git a/chenhai-system/src/main/resources/mapper/system/DeviceRealtimeMonitoringMapper.xml b/chenhai-system/src/main/resources/mapper/system/DeviceRealtimeMonitoringMapper.xml new file mode 100644 index 0000000..b91f0c2 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/system/DeviceRealtimeMonitoringMapper.xml @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, device_code, device_name, device_type, online_status, last_online_time, offline_duration, signal_strength, signal_level, storage_used, storage_total, storage_usage_rate, cpu_usage, memory_usage, disk_usage, device_temperature, last_heartbeat_time, abnormal_status, is_alert, alert_message, alert_time, firmware_version, ip_address, mac_address, remark, create_time, update_time from device_realtime_monitoring + + + + + + + + insert into device_realtime_monitoring + + device_code, + device_name, + device_type, + online_status, + last_online_time, + offline_duration, + signal_strength, + signal_level, + storage_used, + storage_total, + storage_usage_rate, + cpu_usage, + memory_usage, + disk_usage, + device_temperature, + last_heartbeat_time, + abnormal_status, + is_alert, + alert_message, + alert_time, + firmware_version, + ip_address, + mac_address, + remark, + create_time, + update_time, + + + #{deviceCode}, + #{deviceName}, + #{deviceType}, + #{onlineStatus}, + #{lastOnlineTime}, + #{offlineDuration}, + #{signalStrength}, + #{signalLevel}, + #{storageUsed}, + #{storageTotal}, + #{storageUsageRate}, + #{cpuUsage}, + #{memoryUsage}, + #{diskUsage}, + #{deviceTemperature}, + #{lastHeartbeatTime}, + #{abnormalStatus}, + #{isAlert}, + #{alertMessage}, + #{alertTime}, + #{firmwareVersion}, + #{ipAddress}, + #{macAddress}, + #{remark}, + #{createTime}, + #{updateTime}, + + + + + update device_realtime_monitoring + + device_code = #{deviceCode}, + device_name = #{deviceName}, + device_type = #{deviceType}, + online_status = #{onlineStatus}, + last_online_time = #{lastOnlineTime}, + offline_duration = #{offlineDuration}, + signal_strength = #{signalStrength}, + signal_level = #{signalLevel}, + storage_used = #{storageUsed}, + storage_total = #{storageTotal}, + storage_usage_rate = #{storageUsageRate}, + cpu_usage = #{cpuUsage}, + memory_usage = #{memoryUsage}, + disk_usage = #{diskUsage}, + device_temperature = #{deviceTemperature}, + last_heartbeat_time = #{lastHeartbeatTime}, + abnormal_status = #{abnormalStatus}, + is_alert = #{isAlert}, + alert_message = #{alertMessage}, + alert_time = #{alertTime}, + firmware_version = #{firmwareVersion}, + ip_address = #{ipAddress}, + mac_address = #{macAddress}, + remark = #{remark}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from device_realtime_monitoring where id = #{id} + + + + delete from device_realtime_monitoring where id in + + #{id} + + + diff --git a/chenhai-system/src/main/resources/mapper/system/MapFeaturesMapper.xml b/chenhai-system/src/main/resources/mapper/system/MapFeaturesMapper.xml new file mode 100644 index 0000000..3a8c616 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/system/MapFeaturesMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + select id, name, type, longitude, latitude, created_at from map_features + + + + + + + + insert into map_features + + name, + type, + longitude, + latitude, + created_at, + + + #{name}, + #{type}, + #{longitude}, + #{latitude}, + #{createdAt}, + + + + + update map_features + + name = #{name}, + type = #{type}, + longitude = #{longitude}, + latitude = #{latitude}, + created_at = #{createdAt}, + + where id = #{id} + + + + delete from map_features where id = #{id} + + + + delete from map_features where id in + + #{id} + + + diff --git a/chenhai-system/src/main/resources/mapper/system/SpaceResourceManagementMapper.xml b/chenhai-system/src/main/resources/mapper/system/SpaceResourceManagementMapper.xml new file mode 100644 index 0000000..20b26a6 --- /dev/null +++ b/chenhai-system/src/main/resources/mapper/system/SpaceResourceManagementMapper.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, resource_code, resource_name, resource_type, resource_subtype, scientific_name, family_genus, age, protection_level, location_detail, longitude, latitude, area_size, height, material, manufacturer, installation_date, status, responsible_department, responsible_person, contact_phone, last_inspection_date, next_inspection_date, inspection_cycle, image_url, remark, create_by, create_time, update_by, update_time, del_flag from space_resource_management + + + + + + + + insert into space_resource_management + + resource_code, + resource_name, + resource_type, + resource_subtype, + scientific_name, + family_genus, + age, + protection_level, + location_detail, + longitude, + latitude, + area_size, + height, + material, + manufacturer, + installation_date, + status, + responsible_department, + responsible_person, + contact_phone, + last_inspection_date, + next_inspection_date, + inspection_cycle, + image_url, + remark, + create_by, + create_time, + update_by, + update_time, + del_flag, + + + #{resourceCode}, + #{resourceName}, + #{resourceType}, + #{resourceSubtype}, + #{scientificName}, + #{familyGenus}, + #{age}, + #{protectionLevel}, + #{locationDetail}, + #{longitude}, + #{latitude}, + #{areaSize}, + #{height}, + #{material}, + #{manufacturer}, + #{installationDate}, + #{status}, + #{responsibleDepartment}, + #{responsiblePerson}, + #{contactPhone}, + #{lastInspectionDate}, + #{nextInspectionDate}, + #{inspectionCycle}, + #{imageUrl}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + + + + + update space_resource_management + + resource_code = #{resourceCode}, + resource_name = #{resourceName}, + resource_type = #{resourceType}, + resource_subtype = #{resourceSubtype}, + scientific_name = #{scientificName}, + family_genus = #{familyGenus}, + age = #{age}, + protection_level = #{protectionLevel}, + location_detail = #{locationDetail}, + longitude = #{longitude}, + latitude = #{latitude}, + area_size = #{areaSize}, + height = #{height}, + material = #{material}, + manufacturer = #{manufacturer}, + installation_date = #{installationDate}, + status = #{status}, + responsible_department = #{responsibleDepartment}, + responsible_person = #{responsiblePerson}, + contact_phone = #{contactPhone}, + last_inspection_date = #{lastInspectionDate}, + next_inspection_date = #{nextInspectionDate}, + inspection_cycle = #{inspectionCycle}, + image_url = #{imageUrl}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + + where id = #{id} + + + + delete from space_resource_management where id = #{id} + + + + delete from space_resource_management where id in + + #{id} + + + diff --git a/chenhai-ui/src/api/system/features.js b/chenhai-ui/src/api/system/features.js new file mode 100644 index 0000000..3368e4b --- /dev/null +++ b/chenhai-ui/src/api/system/features.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询地图配套标注管理列表 +export function listFeatures(query) { + return request({ + url: '/system/features/list', + method: 'get', + params: query + }) +} + +// 查询地图配套标注管理详细 +export function getFeatures(id) { + return request({ + url: '/system/features/' + id, + method: 'get' + }) +} + +// 新增地图配套标注管理 +export function addFeatures(data) { + return request({ + url: '/system/features', + method: 'post', + data: data + }) +} + +// 修改地图配套标注管理 +export function updateFeatures(data) { + return request({ + url: '/system/features', + method: 'put', + data: data + }) +} + +// 删除地图配套标注管理 +export function delFeatures(id) { + return request({ + url: '/system/features/' + id, + method: 'delete' + }) +} diff --git a/chenhai-ui/src/api/system/management.js b/chenhai-ui/src/api/system/management.js new file mode 100644 index 0000000..a7b22a6 --- /dev/null +++ b/chenhai-ui/src/api/system/management.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询资产全生命周期管理列表 +export function listManagement(query) { + return request({ + url: '/system/management/list', + method: 'get', + params: query + }) +} + +// 查询资产全生命周期管理详细 +export function getManagement(id) { + return request({ + url: '/system/management/' + id, + method: 'get' + }) +} + +// 新增资产全生命周期管理 +export function addManagement(data) { + return request({ + url: '/system/management', + method: 'post', + data: data + }) +} + +// 修改资产全生命周期管理 +export function updateManagement(data) { + return request({ + url: '/system/management', + method: 'put', + data: data + }) +} + +// 删除资产全生命周期管理 +export function delManagement(id) { + return request({ + url: '/system/management/' + id, + method: 'delete' + }) +} diff --git a/chenhai-ui/src/api/system/monitoring.js b/chenhai-ui/src/api/system/monitoring.js new file mode 100644 index 0000000..0ef2d7c --- /dev/null +++ b/chenhai-ui/src/api/system/monitoring.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备实时状态监控列表 +export function listMonitoring(query) { + return request({ + url: '/system/monitoring/list', + method: 'get', + params: query + }) +} + +// 查询设备实时状态监控详细 +export function getMonitoring(id) { + return request({ + url: '/system/monitoring/' + id, + method: 'get' + }) +} + +// 新增设备实时状态监控 +export function addMonitoring(data) { + return request({ + url: '/system/monitoring', + method: 'post', + data: data + }) +} + +// 修改设备实时状态监控 +export function updateMonitoring(data) { + return request({ + url: '/system/monitoring', + method: 'put', + data: data + }) +} + +// 删除设备实时状态监控 +export function delMonitoring(id) { + return request({ + url: '/system/monitoring/' + id, + method: 'delete' + }) +} diff --git a/chenhai-ui/src/api/system/resource.js b/chenhai-ui/src/api/system/resource.js new file mode 100644 index 0000000..6678238 --- /dev/null +++ b/chenhai-ui/src/api/system/resource.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询空间资源管理列表 +export function listResource(query) { + return request({ + url: '/system/resource/list', + method: 'get', + params: query + }) +} + +// 查询空间资源管理详细 +export function getResource(id) { + return request({ + url: '/system/resource/' + id, + method: 'get' + }) +} + +// 新增空间资源管理 +export function addResource(data) { + return request({ + url: '/system/resource', + method: 'post', + data: data + }) +} + +// 修改空间资源管理 +export function updateResource(data) { + return request({ + url: '/system/resource', + method: 'put', + data: data + }) +} + +// 删除空间资源管理 +export function delResource(id) { + return request({ + url: '/system/resource/' + id, + method: 'delete' + }) +} diff --git a/chenhai-ui/src/views/system/features/index.vue b/chenhai-ui/src/views/system/features/index.vue new file mode 100644 index 0000000..fbb3d2e --- /dev/null +++ b/chenhai-ui/src/views/system/features/index.vue @@ -0,0 +1,314 @@ + + + diff --git a/chenhai-ui/src/views/system/management/index.vue b/chenhai-ui/src/views/system/management/index.vue new file mode 100644 index 0000000..c1339e1 --- /dev/null +++ b/chenhai-ui/src/views/system/management/index.vue @@ -0,0 +1,483 @@ + + + diff --git a/chenhai-ui/src/views/system/monitoring/index.vue b/chenhai-ui/src/views/system/monitoring/index.vue new file mode 100644 index 0000000..eb805ac --- /dev/null +++ b/chenhai-ui/src/views/system/monitoring/index.vue @@ -0,0 +1,465 @@ + + + diff --git a/chenhai-ui/src/views/system/resource/index.vue b/chenhai-ui/src/views/system/resource/index.vue new file mode 100644 index 0000000..950dd0b --- /dev/null +++ b/chenhai-ui/src/views/system/resource/index.vue @@ -0,0 +1,522 @@ + + +