From ad4c2adf05b530aeff2037a4ea0cb9f5da67f4fd Mon Sep 17 00:00:00 2001 From: fengchunyu Date: Sat, 2 Dec 2023 15:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=98=BE=E7=A4=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/aspect/ImportAspect.java | 23 -- .../controller/BigScreenController.java | 228 +++++++++++ .../domain/dto/DevopsVideoInfoDto.java | 169 ++++++++ .../business/domain/vo/KeyPersonnelVo.java | 80 ++++ .../vo/MetaAlarmInfoAndHandleAlarmVo.java | 64 +++ .../business/domain/vo/MetaAlarmInfoVo.java | 30 ++ .../domain/vo/OverviewResourcesVo.java | 43 ++ .../domain/vo/PoliceForceDistributionVo.java | 35 ++ .../domain/vo/SeaRelatedElementsVo.java | 41 ++ .../DevopsDeviceInfoController.java | 95 +++++ .../DevopsDeviceStatusController.java | 95 +++++ .../controller/DevopsVideoInfoController.java | 122 ++++++ .../DevopsVideoStatusController.java | 95 +++++ .../MetaActualUnitInfoController.java | 95 +++++ .../MetaActualUnitUserInfoController.java | 95 +++++ .../MetaActualUserInfoController.java | 95 +++++ .../controller/MetaAlarmInfoController.java | 95 +++++ .../MetaFishingBoatInfoController.java | 95 +++++ .../MetaHandleAlarmInfoController.java | 95 +++++ .../controller/MetaImpUserInfoController.java | 95 +++++ .../MetaPoliceOfficeInfoController.java | 95 +++++ .../MetaPoliceStationInfoController.java | 95 +++++ .../database/domain/DevopsDeviceInfo.java | 246 ++++++++++++ .../database/domain/DevopsDeviceStatus.java | 111 ++++++ .../database/domain/DevopsVideoInfo.java | 200 ++++++++++ .../database/domain/DevopsVideoStatus.java | 109 ++++++ .../database/domain/MetaActualUnitInfo.java | 149 +++++++ .../domain/MetaActualUnitUserInfo.java | 118 ++++++ .../database/domain/MetaActualUserInfo.java | 179 +++++++++ .../ruoyi/database/domain/MetaAlarmInfo.java | 118 ++++++ .../database/domain/MetaFishingBoatInfo.java | 104 +++++ .../database/domain/MetaHandleAlarmInfo.java | 90 +++++ .../database/domain/MetaImpUserInfo.java | 128 ++++++ .../database/domain/MetaPoliceOfficeInfo.java | 69 ++++ .../domain/MetaPoliceStationInfo.java | 69 ++++ .../mapper/DevopsDeviceInfoMapper.java | 16 + .../mapper/DevopsDeviceStatusMapper.java | 16 + .../mapper/DevopsVideoInfoMapper.java | 16 + .../mapper/DevopsVideoStatusMapper.java | 16 + .../mapper/MetaActualUnitInfoMapper.java | 16 + .../mapper/MetaActualUnitUserInfoMapper.java | 16 + .../mapper/MetaActualUserInfoMapper.java | 16 + .../database/mapper/MetaAlarmInfoMapper.java | 58 +++ .../mapper/MetaFishingBoatInfoMapper.java | 16 + .../mapper/MetaHandleAlarmInfoMapper.java | 16 + .../mapper/MetaImpUserInfoMapper.java | 16 + .../mapper/MetaPoliceOfficeInfoMapper.java | 16 + .../mapper/MetaPoliceStationInfoMapper.java | 16 + .../service/DevopsDeviceInfoService.java | 32 ++ .../service/DevopsDeviceStatusService.java | 32 ++ .../service/DevopsVideoInfoService.java | 35 ++ .../service/DevopsVideoStatusService.java | 32 ++ .../service/MetaActualUnitInfoService.java | 32 ++ .../MetaActualUnitUserInfoService.java | 32 ++ .../service/MetaActualUserInfoService.java | 32 ++ .../service/MetaAlarmInfoService.java | 39 ++ .../service/MetaFishingBoatInfoService.java | 32 ++ .../service/MetaHandleAlarmInfoService.java | 32 ++ .../service/MetaImpUserInfoService.java | 32 ++ .../service/MetaPoliceOfficeInfoService.java | 32 ++ .../service/MetaPoliceStationInfoService.java | 32 ++ .../impl/DevopsDeviceInfoServiceImpl.java | 54 +++ .../impl/DevopsDeviceStatusServiceImpl.java | 54 +++ .../impl/DevopsVideoInfoServiceImpl.java | 198 ++++++++++ .../impl/DevopsVideoStatusServiceImpl.java | 54 +++ .../impl/MetaActualUnitInfoServiceImpl.java | 54 +++ .../MetaActualUnitUserInfoServiceImpl.java | 54 +++ .../impl/MetaActualUserInfoServiceImpl.java | 54 +++ .../impl/MetaAlarmInfoServiceImpl.java | 72 ++++ .../impl/MetaFishingBoatInfoServiceImpl.java | 54 +++ .../impl/MetaHandleAlarmInfoServiceImpl.java | 54 +++ .../impl/MetaImpUserInfoServiceImpl.java | 54 +++ .../impl/MetaPoliceOfficeInfoServiceImpl.java | 54 +++ .../MetaPoliceStationInfoServiceImpl.java | 54 +++ .../controller/common/CaptchaController.java | 5 + .../controller/common/CommonController.java | 7 + .../controller/system/SysLoginController.java | 7 + .../web/controller/tool/TestController.java | 366 +++++++++--------- .../ruoyi/web/core/config/SwaggerConfig.java | 2 +- .../src/main/resources/application.yml | 9 +- ruoyi-admin/src/main/resources/logback.xml | 2 +- .../common/core/domain/model/LoginBody.java | 5 + ruoyi-ui/.env.development | 4 +- ruoyi-ui/.env.production | 4 +- ruoyi-ui/.env.staging | 4 +- ruoyi-ui/package.json | 2 +- ruoyi-ui/vue.config.js | 2 +- ry.sh | 2 +- 88 files changed, 5407 insertions(+), 219 deletions(-) create mode 100644 gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/dto/DevopsVideoInfoDto.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/KeyPersonnelVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoAndHandleAlarmVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/OverviewResourcesVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/PoliceForceDistributionVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/business/domain/vo/SeaRelatedElementsVo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceStatusController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoStatusController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitUserInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUserInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaAlarmInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaFishingBoatInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaHandleAlarmInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceOfficeInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceStationInfoController.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceStatus.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoStatus.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUserInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaAlarmInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaFishingBoatInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaHandleAlarmInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaImpUserInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceOfficeInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceStationInfo.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceStatusMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoStatusMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitUserInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUserInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaAlarmInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaFishingBoatInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaHandleAlarmInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaImpUserInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceOfficeInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceStationInfoMapper.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceStatusService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoStatusService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitUserInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaActualUserInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaAlarmInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaFishingBoatInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaHandleAlarmInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaImpUserInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceOfficeInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceStationInfoService.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceStatusServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoStatusServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitUserInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUserInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaAlarmInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaFishingBoatInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaHandleAlarmInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaImpUserInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceOfficeInfoServiceImpl.java create mode 100644 gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceStationInfoServiceImpl.java diff --git a/gather-app/src/main/java/com/ruoyi/aspect/ImportAspect.java b/gather-app/src/main/java/com/ruoyi/aspect/ImportAspect.java index 4090fbb..7d4bd5a 100644 --- a/gather-app/src/main/java/com/ruoyi/aspect/ImportAspect.java +++ b/gather-app/src/main/java/com/ruoyi/aspect/ImportAspect.java @@ -119,23 +119,6 @@ public class ImportAspect { codeCount++; } - // 判断属性中是否存在编码相关的属性 - if (field.getName().equals("deviceCode")) { - String simpleClassName = obj.getClass().getSimpleName(); - -// if(simpleClassName.equals("DevopsDeviceInfo") || simpleClassName.equals("BaseVehicleLaneInfo")){ -// deviceInfoService.generateDeviceCode(obj); -// } -// if(simpleClassName.equals("DevopsVideoInfo")){ -// videoInfoService.generateVideoCode(obj); -// } - } - - // 判断属性中是否存在编码相关的属性 -// if (field.getName().equals("doorwayCode")) { -// doorwayInfoService.generateDoorwayCode(obj); -// } - } // 校验数据,校验不通过则记录错误信息 @@ -147,12 +130,6 @@ public class ImportAspect { continue; } -// for (int i = 0; i < codeCount; i++) { -// if (i < codeGenerators.length) { -// codeGenerators[i].accept(obj); -// } -// } - } if (errorFlag) { diff --git a/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java b/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java new file mode 100644 index 0000000..ce0df27 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java @@ -0,0 +1,228 @@ +package com.ruoyi.business.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.business.domain.vo.*; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.StringKit; +import com.ruoyi.database.domain.MetaActualUserInfo; +import com.ruoyi.database.domain.MetaAlarmInfo; +import com.ruoyi.database.domain.MetaImpUserInfo; +import com.ruoyi.database.domain.MetaPoliceStationInfo; +import com.ruoyi.database.service.*; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; +import java.util.Map; + +/** + * 大屏查询接口 + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "大屏查询接口") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/bigscreen") +public class BigScreenController extends BaseController { + + private final MetaActualUserInfoService actualUserInfoService; + private final MetaActualUnitInfoService actualUnitInfoService; + private final MetaImpUserInfoService impUserInfoService; + private final MetaPoliceOfficeInfoService policeOfficeInfoService; + private final MetaPoliceStationInfoService policeStationInfoService; + private final MetaAlarmInfoService alarmInfoService; + + + + @PostMapping("/overviewResources") + @ApiOperation("资源概况") + public AjaxResult overviewResources() { + try { + // 流口查询 + QueryWrapper queryLdrkWrapper = new QueryWrapper<>(); + queryLdrkWrapper.eq("actual_user_type", 102); + int actualUserLdrkCount = actualUserInfoService.count(queryLdrkWrapper); + //实有人口总数 + QueryWrapper querySyrkWrapper = new QueryWrapper<>(); + querySyrkWrapper.ne("actual_user_type", 102); + int actualUserSyrkCount = actualUserInfoService.count(querySyrkWrapper); + //实有房屋总数 todo 等表创建好了之后 + int countSyfw = 20000; + + //实有单位总数 + int countSydw = actualUnitInfoService.count(); + + OverviewResourcesVo bean = new OverviewResourcesVo(); + bean.setActualUserLdrkCount(StringKit.toString(actualUserLdrkCount)); + bean.setActualUserSyrkCount(StringKit.toString(actualUserSyrkCount)); + bean.setCountSyfw(StringKit.toString(countSyfw)); + bean.setCountSydw(StringKit.toString(countSydw)); + + return AjaxResult.success(bean); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + + @PostMapping("/keyPersonnel") + @ApiOperation("重点人员") + public AjaxResult keyPersonnel() { + try { + + // 涉稳人员 + QueryWrapper swryQueryWrapper = new QueryWrapper<>(); + swryQueryWrapper.like("imp_user_sub_type", "0101000000"); + int swryCount = impUserInfoService.count(swryQueryWrapper); + // 涉军访人员 + QueryWrapper sjfryQueryWrapper = new QueryWrapper<>(); + sjfryQueryWrapper.like("imp_user_sub_type", "0102000000"); + int sjfryCount = impUserInfoService.count(sjfryQueryWrapper); + // 治安管控人员 + QueryWrapper zagkryQueryWrapper = new QueryWrapper<>(); + zagkryQueryWrapper.like("imp_user_sub_type", "0105000000"); + int zagkryCount = impUserInfoService.count(zagkryQueryWrapper); + // 民代幼教师群体 + QueryWrapper mdyjsqtQueryWrapper = new QueryWrapper<>(); + mdyjsqtQueryWrapper.like("imp_user_sub_type", "0106000000"); + int mdyjsqtCount = impUserInfoService.count(mdyjsqtQueryWrapper); + // 内保重点人员 + QueryWrapper nbzdryQueryWrapper = new QueryWrapper<>(); + nbzdryQueryWrapper.like("imp_user_sub_type", "0107000000"); + int nbzdryCount = impUserInfoService.count(nbzdryQueryWrapper); + // 涉信访人员 + QueryWrapper sxfryQueryWrapper = new QueryWrapper<>(); + sxfryQueryWrapper.like("imp_user_sub_type", "0109000000"); + int sxfryCount = impUserInfoService.count(sxfryQueryWrapper); + // 涉众型经济犯罪涉稳人员 + QueryWrapper szxjjfzswryQueryWrapper = new QueryWrapper<>(); + szxjjfzswryQueryWrapper.like("imp_user_sub_type", "0110000000"); + int szxjjfzswryCount = impUserInfoService.count(szxjjfzswryQueryWrapper); + // 其他利益群体 + QueryWrapper qtlyqtQueryWrapper = new QueryWrapper<>(); + qtlyqtQueryWrapper.like("imp_user_sub_type", "0103000000"); + int qtlyqtCount = impUserInfoService.count(qtlyqtQueryWrapper); + + int totalCount = swryCount + sjfryCount + zagkryCount + mdyjsqtCount + nbzdryCount + sxfryCount + szxjjfzswryCount + qtlyqtCount; + double swryPercentage = (double) swryCount / totalCount * 100; + double sjfryPercentage = (double) sjfryCount / totalCount * 100; + double zagkryPercentage = (double) zagkryCount / totalCount * 100; + double mdyjsqtPercentage = (double) mdyjsqtCount / totalCount * 100; + double nbzdryPercentage = (double) nbzdryCount / totalCount * 100; + double sxfryPercentage = (double) sxfryCount / totalCount * 100; + double szxjjfzswryPercentage = (double) szxjjfzswryCount / totalCount * 100; + double qtlyqtPercentage = (double) qtlyqtCount / totalCount * 100; + + // Store the percentages as strings + String swryPercentageString = String.format("%.0f%%", swryPercentage); + String sjfryPercentageString = String.format("%.0f%%", sjfryPercentage); + String zagkryPercentageString = String.format("%.0f%%", zagkryPercentage); + String mdyjsqtPercentageString = String.format("%.0f%%", mdyjsqtPercentage); + String nbzdryPercentageString = String.format("%.0f%%", nbzdryPercentage); + String sxfryPercentageString = String.format("%.0f%%", sxfryPercentage); + String szxjjfzswryPercentageString = String.format("%.0f%%", szxjjfzswryPercentage); + String qtlyqtPercentageString = String.format("%.0f%%", qtlyqtPercentage); + + KeyPersonnelVo bean = new KeyPersonnelVo(); + bean.setKeyPersonnelCount(StringKit.toString(totalCount)); + bean.setSwrybl(swryPercentageString); + bean.setSjfrybl(sjfryPercentageString); + bean.setZagkrybl(zagkryPercentageString); + bean.setMdyjsqtbl(mdyjsqtPercentageString); + bean.setNbzdrybl(nbzdryPercentageString); + bean.setSxfry(sxfryPercentageString); + bean.setSzxjjfzswrybl(szxjjfzswryPercentageString); + bean.setQtlyqt(qtlyqtPercentageString); + + return AjaxResult.success(bean); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + + + + @PostMapping("/policeForceDistribution") + @ApiOperation("警力分布") + public AjaxResult policeForceDistribution() { + try { + //派出所信息表 + int pcs = policeStationInfoService.count(); + //警务室信息表 + int jws= policeOfficeInfoService.count(); + // todo 执法警员统计 gbs获取的数据中 在线的执法记录仪设备 + int countZfjy = 6234; + + PoliceForceDistributionVo bean = new PoliceForceDistributionVo(); + bean.setPcsCount(StringKit.toString(pcs)); + bean.setJwsCount(StringKit.toString(jws)); + bean.setZfjyCount(StringKit.toString(countZfjy)); + return AjaxResult.success(bean); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + + + @PostMapping("/seaRelatedElements") + @ApiOperation("涉海要素") + public AjaxResult seaRelatedElements() { + try { + + //todo 先写死 没数据源 + SeaRelatedElementsVo bean = new SeaRelatedElementsVo(); + bean.setGkCount(StringKit.toString("34")); + bean.setMtCount(StringKit.toString("32")); + bean.setCzCount(StringKit.toString("12")); + bean.setCyCount(StringKit.toString("121")); + + return AjaxResult.success(bean); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + + + @PostMapping("/policeSituationStatistics") + @ApiOperation("警情统计") + public AjaxResult policeSituationStatistics() { + try { + List metaAlarmInfos = alarmInfoService.selectTop3AlarmInfo(); + return AjaxResult.success(metaAlarmInfos); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + + + @PostMapping("/policeSituationStatisticsList") + @ApiOperation("警情统计列表") + public AjaxResult policeSituationStatisticsList() { + try { +// LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); +// queryWrapper.orderByDesc(MetaAlarmInfo::getCreateTime); // Assuming ws_rksj is the field for sorting +// queryWrapper.last("LIMIT 100"); // Limit to 100 records + + List metaAlarmInfos = alarmInfoService.listAlarmAndHandleAlarm(); + + return AjaxResult.success(metaAlarmInfos); + } catch (Exception e) { + logger.info(StringKit.toString(e)); + return AjaxResult.error("请求失败,请联系管理员"); + } + } + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/dto/DevopsVideoInfoDto.java b/gather-app/src/main/java/com/ruoyi/business/domain/dto/DevopsVideoInfoDto.java new file mode 100644 index 0000000..ddf654a --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/dto/DevopsVideoInfoDto.java @@ -0,0 +1,169 @@ +package com.ruoyi.business.domain.dto; + +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 视频监控设备表(DevopsVideoInfo)Domain + * + * @author makejava + * @since 2023-09-15 17:30:11 + */ +@Data +@ApiModel(value = "DevopsVideoInfo", description = "视频监控设备表") +public class DevopsVideoInfoDto extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + private Long id; + + /** + * 场所编码 + */ + @ApiModelProperty("场所编码") + private String placeCode; + + /** + * 场所名称 + */ + @ApiModelProperty("场所名称") + private String placeName; + + /** + * 设备名称 + */ + @ApiModelProperty("设备名称") + private String deviceName; + + /** + * 监控类型 + */ + @ApiModelProperty("监控类型") + private Integer monitoringType; + @ApiModelProperty("监控类型") + private String monitoringTypeCn; + + /** + * 安装位置 + */ + @ApiModelProperty("安装位置") + private String deviceAddress; + + /** + * 通道国标编码 + */ + @ApiModelProperty("通道国标编码") + private String gbsChannelNo; + + /** + * NVR设备编码 + */ + @ApiModelProperty("NVR设备编码") + private String gbsNvrNo; + + /** + * 设备ip + */ + @ApiModelProperty("设备ip") + private String deviceIp; + + /** + * 设备经度 + */ + @ApiModelProperty("设备经度") + private Double longitude; + + /** + * 设备纬度 + */ + @ApiModelProperty("设备纬度") + private Double latitude; + + /** + * 设备高度 + */ + @ApiModelProperty("设备高度") + private String deviceHeight; + + /** + * 设备方位 + */ + @ApiModelProperty("设备方位") + private Integer orientation; + @ApiModelProperty("设备方位中文") + private String orientationCn; + + /** + * 通道号 + */ + @ApiModelProperty("通道号") + private Integer channelNo; + + /** + * U3D经度 + */ + @ApiModelProperty("U3D经度") + private Double u3dLongitude; + + /** + * U3D纬度 + */ + @ApiModelProperty("U3D纬度") + private Double u3dLatitude; + + /** + * 登陆帐号 + */ + @ApiModelProperty("登陆帐号") + private String account; + + /** + * 登陆密码 + */ + @ApiModelProperty("登陆密码") + private String password; + + /** + * 设备厂家 + */ + @ApiModelProperty("设备厂家") + private String manufactor; + + /** + * 设备品牌 + */ + @ApiModelProperty("设备品牌") + private String deviceBrand; + + /** + * 设备SN编号 + */ + @ApiModelProperty("设备SN号") + private String deviceSn; + + /** + * 设备端口 + */ + @ApiModelProperty("设备端口") + private Integer devicePort; + + /** + * 设备MAC + */ + @ApiModelProperty("设备MAC") + private String deviceMac; + + + /** + * 设备编码 + */ + @ApiModelProperty("设备编码") + private String deviceCode; + + @ApiModelProperty("通道号:gbs/nvr(nvr目前不支持)") + private String type; +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/KeyPersonnelVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/KeyPersonnelVo.java new file mode 100644 index 0000000..b5ade3b --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/KeyPersonnelVo.java @@ -0,0 +1,80 @@ +package com.ruoyi.business.domain.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 重点人员vo + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Data +@ApiModel(value = "KeyPersonnelVo", description = "重点人员vo") +public class KeyPersonnelVo { + + /** + * 重点人员总数 + */ + @ApiModelProperty("重点人员总数") + private String KeyPersonnelCount; + + +// 0105000000 +// 0106000000 +// 0107000000 +// 0109000000 +// 涉众型经济犯罪涉稳人员 0110000000 +// 其他利益群体 0103000000 + + /** + * 涉稳人员比例 + */ + @ApiModelProperty("涉稳人员比例") + private String swrybl; + + /** + * 涉军访人员比例 + */ + @ApiModelProperty("涉军访人员比例") + private String sjfrybl; + + /** + * 治安管控人员比例 + */ + @ApiModelProperty("治安管控人员 比例") + private String zagkrybl; + + /** + * 民代幼教师群体 比例 + */ + @ApiModelProperty("民代幼教师群体 比例") + private String mdyjsqtbl; + + /** + * 内保重点人员 比例 + */ + @ApiModelProperty("内保重点人员 比例") + private String nbzdrybl; + + /** + * 涉信访人员 比例 + */ + @ApiModelProperty("涉信访人员 比例") + private String sxfry; + + /** + * 涉众型经济犯罪涉稳人员 比例 + */ + @ApiModelProperty("涉众型经济犯罪涉稳人员 比例") + private String szxjjfzswrybl; + + /** + * 其他利益群体 比例 + */ + @ApiModelProperty("其他利益群体 比例") + private String qtlyqt; + + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoAndHandleAlarmVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoAndHandleAlarmVo.java new file mode 100644 index 0000000..40a6a6e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoAndHandleAlarmVo.java @@ -0,0 +1,64 @@ +package com.ruoyi.business.domain.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 接警信息表(MetaAlarmInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@ApiModel(value = "MetaAlarmInfoVo", description = "接警信息/出警信息表") +public class MetaAlarmInfoAndHandleAlarmVo { + + + @ApiModelProperty("id") + private String id; + /** + * 警情编码 + */ + @ApiModelProperty("警情编码") + private String jjxxAlarmCode; + @ApiModelProperty("接警人姓名") + private String jjxxPoliceReceiverName; + @ApiModelProperty("接警单位") + private String jjxxAlarmResponseUnit; + @ApiModelProperty("接警时间") + private String jjxxAlarmResponseTime; + @ApiModelProperty("报警内容") + private String jjxxAlarmResponseContent; + @ApiModelProperty("报警类型名称") + private String jjxxAlarmResponseTypeName; + @ApiModelProperty("报警人姓名") + private String jjxxInformantName; + @ApiModelProperty("报警人联系方式") + private String jjxxInformantPhone; + @ApiModelProperty("报警时间") + private String jjxxInformantTime; + @ApiModelProperty("处警详细地点") + private String jjxxAlarmAddress; + @ApiModelProperty("经度") + private String jjxxLongitude; + @ApiModelProperty("纬度") + private String jjxxLatitude; + @ApiModelProperty("警情编码") + private String cjxxAlarmCode; + @ApiModelProperty("处警单位名称") + private String cjxxHandleAlarmUnit; + @ApiModelProperty("处警时间") + private String cjxxHandleAlarmTime; + @ApiModelProperty("处警简要警情") + private String cjxxHandleAlarmContent; + @ApiModelProperty("处警详细地点") + private String cjxxHandleAlarmAddress; + @ApiModelProperty("处警人姓名") + private String cjxxHandleAlarmUser; + @ApiModelProperty("处境人姓名和编码") + private String cjxxHandleAlarmUserCode; + @ApiModelProperty("处警结果") + private String cjxxHandleAlarmResult; + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoVo.java new file mode 100644 index 0000000..20a9e5c --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/MetaAlarmInfoVo.java @@ -0,0 +1,30 @@ +package com.ruoyi.business.domain.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 接警信息表(MetaAlarmInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@ApiModel(value = "MetaAlarmInfoVo", description = "接警信息表") +public class MetaAlarmInfoVo { + + + /** + * 报警类型名称 + */ + @ApiModelProperty("报警类型名称") + private String alarmResponseTypeName; + + /** + * 总数 + */ + @ApiModelProperty("总数") + private String count; + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/OverviewResourcesVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/OverviewResourcesVo.java new file mode 100644 index 0000000..922a41e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/OverviewResourcesVo.java @@ -0,0 +1,43 @@ +package com.ruoyi.business.domain.vo; + +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 资源概况vo + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Data +@ApiModel(value = "OverviewResourcesVo", description = "资源概况vo") +public class OverviewResourcesVo { + + /** + * 流动人口总数 + */ + @ApiModelProperty("流动人口总数") + private String actualUserLdrkCount; + + /** + * 实有人口总数 + */ + @ApiModelProperty("实有人口总数") + private String actualUserSyrkCount; + + /** + * 实有房屋总数 + */ + @ApiModelProperty("实有房屋总数") + private String countSyfw; + + /** + * 实有单位总数 + */ + @ApiModelProperty("实有单位总数") + private String countSydw; + + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/PoliceForceDistributionVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/PoliceForceDistributionVo.java new file mode 100644 index 0000000..4ebfe4e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/PoliceForceDistributionVo.java @@ -0,0 +1,35 @@ +package com.ruoyi.business.domain.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 警力分布vo + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Data +@ApiModel(value = "PoliceForceDistributionVo", description = "警力分布vo") +public class PoliceForceDistributionVo { + + /** + * 派出所总数 + */ + @ApiModelProperty("派出所总数") + private String pcsCount; + + /** + * 警务室总数 + */ + @ApiModelProperty("警务室总数") + private String jwsCount; + + /** + * 执法警员总数 + */ + @ApiModelProperty("执法警员总数") + private String zfjyCount; + +} diff --git a/gather-app/src/main/java/com/ruoyi/business/domain/vo/SeaRelatedElementsVo.java b/gather-app/src/main/java/com/ruoyi/business/domain/vo/SeaRelatedElementsVo.java new file mode 100644 index 0000000..cb3a213 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/business/domain/vo/SeaRelatedElementsVo.java @@ -0,0 +1,41 @@ +package com.ruoyi.business.domain.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 涉海要素vo + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Data +@ApiModel(value = "SeaRelatedElementsVo", description = "涉海要素vo") +public class SeaRelatedElementsVo { + + /** + * 港口总数 + */ + @ApiModelProperty("港口总数") + private String gkCount; + + /** + * 码头总数 + */ + @ApiModelProperty("码头总数") + private String mtCount; + + /** + * 船只总数 + */ + @ApiModelProperty("船只总数") + private String czCount; + + /** + * 船员总数 + */ + @ApiModelProperty("船员总数") + private String cyCount; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java new file mode 100644 index 0000000..09095f2 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.DevopsDeviceInfo; +import com.ruoyi.database.service.DevopsDeviceInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 智能设备信息表(DevopsDeviceInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "智能设备信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/devopsDeviceInfo") +public class DevopsDeviceInfoController extends BaseController { + + private final DevopsDeviceInfoService devopsDeviceInfoService; + + @GetMapping + @ApiOperation("查询智能设备信息表") + public TableDataInfo list(DevopsDeviceInfo devopsDeviceInfo) { + startPage(); + List list = devopsDeviceInfoService.list(new QueryWrapper<>(devopsDeviceInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增智能设备信息表") + @Log(title = "智能设备信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody DevopsDeviceInfo devopsDeviceInfo) { + return toAjax(devopsDeviceInfoService.save(devopsDeviceInfo)); + } + + @PutMapping + @ApiOperation("修改智能设备信息表") + @Log(title = "智能设备信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody DevopsDeviceInfo devopsDeviceInfo) { + return toAjax(devopsDeviceInfoService.updateById(devopsDeviceInfo)); + } + + @DeleteMapping + @ApiOperation("删除智能设备信息表") + @Log(title = "智能设备信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(devopsDeviceInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出智能设备信息表") + @Log(title = "智能设备信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, DevopsDeviceInfo devopsDeviceInfo) { + List list = devopsDeviceInfoService.list(new QueryWrapper<>(devopsDeviceInfo)); + ExcelUtil util = new ExcelUtil<>(DevopsDeviceInfo.class); + util.exportExcel(response, list, "智能设备信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入智能设备信息表模板") + @Log(title = "智能设备信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(DevopsDeviceInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入智能设备信息表") + @Log(title = "智能设备信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(DevopsDeviceInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = devopsDeviceInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "智能设备信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceStatusController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceStatusController.java new file mode 100644 index 0000000..a11a213 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceStatusController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.DevopsDeviceStatus; +import com.ruoyi.database.service.DevopsDeviceStatusService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 设备状态信息表(DevopsDeviceStatus)Controller + * + * @author makejava + * @since 2023-11-29 09:34:46 + */ +@Api(tags = "设备状态信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/devopsDeviceStatus") +public class DevopsDeviceStatusController extends BaseController { + + private final DevopsDeviceStatusService devopsDeviceStatusService; + + @GetMapping + @ApiOperation("查询设备状态信息表") + public TableDataInfo list(DevopsDeviceStatus devopsDeviceStatus) { + startPage(); + List list = devopsDeviceStatusService.list(new QueryWrapper<>(devopsDeviceStatus)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增设备状态信息表") + @Log(title = "设备状态信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody DevopsDeviceStatus devopsDeviceStatus) { + return toAjax(devopsDeviceStatusService.save(devopsDeviceStatus)); + } + + @PutMapping + @ApiOperation("修改设备状态信息表") + @Log(title = "设备状态信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody DevopsDeviceStatus devopsDeviceStatus) { + return toAjax(devopsDeviceStatusService.updateById(devopsDeviceStatus)); + } + + @DeleteMapping + @ApiOperation("删除设备状态信息表") + @Log(title = "设备状态信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(devopsDeviceStatusService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出设备状态信息表") + @Log(title = "设备状态信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, DevopsDeviceStatus devopsDeviceStatus) { + List list = devopsDeviceStatusService.list(new QueryWrapper<>(devopsDeviceStatus)); + ExcelUtil util = new ExcelUtil<>(DevopsDeviceStatus.class); + util.exportExcel(response, list, "设备状态信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入设备状态信息表模板") + @Log(title = "设备状态信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(DevopsDeviceStatus.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入设备状态信息表") + @Log(title = "设备状态信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(DevopsDeviceStatus.class); + List list = util.importExcel(file.getInputStream()); + Object result = devopsDeviceStatusService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "设备状态信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java new file mode 100644 index 0000000..5c0ab8f --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java @@ -0,0 +1,122 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.business.domain.dto.DevopsVideoInfoDto; +import com.ruoyi.common.utils.StringKit; +import com.ruoyi.database.domain.DevopsVideoInfo; +import com.ruoyi.database.service.DevopsVideoInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 视频监控设备表(DevopsVideoInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:46 + */ +@Api(tags = "视频监控设备表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/devopsVideoInfo") +public class DevopsVideoInfoController extends BaseController { + + private final DevopsVideoInfoService devopsVideoInfoService; + + @GetMapping + @ApiOperation("查询视频监控设备表") + public TableDataInfo list(DevopsVideoInfo devopsVideoInfo) { + startPage(); + List list = devopsVideoInfoService.list(new QueryWrapper<>(devopsVideoInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增视频监控设备表") + @Log(title = "视频监控设备表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody DevopsVideoInfo devopsVideoInfo) { + return toAjax(devopsVideoInfoService.save(devopsVideoInfo)); + } + + @PutMapping + @ApiOperation("修改视频监控设备表") + @Log(title = "视频监控设备表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody DevopsVideoInfo devopsVideoInfo) { + return toAjax(devopsVideoInfoService.updateById(devopsVideoInfo)); + } + + @DeleteMapping + @ApiOperation("删除视频监控设备表") + @Log(title = "视频监控设备表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(devopsVideoInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出视频监控设备表") + @Log(title = "视频监控设备表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, DevopsVideoInfo devopsVideoInfo) { + List list = devopsVideoInfoService.list(new QueryWrapper<>(devopsVideoInfo)); + ExcelUtil util = new ExcelUtil<>(DevopsVideoInfo.class); + util.exportExcel(response, list, "视频监控设备表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入视频监控设备表模板") + @Log(title = "视频监控设备表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(DevopsVideoInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入视频监控设备表") + @Log(title = "视频监控设备表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(DevopsVideoInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = devopsVideoInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "视频监控设备表错误数据"); + return null; + } + return AjaxResult.success(result); + } + + + + /** + * 一键导入 + */ + @Log(title = "一键导入") + @PostMapping("/yjdr") + @ResponseBody + @ApiOperation("一键导入") + public AjaxResult yjdr(DevopsVideoInfoDto villageDeviceInfo) { + String res = "error"; + try { + res = devopsVideoInfoService.yjdr(villageDeviceInfo); + if (res.contains("success")) { + return AjaxResult.success("导入成功"); + } else { + return AjaxResult.error("导入失败:" + res); + } + } catch (Exception e) { + logger.error(StringKit.getTrace(e)); + return AjaxResult.error("导入出现错误"); + } + } + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoStatusController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoStatusController.java new file mode 100644 index 0000000..e5c3f14 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoStatusController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.DevopsVideoStatus; +import com.ruoyi.database.service.DevopsVideoStatusService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 视频监控状态表(DevopsVideoStatus)Controller + * + * @author makejava + * @since 2023-11-29 09:34:46 + */ +@Api(tags = "视频监控状态表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/devopsVideoStatus") +public class DevopsVideoStatusController extends BaseController { + + private final DevopsVideoStatusService devopsVideoStatusService; + + @GetMapping + @ApiOperation("查询视频监控状态表") + public TableDataInfo list(DevopsVideoStatus devopsVideoStatus) { + startPage(); + List list = devopsVideoStatusService.list(new QueryWrapper<>(devopsVideoStatus)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增视频监控状态表") + @Log(title = "视频监控状态表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody DevopsVideoStatus devopsVideoStatus) { + return toAjax(devopsVideoStatusService.save(devopsVideoStatus)); + } + + @PutMapping + @ApiOperation("修改视频监控状态表") + @Log(title = "视频监控状态表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody DevopsVideoStatus devopsVideoStatus) { + return toAjax(devopsVideoStatusService.updateById(devopsVideoStatus)); + } + + @DeleteMapping + @ApiOperation("删除视频监控状态表") + @Log(title = "视频监控状态表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(devopsVideoStatusService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出视频监控状态表") + @Log(title = "视频监控状态表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, DevopsVideoStatus devopsVideoStatus) { + List list = devopsVideoStatusService.list(new QueryWrapper<>(devopsVideoStatus)); + ExcelUtil util = new ExcelUtil<>(DevopsVideoStatus.class); + util.exportExcel(response, list, "视频监控状态表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入视频监控状态表模板") + @Log(title = "视频监控状态表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(DevopsVideoStatus.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入视频监控状态表") + @Log(title = "视频监控状态表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(DevopsVideoStatus.class); + List list = util.importExcel(file.getInputStream()); + Object result = devopsVideoStatusService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "视频监控状态表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitInfoController.java new file mode 100644 index 0000000..c93bd5c --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaActualUnitInfo; +import com.ruoyi.database.service.MetaActualUnitInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 实有单位信息表(MetaActualUnitInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "实有单位信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaActualUnitInfo") +public class MetaActualUnitInfoController extends BaseController { + + private final MetaActualUnitInfoService metaActualUnitInfoService; + + @GetMapping + @ApiOperation("查询实有单位信息表") + public TableDataInfo list(MetaActualUnitInfo metaActualUnitInfo) { + startPage(); + List list = metaActualUnitInfoService.list(new QueryWrapper<>(metaActualUnitInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增实有单位信息表") + @Log(title = "实有单位信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaActualUnitInfo metaActualUnitInfo) { + return toAjax(metaActualUnitInfoService.save(metaActualUnitInfo)); + } + + @PutMapping + @ApiOperation("修改实有单位信息表") + @Log(title = "实有单位信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaActualUnitInfo metaActualUnitInfo) { + return toAjax(metaActualUnitInfoService.updateById(metaActualUnitInfo)); + } + + @DeleteMapping + @ApiOperation("删除实有单位信息表") + @Log(title = "实有单位信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaActualUnitInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出实有单位信息表") + @Log(title = "实有单位信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaActualUnitInfo metaActualUnitInfo) { + List list = metaActualUnitInfoService.list(new QueryWrapper<>(metaActualUnitInfo)); + ExcelUtil util = new ExcelUtil<>(MetaActualUnitInfo.class); + util.exportExcel(response, list, "实有单位信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入实有单位信息表模板") + @Log(title = "实有单位信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaActualUnitInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入实有单位信息表") + @Log(title = "实有单位信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaActualUnitInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaActualUnitInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "实有单位信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitUserInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitUserInfoController.java new file mode 100644 index 0000000..9ef699e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUnitUserInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaActualUnitUserInfo; +import com.ruoyi.database.service.MetaActualUnitUserInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 单位从业人员信息表(MetaActualUnitUserInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "单位从业人员信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaActualUnitUserInfo") +public class MetaActualUnitUserInfoController extends BaseController { + + private final MetaActualUnitUserInfoService metaActualUnitUserInfoService; + + @GetMapping + @ApiOperation("查询单位从业人员信息表") + public TableDataInfo list(MetaActualUnitUserInfo metaActualUnitUserInfo) { + startPage(); + List list = metaActualUnitUserInfoService.list(new QueryWrapper<>(metaActualUnitUserInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增单位从业人员信息表") + @Log(title = "单位从业人员信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaActualUnitUserInfo metaActualUnitUserInfo) { + return toAjax(metaActualUnitUserInfoService.save(metaActualUnitUserInfo)); + } + + @PutMapping + @ApiOperation("修改单位从业人员信息表") + @Log(title = "单位从业人员信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaActualUnitUserInfo metaActualUnitUserInfo) { + return toAjax(metaActualUnitUserInfoService.updateById(metaActualUnitUserInfo)); + } + + @DeleteMapping + @ApiOperation("删除单位从业人员信息表") + @Log(title = "单位从业人员信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaActualUnitUserInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出单位从业人员信息表") + @Log(title = "单位从业人员信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaActualUnitUserInfo metaActualUnitUserInfo) { + List list = metaActualUnitUserInfoService.list(new QueryWrapper<>(metaActualUnitUserInfo)); + ExcelUtil util = new ExcelUtil<>(MetaActualUnitUserInfo.class); + util.exportExcel(response, list, "单位从业人员信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入单位从业人员信息表模板") + @Log(title = "单位从业人员信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaActualUnitUserInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入单位从业人员信息表") + @Log(title = "单位从业人员信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaActualUnitUserInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaActualUnitUserInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "单位从业人员信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUserInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUserInfoController.java new file mode 100644 index 0000000..8a0d3c3 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaActualUserInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaActualUserInfo; +import com.ruoyi.database.service.MetaActualUserInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 实有人口信息表(MetaActualUserInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "实有人口信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaActualUserInfo") +public class MetaActualUserInfoController extends BaseController { + + private final MetaActualUserInfoService metaActualUserInfoService; + + @GetMapping + @ApiOperation("查询实有人口信息表") + public TableDataInfo list(MetaActualUserInfo metaActualUserInfo) { + startPage(); + List list = metaActualUserInfoService.list(new QueryWrapper<>(metaActualUserInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增实有人口信息表") + @Log(title = "实有人口信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaActualUserInfo metaActualUserInfo) { + return toAjax(metaActualUserInfoService.save(metaActualUserInfo)); + } + + @PutMapping + @ApiOperation("修改实有人口信息表") + @Log(title = "实有人口信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaActualUserInfo metaActualUserInfo) { + return toAjax(metaActualUserInfoService.updateById(metaActualUserInfo)); + } + + @DeleteMapping + @ApiOperation("删除实有人口信息表") + @Log(title = "实有人口信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaActualUserInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出实有人口信息表") + @Log(title = "实有人口信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaActualUserInfo metaActualUserInfo) { + List list = metaActualUserInfoService.list(new QueryWrapper<>(metaActualUserInfo)); + ExcelUtil util = new ExcelUtil<>(MetaActualUserInfo.class); + util.exportExcel(response, list, "实有人口信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入实有人口信息表模板") + @Log(title = "实有人口信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaActualUserInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入实有人口信息表") + @Log(title = "实有人口信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaActualUserInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaActualUserInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "实有人口信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaAlarmInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaAlarmInfoController.java new file mode 100644 index 0000000..8123172 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaAlarmInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaAlarmInfo; +import com.ruoyi.database.service.MetaAlarmInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 接警信息表(MetaAlarmInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "接警信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaAlarmInfo") +public class MetaAlarmInfoController extends BaseController { + + private final MetaAlarmInfoService metaAlarmInfoService; + + @GetMapping + @ApiOperation("查询接警信息表") + public TableDataInfo list(MetaAlarmInfo metaAlarmInfo) { + startPage(); + List list = metaAlarmInfoService.list(new QueryWrapper<>(metaAlarmInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增接警信息表") + @Log(title = "接警信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaAlarmInfo metaAlarmInfo) { + return toAjax(metaAlarmInfoService.save(metaAlarmInfo)); + } + + @PutMapping + @ApiOperation("修改接警信息表") + @Log(title = "接警信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaAlarmInfo metaAlarmInfo) { + return toAjax(metaAlarmInfoService.updateById(metaAlarmInfo)); + } + + @DeleteMapping + @ApiOperation("删除接警信息表") + @Log(title = "接警信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaAlarmInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出接警信息表") + @Log(title = "接警信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaAlarmInfo metaAlarmInfo) { + List list = metaAlarmInfoService.list(new QueryWrapper<>(metaAlarmInfo)); + ExcelUtil util = new ExcelUtil<>(MetaAlarmInfo.class); + util.exportExcel(response, list, "接警信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入接警信息表模板") + @Log(title = "接警信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaAlarmInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入接警信息表") + @Log(title = "接警信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaAlarmInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaAlarmInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "接警信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaFishingBoatInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaFishingBoatInfoController.java new file mode 100644 index 0000000..3d3cb7d --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaFishingBoatInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaFishingBoatInfo; +import com.ruoyi.database.service.MetaFishingBoatInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 渔船信息表(MetaFishingBoatInfo)Controller + * + * @author makejava + * @since 2023-12-02 11:30:27 + */ +@Api(tags = "渔船信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaFishingBoatInfo") +public class MetaFishingBoatInfoController extends BaseController { + + private final MetaFishingBoatInfoService metaFishingBoatInfoService; + + @GetMapping + @ApiOperation("查询渔船信息表") + public TableDataInfo list(MetaFishingBoatInfo metaFishingBoatInfo) { + startPage(); + List list = metaFishingBoatInfoService.list(new QueryWrapper<>(metaFishingBoatInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增渔船信息表") + @Log(title = "渔船信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaFishingBoatInfo metaFishingBoatInfo) { + return toAjax(metaFishingBoatInfoService.save(metaFishingBoatInfo)); + } + + @PutMapping + @ApiOperation("修改渔船信息表") + @Log(title = "渔船信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaFishingBoatInfo metaFishingBoatInfo) { + return toAjax(metaFishingBoatInfoService.updateById(metaFishingBoatInfo)); + } + + @DeleteMapping + @ApiOperation("删除渔船信息表") + @Log(title = "渔船信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaFishingBoatInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出渔船信息表") + @Log(title = "渔船信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaFishingBoatInfo metaFishingBoatInfo) { + List list = metaFishingBoatInfoService.list(new QueryWrapper<>(metaFishingBoatInfo)); + ExcelUtil util = new ExcelUtil<>(MetaFishingBoatInfo.class); + util.exportExcel(response, list, "渔船信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入渔船信息表模板") + @Log(title = "渔船信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaFishingBoatInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入渔船信息表") + @Log(title = "渔船信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaFishingBoatInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaFishingBoatInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "渔船信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaHandleAlarmInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaHandleAlarmInfoController.java new file mode 100644 index 0000000..54c7ffc --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaHandleAlarmInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaHandleAlarmInfo; +import com.ruoyi.database.service.MetaHandleAlarmInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 处警信息表(MetaHandleAlarmInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "处警信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaHandleAlarmInfo") +public class MetaHandleAlarmInfoController extends BaseController { + + private final MetaHandleAlarmInfoService metaHandleAlarmInfoService; + + @GetMapping + @ApiOperation("查询处警信息表") + public TableDataInfo list(MetaHandleAlarmInfo metaHandleAlarmInfo) { + startPage(); + List list = metaHandleAlarmInfoService.list(new QueryWrapper<>(metaHandleAlarmInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增处警信息表") + @Log(title = "处警信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaHandleAlarmInfo metaHandleAlarmInfo) { + return toAjax(metaHandleAlarmInfoService.save(metaHandleAlarmInfo)); + } + + @PutMapping + @ApiOperation("修改处警信息表") + @Log(title = "处警信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaHandleAlarmInfo metaHandleAlarmInfo) { + return toAjax(metaHandleAlarmInfoService.updateById(metaHandleAlarmInfo)); + } + + @DeleteMapping + @ApiOperation("删除处警信息表") + @Log(title = "处警信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaHandleAlarmInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出处警信息表") + @Log(title = "处警信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaHandleAlarmInfo metaHandleAlarmInfo) { + List list = metaHandleAlarmInfoService.list(new QueryWrapper<>(metaHandleAlarmInfo)); + ExcelUtil util = new ExcelUtil<>(MetaHandleAlarmInfo.class); + util.exportExcel(response, list, "处警信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入处警信息表模板") + @Log(title = "处警信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaHandleAlarmInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入处警信息表") + @Log(title = "处警信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaHandleAlarmInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaHandleAlarmInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "处警信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserInfoController.java new file mode 100644 index 0000000..4223cf8 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaImpUserInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaImpUserInfo; +import com.ruoyi.database.service.MetaImpUserInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 重点人员信息表(MetaImpUserInfo)Controller + * + * @author makejava + * @since 2023-11-29 09:34:47 + */ +@Api(tags = "重点人员信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaImpUserInfo") +public class MetaImpUserInfoController extends BaseController { + + private final MetaImpUserInfoService metaImpUserInfoService; + + @GetMapping + @ApiOperation("查询重点人员信息表") + public TableDataInfo list(MetaImpUserInfo metaImpUserInfo) { + startPage(); + List list = metaImpUserInfoService.list(new QueryWrapper<>(metaImpUserInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增重点人员信息表") + @Log(title = "重点人员信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaImpUserInfo metaImpUserInfo) { + return toAjax(metaImpUserInfoService.save(metaImpUserInfo)); + } + + @PutMapping + @ApiOperation("修改重点人员信息表") + @Log(title = "重点人员信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaImpUserInfo metaImpUserInfo) { + return toAjax(metaImpUserInfoService.updateById(metaImpUserInfo)); + } + + @DeleteMapping + @ApiOperation("删除重点人员信息表") + @Log(title = "重点人员信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaImpUserInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出重点人员信息表") + @Log(title = "重点人员信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaImpUserInfo metaImpUserInfo) { + List list = metaImpUserInfoService.list(new QueryWrapper<>(metaImpUserInfo)); + ExcelUtil util = new ExcelUtil<>(MetaImpUserInfo.class); + util.exportExcel(response, list, "重点人员信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入重点人员信息表模板") + @Log(title = "重点人员信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaImpUserInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入重点人员信息表") + @Log(title = "重点人员信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaImpUserInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaImpUserInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "重点人员信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceOfficeInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceOfficeInfoController.java new file mode 100644 index 0000000..ddb6aa6 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceOfficeInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaPoliceOfficeInfo; +import com.ruoyi.database.service.MetaPoliceOfficeInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 警务室信息表(MetaPoliceOfficeInfo)Controller + * + * @author makejava + * @since 2023-12-01 20:04:07 + */ +@Api(tags = "警务室信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaPoliceOfficeInfo") +public class MetaPoliceOfficeInfoController extends BaseController { + + private final MetaPoliceOfficeInfoService metaPoliceOfficeInfoService; + + @GetMapping + @ApiOperation("查询警务室信息表") + public TableDataInfo list(MetaPoliceOfficeInfo metaPoliceOfficeInfo) { + startPage(); + List list = metaPoliceOfficeInfoService.list(new QueryWrapper<>(metaPoliceOfficeInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增警务室信息表") + @Log(title = "警务室信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaPoliceOfficeInfo metaPoliceOfficeInfo) { + return toAjax(metaPoliceOfficeInfoService.save(metaPoliceOfficeInfo)); + } + + @PutMapping + @ApiOperation("修改警务室信息表") + @Log(title = "警务室信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaPoliceOfficeInfo metaPoliceOfficeInfo) { + return toAjax(metaPoliceOfficeInfoService.updateById(metaPoliceOfficeInfo)); + } + + @DeleteMapping + @ApiOperation("删除警务室信息表") + @Log(title = "警务室信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaPoliceOfficeInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出警务室信息表") + @Log(title = "警务室信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaPoliceOfficeInfo metaPoliceOfficeInfo) { + List list = metaPoliceOfficeInfoService.list(new QueryWrapper<>(metaPoliceOfficeInfo)); + ExcelUtil util = new ExcelUtil<>(MetaPoliceOfficeInfo.class); + util.exportExcel(response, list, "警务室信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入警务室信息表模板") + @Log(title = "警务室信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaPoliceOfficeInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入警务室信息表") + @Log(title = "警务室信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaPoliceOfficeInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaPoliceOfficeInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "警务室信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceStationInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceStationInfoController.java new file mode 100644 index 0000000..1e7f65b --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/MetaPoliceStationInfoController.java @@ -0,0 +1,95 @@ +package com.ruoyi.database.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.database.domain.MetaPoliceStationInfo; +import com.ruoyi.database.service.MetaPoliceStationInfoService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 派出所信息表(MetaPoliceStationInfo)Controller + * + * @author makejava + * @since 2023-12-01 20:04:08 + */ +@Api(tags = "派出所信息表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/metaPoliceStationInfo") +public class MetaPoliceStationInfoController extends BaseController { + + private final MetaPoliceStationInfoService metaPoliceStationInfoService; + + @GetMapping + @ApiOperation("查询派出所信息表") + public TableDataInfo list(MetaPoliceStationInfo metaPoliceStationInfo) { + startPage(); + List list = metaPoliceStationInfoService.list(new QueryWrapper<>(metaPoliceStationInfo)); + return getDataTable(list); + } + + @PostMapping + @ApiOperation("新增派出所信息表") + @Log(title = "派出所信息表", businessType = BusinessType.INSERT) + public AjaxResult insert(@RequestBody MetaPoliceStationInfo metaPoliceStationInfo) { + return toAjax(metaPoliceStationInfoService.save(metaPoliceStationInfo)); + } + + @PutMapping + @ApiOperation("修改派出所信息表") + @Log(title = "派出所信息表", businessType = BusinessType.UPDATE) + public AjaxResult update(@RequestBody MetaPoliceStationInfo metaPoliceStationInfo) { + return toAjax(metaPoliceStationInfoService.updateById(metaPoliceStationInfo)); + } + + @DeleteMapping + @ApiOperation("删除派出所信息表") + @Log(title = "派出所信息表", businessType = BusinessType.DELETE) + public AjaxResult delete(@RequestParam("idList") List idList) { + return toAjax(metaPoliceStationInfoService.removeByIds(idList)); + } + + @PostMapping("/export") + @ApiOperation("导出派出所信息表") + @Log(title = "派出所信息表", businessType = BusinessType.EXPORT) + public void export(HttpServletResponse response, MetaPoliceStationInfo metaPoliceStationInfo) { + List list = metaPoliceStationInfoService.list(new QueryWrapper<>(metaPoliceStationInfo)); + ExcelUtil util = new ExcelUtil<>(MetaPoliceStationInfo.class); + util.exportExcel(response, list, "派出所信息表"); + } + + @PostMapping("/importTemplate") + @ApiOperation("导入派出所信息表模板") + @Log(title = "派出所信息表", businessType = BusinessType.IMPORT) + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil<>(MetaPoliceStationInfo.class); + util.importTemplateExcel(response, "场所基础信息模板"); + } + + @PostMapping("/importData") + @ApiOperation("导入派出所信息表") + @Log(title = "派出所信息表", businessType = BusinessType.IMPORT) + public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil<>(MetaPoliceStationInfo.class); + List list = util.importExcel(file.getInputStream()); + Object result = metaPoliceStationInfoService.importData(list); + if (result instanceof List) { + util.exportExcel(response, (List) result, "派出所信息表错误数据"); + return null; + } + return AjaxResult.success(result); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceInfo.java new file mode 100644 index 0000000..7993d3b --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceInfo.java @@ -0,0 +1,246 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 智能设备信息表(DevopsDeviceInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:03 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "devops_device_info") +@ApiModel(value = "DevopsDeviceInfo", description = "智能设备信息表") +public class DevopsDeviceInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 场所编码 + */ + @ApiModelProperty("场所编码") + @Excel(name = "场所编码") + private String placeCode; + + /** + * 场所名称 + */ + @ApiModelProperty("场所名称") + @Excel(name = "场所名称") + private String placeName; + + /** + * 设备名称 + */ + @ApiModelProperty("设备名称") + @Excel(name = "设备名称") + private String deviceName; + + /** + * 设备编码 + */ + @ApiModelProperty("设备编码") + @Excel(name = "设备编码") + private String deviceCode; + + /** + * 通道国标编码 + */ + @ApiModelProperty("通道国标编码") + @Excel(name = "通道国标编码") + private String gbsChannelNo; + + /** + * 设备类型 + */ + @ApiModelProperty("设备类型") + @Excel(name = "设备类型") + private Integer deviceType; + @TableField(exist = false) + private String deviceTypeCn; + + /** + * 设备能力集 + */ + @ApiModelProperty("设备能力集") + @Excel(name = "设备能力集") + private String structuredCameraType; + + /** + * 安装位置 + */ + @ApiModelProperty("安装位置") + @Excel(name = "安装位置") + private String deviceAddress; + + /** + * 设备方位 + */ + @ApiModelProperty("设备方位") + @Excel(name = "设备方位") + private Integer orientation; + @TableField(exist = false) + private String orientationCn; + + /** + * 设备SN编号 + */ + @ApiModelProperty("设备SN编号") + @Excel(name = "设备SN编号") + private String deviceSn; + + /** + * 设备品牌 + */ + @ApiModelProperty("设备品牌") + @Excel(name = "设备品牌") + private String deviceBrand; + + /** + * 设备ip + */ + @ApiModelProperty("设备ip") + @Excel(name = "设备ip") + private String deviceIp; + + /** + * 设备端口 + */ + @ApiModelProperty("设备端口") + @Excel(name = "设备端口") + private Integer devicePort; + + /** + * 设备MAC + */ + @ApiModelProperty("设备MAC") + @Excel(name = "设备MAC") + private String deviceMac; + + /** + * 设备IMEI + */ + @ApiModelProperty("设备IMEI") + @Excel(name = "设备IMEI") + private String deviceImei; + + /** + * 设备经度 + */ + @ApiModelProperty("设备经度") + @Excel(name = "设备经度") + private Double longitude; + + /** + * 设备纬度 + */ + @ApiModelProperty("设备纬度") + @Excel(name = "设备纬度") + private Double latitude; + + /** + * U3D经度 + */ + @ApiModelProperty("U3D经度") + @Excel(name = "U3D经度") + private Double u3dLongitude; + + /** + * U3D纬度 + */ + @ApiModelProperty("U3D纬度") + @Excel(name = "U3D纬度") + private Double u3dLatitude; + + /** + * 设备高度 + */ + @ApiModelProperty("设备高度") + @Excel(name = "设备高度") + private String deviceHeight; + + /** + * 设备厂家 + */ + @ApiModelProperty("设备厂家") + @Excel(name = "设备厂家") + private String manufactor; + + /** + * 设备登陆帐号 + */ + @ApiModelProperty("设备登陆帐号") + @Excel(name = "设备登陆帐号") + private String account; + + /** + * 设备登陆密码 + */ + @ApiModelProperty("设备登陆密码") + @Excel(name = "设备登陆密码") + private String password; + + /** + * 进出方向 + */ + @ApiModelProperty("进出方向") + @Excel(name = "进出方向") + private Integer direction; + @TableField(exist = false) + private String directionCn; + + /** + * RTSP流地址 + */ + @ApiModelProperty("RTSP流地址") + @Excel(name = "RTSP流地址") + private String rtspAddress; + + /** + * 是否卡口设备 + */ + @ApiModelProperty("是否卡口设备") + @Excel(name = "是否卡口设备") + private Integer isDoorwayVideo; + @TableField(exist = false) + private String isDoorwayVideoCn; + + /** + * 商汤region_id + */ + @ApiModelProperty("商汤region_id") + @Excel(name = "商汤region_id") + private String stRegionId; + + /** + * 商汤camera_idx + */ + @ApiModelProperty("商汤camera_idx") + @Excel(name = "商汤camera_idx") + private String stCameraIdx; + + /** + * 通道号 + */ + @ApiModelProperty("通道号") + @Excel(name = "通道号") + private Integer channelNo; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceStatus.java b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceStatus.java new file mode 100644 index 0000000..cdc48c4 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsDeviceStatus.java @@ -0,0 +1,111 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 设备状态信息表(DevopsDeviceStatus)Domain + * + * @author makejava + * @since 2023-12-01 20:06:04 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "devops_device_status") +@ApiModel(value = "DevopsDeviceStatus", description = "设备状态信息表") +public class DevopsDeviceStatus extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 场所编码 + */ + @ApiModelProperty("场所编码") + @Excel(name = "场所编码") + private String placeCode; + + /** + * 场所名称 + */ + @ApiModelProperty("场所名称") + @Excel(name = "场所名称") + private String placeName; + + /** + * 设备编码 + */ + @ApiModelProperty("设备编码") + @Excel(name = "设备编码") + private String deviceCode; + + /** + * 通道国标编码 + */ + @ApiModelProperty("通道国标编码") + @Excel(name = "通道国标编码") + private String gbsChannelNo; + + /** + * 设备名称 + */ + @ApiModelProperty("设备名称") + @Excel(name = "设备名称") + private String deviceName; + + /** + * 设备ip + */ + @ApiModelProperty("设备ip") + @Excel(name = "设备ip") + private String deviceIp; + + /** + * 设备类型 + */ + @ApiModelProperty("设备类型") + @Excel(name = "设备类型") + private Integer deviceType; + @TableField(exist = false) + private String deviceTypeCn; + + /** + * 心跳时间 + */ + @ApiModelProperty("心跳时间") + @Excel(name = "心跳时间") + private Long heartbeatTime; + + /** + * 是否在线 + */ + @ApiModelProperty("是否在线") + @Excel(name = "是否在线") + private Integer isOnline; + @TableField(exist = false) + private String isOnlineCn; + + /** + * 是否存在告警 + */ + @ApiModelProperty("是否存在告警") + @Excel(name = "是否存在告警") + private Integer isAlarm; + @TableField(exist = false) + private String isAlarmCn; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoInfo.java new file mode 100644 index 0000000..c6d0d6f --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoInfo.java @@ -0,0 +1,200 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 视频监控设备表(DevopsVideoInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:03 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "devops_video_info") +@ApiModel(value = "DevopsVideoInfo", description = "视频监控设备表") +public class DevopsVideoInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 场所编码 + */ + @ApiModelProperty("场所编码") + @Excel(name = "场所编码") + private String placeCode; + + /** + * 场所名称 + */ + @ApiModelProperty("场所名称") + @Excel(name = "场所名称") + private String placeName; + + /** + * 设备编码 + */ + @ApiModelProperty("设备编码") + @Excel(name = "设备编码") + private String deviceCode; + + /** + * 设备名称 + */ + @ApiModelProperty("设备名称") + @Excel(name = "设备名称") + private String deviceName; + + /** + * 监控类型 + */ + @ApiModelProperty("监控类型") + @Excel(name = "监控类型") + private Integer monitoringType; + @TableField(exist = false) + private String monitoringTypeCn; + + /** + * 安装位置 + */ + @ApiModelProperty("安装位置") + @Excel(name = "安装位置") + private String deviceAddress; + + /** + * 设备方位 + */ + @ApiModelProperty("设备方位") + @Excel(name = "设备方位") + private Integer orientation; + @TableField(exist = false) + private String orientationCn; + + /** + * 设备SN编号 + */ + @ApiModelProperty("设备SN编号") + @Excel(name = "设备SN编号") + private String deviceSn; + + /** + * 设备品牌 + */ + @ApiModelProperty("设备品牌") + @Excel(name = "设备品牌") + private String deviceBrand; + + /** + * 设备ip + */ + @ApiModelProperty("设备ip") + @Excel(name = "设备ip") + private String deviceIp; + + /** + * 设备端口 + */ + @ApiModelProperty("设备端口") + @Excel(name = "设备端口") + private Integer devicePort; + + /** + * 设备MAC + */ + @ApiModelProperty("设备MAC") + @Excel(name = "设备MAC") + private String deviceMac; + + /** + * 设备经度 + */ + @ApiModelProperty("设备经度") + @Excel(name = "设备经度") + private Double longitude; + + /** + * 设备纬度 + */ + @ApiModelProperty("设备纬度") + @Excel(name = "设备纬度") + private Double latitude; + + /** + * U3D经度 + */ + @ApiModelProperty("U3D经度") + @Excel(name = "U3D经度") + private Double u3dLongitude; + + /** + * U3D纬度 + */ + @ApiModelProperty("U3D纬度") + @Excel(name = "U3D纬度") + private Double u3dLatitude; + + /** + * 设备高度 + */ + @ApiModelProperty("设备高度") + @Excel(name = "设备高度") + private String deviceHeight; + + /** + * 设备厂家 + */ + @ApiModelProperty("设备厂家") + @Excel(name = "设备厂家") + private String manufactor; + + /** + * 登陆帐号 + */ + @ApiModelProperty("登陆帐号") + @Excel(name = "登陆帐号") + private String account; + + /** + * 登陆密码 + */ + @ApiModelProperty("登陆密码") + @Excel(name = "登陆密码") + private String password; + + /** + * 通道国标编码 + */ + @ApiModelProperty("通道国标编码") + @Excel(name = "通道国标编码") + private String gbsChannelNo; + + /** + * NVR设备编码 + */ + @ApiModelProperty("NVR设备编码") + @Excel(name = "NVR设备编码") + private String gbsNvrNo; + + /** + * 通道号 + */ + @ApiModelProperty("通道号") + @Excel(name = "通道号") + private Integer channelNo; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoStatus.java b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoStatus.java new file mode 100644 index 0000000..e5b379f --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/DevopsVideoStatus.java @@ -0,0 +1,109 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 视频监控状态表(DevopsVideoStatus)Domain + * + * @author makejava + * @since 2023-12-01 20:06:03 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "devops_video_status") +@ApiModel(value = "DevopsVideoStatus", description = "视频监控状态表") +public class DevopsVideoStatus extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 场所编码 + */ + @ApiModelProperty("场所编码") + @Excel(name = "场所编码") + private String placeCode; + + /** + * 场所名称 + */ + @ApiModelProperty("场所名称") + @Excel(name = "场所名称") + private String placeName; + + /** + * 设备编码 + */ + @ApiModelProperty("设备编码") + @Excel(name = "设备编码") + private String deviceCode; + + /** + * NVR设备编码 + */ + @ApiModelProperty("NVR设备编码") + @Excel(name = "NVR设备编码") + private String gbsNvrNo; + + /** + * 通道国标编码 + */ + @ApiModelProperty("通道国标编码") + @Excel(name = "通道国标编码") + private String gbsChannelNo; + + /** + * 设备名称 + */ + @ApiModelProperty("设备名称") + @Excel(name = "设备名称") + private String deviceName; + + /** + * 设备ip + */ + @ApiModelProperty("设备ip") + @Excel(name = "设备ip") + private String deviceIp; + + /** + * 监控类型 + */ + @ApiModelProperty("监控类型") + @Excel(name = "监控类型") + private Integer monitoringType; + @TableField(exist = false) + private String monitoringTypeCn; + + /** + * 心跳时间 + */ + @ApiModelProperty("心跳时间") + @Excel(name = "心跳时间") + private Long heartbeatTime; + + /** + * 是否在线 + */ + @ApiModelProperty("是否在线") + @Excel(name = "是否在线") + private Integer isOnline; + @TableField(exist = false) + private String isOnlineCn; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitInfo.java new file mode 100644 index 0000000..b2223bb --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitInfo.java @@ -0,0 +1,149 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 实有单位信息表(MetaActualUnitInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_actual_unit_info") +@ApiModel(value = "MetaActualUnitInfo", description = "实有单位信息表") +public class MetaActualUnitInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 单位ID + */ + @ApiModelProperty("单位ID") + @Excel(name = "单位ID") + private String unitId; + + /** + * 单位名称 + */ + @ApiModelProperty("单位名称") + @Excel(name = "单位名称") + private String uintName; + + /** + * 单位地址 + */ + @ApiModelProperty("单位地址") + @Excel(name = "单位地址") + private String uintAddress; + + /** + * 联系电话 + */ + @ApiModelProperty("联系电话") + @Excel(name = "联系电话") + private String phone; + + /** + * 单位状态 + */ + @ApiModelProperty("单位状态") + @Excel(name = "单位状态") + private Integer unitState; + @TableField(exist = false) + private String unitStateCn; + + /** + * 单位类型名称 + */ + @ApiModelProperty("单位类型名称") + @Excel(name = "单位类型名称") + private String unitTypeName; + + /** + * 派出所代码 + */ + @ApiModelProperty("派出所代码") + @Excel(name = "派出所代码") + private String policeStationCode; + + /** + * 派出所名称 + */ + @ApiModelProperty("派出所名称") + @Excel(name = "派出所名称") + private String policeStationName; + + /** + * 警务区编码 + */ + @ApiModelProperty("警务区编码") + @Excel(name = "警务区编码") + private String policeDistrictCode; + + /** + * 警务区名称 + */ + @ApiModelProperty("警务区名称") + @Excel(name = "警务区名称") + private String policeDistrictName; + + /** + * 经度 + */ + @ApiModelProperty("经度") + @Excel(name = "经度") + private Double longitude; + + /** + * 纬度 + */ + @ApiModelProperty("纬度") + @Excel(name = "纬度") + private Double latitude; + + /** + * 企业法定代表人 + */ + @ApiModelProperty("企业法定代表人") + @Excel(name = "企业法定代表人") + private String legalPerson; + + /** + * 法定代表人身份证 + */ + @ApiModelProperty("法定代表人身份证") + @Excel(name = "法定代表人身份证") + private String legalPersonIdCard; + + /** + * 元数据创建时间 + */ + @ApiModelProperty("元数据创建时间") + @Excel(name = "元数据创建时间") + private String metaCreateTime; + + /** + * 元数据更新时间 + */ + @ApiModelProperty("元数据更新时间") + @Excel(name = "元数据更新时间") + private String metaUpdateTime; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java new file mode 100644 index 0000000..69c9307 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java @@ -0,0 +1,118 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 单位从业人员信息表(MetaActualUnitUserInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_actual_unit_user_info") +@ApiModel(value = "MetaActualUnitUserInfo", description = "单位从业人员信息表") +public class MetaActualUnitUserInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 单位id + */ + @ApiModelProperty("单位id") + @Excel(name = "单位id") + private Long unitId; + + /** + * 单位名称 + */ + @ApiModelProperty("单位名称") + @Excel(name = "单位名称") + private String unitName; + + /** + * 员工照片 + */ + @ApiModelProperty("员工照片") + @Excel(name = "员工照片") + private String staffPic; + + /** + * 员工姓名 + */ + @ApiModelProperty("员工姓名") + @Excel(name = "员工姓名") + private String staffName; + + /** + * 员工身份证 + */ + @ApiModelProperty("员工身份证") + @Excel(name = "员工身份证") + private String identityId; + + /** + * 联系方式 + */ + @ApiModelProperty("联系方式") + @Excel(name = "联系方式") + private String contactInfo; + + /** + * 性别 + */ + @ApiModelProperty("性别") + @Excel(name = "性别") + private Integer sex; + @TableField(exist = false) + private String sexCn; + + /** + * 人员分类 + */ + @ApiModelProperty("人员分类") + @Excel(name = "人员分类") + private Integer staffType; + @TableField(exist = false) + private String staffTypeCn; + + /** + * 人员状态 + */ + @ApiModelProperty("人员状态") + @Excel(name = "人员状态") + private Integer staffState; + @TableField(exist = false) + private String staffStateCn; + + /** + * 元数据创建时间 + */ + @ApiModelProperty("元数据创建时间") + @Excel(name = "元数据创建时间") + private String metaCreateTime; + + /** + * 元数据更新时间 + */ + @ApiModelProperty("元数据更新时间") + @Excel(name = "元数据更新时间") + private String metaUpdateTime; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUserInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUserInfo.java new file mode 100644 index 0000000..b8c3b17 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUserInfo.java @@ -0,0 +1,179 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 实有人口信息表(MetaActualUserInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_actual_user_info") +@ApiModel(value = "MetaActualUserInfo", description = "实有人口信息表") +public class MetaActualUserInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 照片 + */ + @ApiModelProperty("照片") + @Excel(name = "照片") + private String userPic; + + /** + * 姓名 + */ + @ApiModelProperty("姓名") + @Excel(name = "姓名") + private String userName; + + /** + * 身份证号码 + */ + @ApiModelProperty("身份证号码") + @Excel(name = "身份证号码") + private String idCard; + + /** + * 性别 + */ + @ApiModelProperty("性别") + @Excel(name = "性别") + private Integer sex; + @TableField(exist = false) + private String sexCn; + + /** + * 移动号码 + */ + @ApiModelProperty("移动号码") + @Excel(name = "移动号码") + private String phone; + + /** + * 联系电话 + */ + @ApiModelProperty("联系电话") + @Excel(name = "联系电话") + private String landline; + + /** + * 实有人口类型 + */ + @ApiModelProperty("实有人口类型") + @Excel(name = "实有人口类型") + private Integer actualUserType; + @TableField(exist = false) + private String actualUserTypeCn; + + /** + * 户籍所属辖区 + */ + @ApiModelProperty("户籍所属辖区") + @Excel(name = "户籍所属辖区") + private String houseHoldRegister; + + /** + * 户籍地址详情 + */ + @ApiModelProperty("户籍地址详情") + @Excel(name = "户籍地址详情") + private String houseHoldAddress; + + /** + * 现住地详址 + */ + @ApiModelProperty("现住地详址") + @Excel(name = "现住地详址") + private String habitationAddress; + + /** + * 派出所代码 + */ + @ApiModelProperty("派出所代码") + @Excel(name = "派出所代码") + private String policeStationCode; + + /** + * 派出所名称 + */ + @ApiModelProperty("派出所名称") + @Excel(name = "派出所名称") + private String policeStationName; + + /** + * 警务区编码 + */ + @ApiModelProperty("警务区编码") + @Excel(name = "警务区编码") + private String policeDistrictCode; + + /** + * 警务区名称 + */ + @ApiModelProperty("警务区名称") + @Excel(name = "警务区名称") + private String policeDistrictName; + + /** + * 管理状态 + */ + @ApiModelProperty("管理状态") + @Excel(name = "管理状态") + private String managementStatus; + + /** + * 房屋ID + */ + @ApiModelProperty("房屋ID") + @Excel(name = "房屋ID") + private String homeId; + + /** + * 房屋代码 + */ + @ApiModelProperty("房屋代码") + @Excel(name = "房屋代码") + private String homeCode; + + /** + * 户号 + */ + @ApiModelProperty("户号") + @Excel(name = "户号") + private String accountNumber; + + /** + * 元数据创建时间 + */ + @ApiModelProperty("元数据创建时间") + @Excel(name = "元数据创建时间") + private String metaCreateTime; + + /** + * 元数据更新时间 + */ + @ApiModelProperty("元数据更新时间") + @Excel(name = "元数据更新时间") + private String metaUpdateTime; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaAlarmInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaAlarmInfo.java new file mode 100644 index 0000000..4b7c88d --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaAlarmInfo.java @@ -0,0 +1,118 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 接警信息表(MetaAlarmInfo)Domain + * + * @author makejava + * @since 2023-12-02 11:30:01 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_alarm_info") +@ApiModel(value = "MetaAlarmInfo", description = "接警信息表") +public class MetaAlarmInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 警情编码 + */ + @ApiModelProperty("警情编码") + @Excel(name = "警情编码") + private String alarmCode; + + /** + * 接警人姓名 + */ + @ApiModelProperty("接警人姓名") + @Excel(name = "接警人姓名") + private String policeReceiverName; + + /** + * 接警单位 + */ + @ApiModelProperty("接警单位") + @Excel(name = "接警单位") + private String alarmResponseUnit; + + /** + * 接警时间 + */ + @ApiModelProperty("接警时间") + @Excel(name = "接警时间") + private String alarmResponseTime; + + /** + * 报警内容 + */ + @ApiModelProperty("报警内容") + @Excel(name = "报警内容") + private String alarmResponseContent; + + /** + * 报警类型名称 + */ + @ApiModelProperty("报警类型名称") + @Excel(name = "报警类型名称") + private String alarmResponseTypeName; + + /** + * 报警人姓名 + */ + @ApiModelProperty("报警人姓名") + @Excel(name = "报警人姓名") + private String informantName; + + /** + * 报警人联系方式 + */ + @ApiModelProperty("报警人联系方式") + @Excel(name = "报警人联系方式") + private String informantPhone; + + /** + * 报警时间 + */ + @ApiModelProperty("报警时间") + @Excel(name = "报警时间") + private String informantTime; + + /** + * 接警事发地址 + */ + @ApiModelProperty("接警事发地址") + @Excel(name = "接警事发地址") + private String alarmAddress; + + /** + * 经度 + */ + @ApiModelProperty("经度") + @Excel(name = "经度") + private Double longitude; + + /** + * 纬度 + */ + @ApiModelProperty("纬度") + @Excel(name = "纬度") + private Double latitude; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaFishingBoatInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaFishingBoatInfo.java new file mode 100644 index 0000000..500e662 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaFishingBoatInfo.java @@ -0,0 +1,104 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 渔船信息表(MetaFishingBoatInfo)Domain + * + * @author makejava + * @since 2023-12-02 11:30:28 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_fishing_boat_info") +@ApiModel(value = "MetaFishingBoatInfo", description = "渔船信息表") +public class MetaFishingBoatInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 渔船类型 + */ + @ApiModelProperty("渔船类型") + @Excel(name = "渔船类型") + private String fishingBoatTypeName; + + /** + * 渔船船号 + */ + @ApiModelProperty("渔船船号") + @Excel(name = "渔船船号") + private String fishingBoatCode; + + /** + * 船舶证号 + */ + @ApiModelProperty("船舶证号") + @Excel(name = "船舶证号") + private String fishingBoatTypeCard; + + /** + * 常舶港 + */ + @ApiModelProperty("常舶港") + @Excel(name = "常舶港") + private String dailyShipping; + + /** + * 船籍港 + */ + @ApiModelProperty("船籍港") + @Excel(name = "船籍港") + private String registerShipping; + + /** + * 是否本地船 + */ + @ApiModelProperty("是否本地船") + @Excel(name = "是否本地船") + private String isLocal; + + /** + * 作业类型 + */ + @ApiModelProperty("作业类型") + @Excel(name = "作业类型") + private String jobType; + + /** + * 船主姓名 + */ + @ApiModelProperty("船主姓名") + @Excel(name = "船主姓名") + private String crewName; + + /** + * 报备时间 + */ + @ApiModelProperty("报备时间") + @Excel(name = "报备时间") + private String registerTime; + + /** + * 派出所名称 + */ + @ApiModelProperty("派出所名称") + @Excel(name = "派出所名称") + private String policeStationName; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaHandleAlarmInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaHandleAlarmInfo.java new file mode 100644 index 0000000..769f95c --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaHandleAlarmInfo.java @@ -0,0 +1,90 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 处警信息表(MetaHandleAlarmInfo)Domain + * + * @author makejava + * @since 2023-12-02 11:29:59 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_handle_alarm_info") +@ApiModel(value = "MetaHandleAlarmInfo", description = "处警信息表") +public class MetaHandleAlarmInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 警情编码 + */ + @ApiModelProperty("警情编码") + @Excel(name = "警情编码") + private String alarmCode; + + /** + * 处警单位名称 + */ + @ApiModelProperty("处警单位名称") + @Excel(name = "处警单位名称") + private String handleAlarmUnit; + + /** + * 处警时间 + */ + @ApiModelProperty("处警时间") + @Excel(name = "处警时间") + private String handleAlarmTime; + + /** + * 处警简要警情 + */ + @ApiModelProperty("处警简要警情") + @Excel(name = "处警简要警情") + private String handleAlarmContent; + + /** + * 处警详细地点 + */ + @ApiModelProperty("处警详细地点") + @Excel(name = "处警详细地点") + private String handleAlarmAddress; + + /** + * 处警人姓名 + */ + @ApiModelProperty("处警人姓名") + @Excel(name = "处警人姓名") + private String handleAlarmUser; + + /** + * 处境人姓名和编码 + */ + @ApiModelProperty("处境人姓名和编码") + @Excel(name = "处境人姓名和编码") + private String handleAlarmUserCode; + + /** + * 处警结果 + */ + @ApiModelProperty("处警结果") + @Excel(name = "处警结果") + private String handleAlarmResult; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaImpUserInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaImpUserInfo.java new file mode 100644 index 0000000..cc45836 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaImpUserInfo.java @@ -0,0 +1,128 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 重点人员信息表(MetaImpUserInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:02 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_imp_user_info") +@ApiModel(value = "MetaImpUserInfo", description = "重点人员信息表") +public class MetaImpUserInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 照片 + */ + @ApiModelProperty("照片") + @Excel(name = "照片") + private String userPic; + + /** + * 姓名 + */ + @ApiModelProperty("姓名") + @Excel(name = "姓名") + private String userName; + + /** + * 身份证号码 + */ + @ApiModelProperty("身份证号码") + @Excel(name = "身份证号码") + private String idCard; + + /** + * 性别 + */ + @ApiModelProperty("性别") + @Excel(name = "性别") + private Integer sex; + @TableField(exist = false) + private String sexCn; + + /** + * 联系方式 + */ + @ApiModelProperty("联系方式") + @Excel(name = "联系方式") + private String phone; + + /** + * 重点人大类 + */ + @ApiModelProperty("重点人大类") + @Excel(name = "重点人大类") + private String impUserType; + + /** + * 重点人小类 + */ + @ApiModelProperty("重点人小类") + @Excel(name = "重点人小类") + private String impUserSubType; + + /** + * 户籍地区号 + */ + @ApiModelProperty("户籍地区号") + @Excel(name = "户籍地区号") + private String houseHoldRegister; + + /** + * 户籍地详址 + */ + @ApiModelProperty("户籍地详址") + @Excel(name = "户籍地详址") + private String houseHoldAddress; + + /** + * 现住地区号 + */ + @ApiModelProperty("现住地区号") + @Excel(name = "现住地区号") + private String habitationRegister; + + /** + * 现住地详址 + */ + @ApiModelProperty("现住地详址") + @Excel(name = "现住地详址") + private String habitationAddress; + + /** + * 登记人单位代码 + */ + @ApiModelProperty("登记人单位代码") + @Excel(name = "登记人单位代码") + private String registerUnitCode; + + /** + * 登记人单位名称 + */ + @ApiModelProperty("登记人单位名称") + @Excel(name = "登记人单位名称") + private String registerUnitName; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceOfficeInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceOfficeInfo.java new file mode 100644 index 0000000..c1198ab --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceOfficeInfo.java @@ -0,0 +1,69 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 警务室信息表(MetaPoliceOfficeInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:03 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_police_office_info") +@ApiModel(value = "MetaPoliceOfficeInfo", description = "警务室信息表") +public class MetaPoliceOfficeInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 警务室编码 + */ + @ApiModelProperty("警务室编码") + @Excel(name = "警务室编码") + private String policeOfficeCode; + + /** + * 警务室名称 + */ + @ApiModelProperty("警务室名称") + @Excel(name = "警务室名称") + private String policeOfficeName; + + /** + * 警务室地址 + */ + @ApiModelProperty("警务室地址") + @Excel(name = "警务室地址") + private String policeOfficeAddress; + + /** + * 设备经度 + */ + @ApiModelProperty("设备经度") + @Excel(name = "设备经度") + private Double longitude; + + /** + * 设备纬度 + */ + @ApiModelProperty("设备纬度") + @Excel(name = "设备纬度") + private Double latitude; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceStationInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceStationInfo.java new file mode 100644 index 0000000..664bdbf --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaPoliceStationInfo.java @@ -0,0 +1,69 @@ +package com.ruoyi.database.domain; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 派出所信息表(MetaPoliceStationInfo)Domain + * + * @author makejava + * @since 2023-12-01 20:06:03 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "meta_police_station_info") +@ApiModel(value = "MetaPoliceStationInfo", description = "派出所信息表") +public class MetaPoliceStationInfo extends BaseEntity { + + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 派出所编码 + */ + @ApiModelProperty("派出所编码") + @Excel(name = "派出所编码") + private String policeStationCode; + + /** + * 派出所名称 + */ + @ApiModelProperty("派出所名称") + @Excel(name = "派出所名称") + private String policeStationName; + + /** + * 派出所地址 + */ + @ApiModelProperty("派出所地址") + @Excel(name = "派出所地址") + private String policeStationAddress; + + /** + * 设备经度 + */ + @ApiModelProperty("设备经度") + @Excel(name = "设备经度") + private Double longitude; + + /** + * 设备纬度 + */ + @ApiModelProperty("设备纬度") + @Excel(name = "设备纬度") + private Double latitude; + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceInfoMapper.java new file mode 100644 index 0000000..b2b2831 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.DevopsDeviceInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 智能设备信息表(DevopsDeviceInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:32:33 + */ +@Mapper +public interface DevopsDeviceInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceStatusMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceStatusMapper.java new file mode 100644 index 0000000..5f21934 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsDeviceStatusMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.DevopsDeviceStatus; +import org.apache.ibatis.annotations.Mapper; + +/** + * 设备状态信息表(DevopsDeviceStatus)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:20 + */ +@Mapper +public interface DevopsDeviceStatusMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoInfoMapper.java new file mode 100644 index 0000000..d4530a5 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.DevopsVideoInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 视频监控设备表(DevopsVideoInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +@Mapper +public interface DevopsVideoInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoStatusMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoStatusMapper.java new file mode 100644 index 0000000..b7b9a25 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/DevopsVideoStatusMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.DevopsVideoStatus; +import org.apache.ibatis.annotations.Mapper; + +/** + * 视频监控状态表(DevopsVideoStatus)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +@Mapper +public interface DevopsVideoStatusMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitInfoMapper.java new file mode 100644 index 0000000..6658455 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaActualUnitInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 实有单位信息表(MetaActualUnitInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Mapper +public interface MetaActualUnitInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitUserInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitUserInfoMapper.java new file mode 100644 index 0000000..4e05265 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUnitUserInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaActualUnitUserInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 单位从业人员信息表(MetaActualUnitUserInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Mapper +public interface MetaActualUnitUserInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUserInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUserInfoMapper.java new file mode 100644 index 0000000..77f49d7 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaActualUserInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaActualUserInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 实有人口信息表(MetaActualUserInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +@Mapper +public interface MetaActualUserInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaAlarmInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaAlarmInfoMapper.java new file mode 100644 index 0000000..7aacb36 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaAlarmInfoMapper.java @@ -0,0 +1,58 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.business.domain.vo.MetaAlarmInfoAndHandleAlarmVo; +import com.ruoyi.business.domain.vo.MetaAlarmInfoVo; +import com.ruoyi.database.domain.MetaAlarmInfo; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Select; + +import java.util.List; +import java.util.Map; + +/** + * 接警信息表(MetaAlarmInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +@Mapper +public interface MetaAlarmInfoMapper extends BaseMapper { + + + @Select( + "select alarm_response_type_name,count from ( " + + "select *,count(1) count from meta_alarm_info group by alarm_response_type_name " + + ") a order by count desc limit 3 ") + public List selectTop3AlarmInfo(); + + + @Select(" select a.id, " + + "a.alarm_code jjxx_alarm_code, " + + "a.police_receiver_name jjxx_police_receiver_name, " + + "a.alarm_response_unit jjxx_alarm_response_unit, " + + "a.alarm_response_time jjxx_alarm_response_time, " + + "a.alarm_response_content jjxx_alarm_response_content, " + + "a.alarm_response_type_name jjxx_alarm_response_type_name, " + + "a.informant_name jjxx_informant_name, " + + "a.informant_phone jjxx_informant_phone, " + + "a.informant_time jjxx_informant_time, " + + "a.alarm_address jjxx_alarm_address, " + + "a.longitude jjxx_longitude, " + + "a.latitude jjxx_latitude, " + + "b.alarm_code cjxx_alarm_code, " + + "b.handle_alarm_unit cjxx_handle_alarm_unit, " + + "b.handle_alarm_time cjxx_handle_alarm_time, " + + "b.handle_alarm_content cjxx_handle_alarm_content, " + + "b.handle_alarm_address cjxx_handle_alarm_address, " + + "b.handle_alarm_user cjxx_handle_alarm_user, " + + "b.handle_alarm_user_code cjxx_handle_alarm_user_code, " + + "b.handle_alarm_result cjxx_handle_alarm_result from ( " + + "select * from meta_alarm_info order by create_time desc limit 100 " + + ") a " + + "left join meta_handle_alarm_info b on a.alarm_code = b.alarm_code ") + public List listAlarmAndHandleAlarm(); + + + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaFishingBoatInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaFishingBoatInfoMapper.java new file mode 100644 index 0000000..be00a06 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaFishingBoatInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaFishingBoatInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 渔船信息表(MetaFishingBoatInfo)Mapper + * + * @author makejava + * @since 2023-12-02 11:30:28 + */ +@Mapper +public interface MetaFishingBoatInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaHandleAlarmInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaHandleAlarmInfoMapper.java new file mode 100644 index 0000000..a333fa3 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaHandleAlarmInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaHandleAlarmInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 处警信息表(MetaHandleAlarmInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:24 + */ +@Mapper +public interface MetaHandleAlarmInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaImpUserInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaImpUserInfoMapper.java new file mode 100644 index 0000000..123ebd8 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaImpUserInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaImpUserInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 重点人员信息表(MetaImpUserInfo)Mapper + * + * @author makejava + * @since 2023-11-29 09:33:24 + */ +@Mapper +public interface MetaImpUserInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceOfficeInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceOfficeInfoMapper.java new file mode 100644 index 0000000..a9abedf --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceOfficeInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaPoliceOfficeInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 警务室信息表(MetaPoliceOfficeInfo)Mapper + * + * @author makejava + * @since 2023-12-01 20:04:07 + */ +@Mapper +public interface MetaPoliceOfficeInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceStationInfoMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceStationInfoMapper.java new file mode 100644 index 0000000..cc02383 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/MetaPoliceStationInfoMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.MetaPoliceStationInfo; +import org.apache.ibatis.annotations.Mapper; + +/** + * 派出所信息表(MetaPoliceStationInfo)Mapper + * + * @author makejava + * @since 2023-12-01 20:04:08 + */ +@Mapper +public interface MetaPoliceStationInfoMapper extends BaseMapper { + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceInfoService.java new file mode 100644 index 0000000..d6e82c2 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.DevopsDeviceInfo; + +import java.util.List; + +/** + * 智能设备信息表(DevopsDeviceInfo)Service + * + * @author makejava + * @since 2023-11-29 09:32:31 + */ +public interface DevopsDeviceInfoService extends IService { + + /** + * 新增或者更新智能设备信息表 + * + * @param devopsDeviceInfo 智能设备信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(DevopsDeviceInfo devopsDeviceInfo); + + /** + * 导入智能设备信息表 + * + * @param list 智能设备信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceStatusService.java b/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceStatusService.java new file mode 100644 index 0000000..0876b39 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/DevopsDeviceStatusService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.DevopsDeviceStatus; + +import java.util.List; + +/** + * 设备状态信息表(DevopsDeviceStatus)Service + * + * @author makejava + * @since 2023-11-29 09:33:20 + */ +public interface DevopsDeviceStatusService extends IService { + + /** + * 新增或者更新设备状态信息表 + * + * @param devopsDeviceStatus 设备状态信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(DevopsDeviceStatus devopsDeviceStatus); + + /** + * 导入设备状态信息表 + * + * @param list 设备状态信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoInfoService.java new file mode 100644 index 0000000..4670fef --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoInfoService.java @@ -0,0 +1,35 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.business.domain.dto.DevopsVideoInfoDto; +import com.ruoyi.database.domain.DevopsVideoInfo; + +import java.util.List; + +/** + * 视频监控设备表(DevopsVideoInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:20 + */ +public interface DevopsVideoInfoService extends IService { + + /** + * 新增或者更新视频监控设备表 + * + * @param devopsVideoInfo 视频监控设备表对象 + * @return 结果 + */ + boolean insertOrUpdate(DevopsVideoInfo devopsVideoInfo); + + /** + * 导入视频监控设备表 + * + * @param list 视频监控设备表列表 + * @return 结果 + */ + Object importData(List list); + + public String yjdr(DevopsVideoInfoDto bean); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoStatusService.java b/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoStatusService.java new file mode 100644 index 0000000..6df0524 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/DevopsVideoStatusService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.DevopsVideoStatus; + +import java.util.List; + +/** + * 视频监控状态表(DevopsVideoStatus)Service + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +public interface DevopsVideoStatusService extends IService { + + /** + * 新增或者更新视频监控状态表 + * + * @param devopsVideoStatus 视频监控状态表对象 + * @return 结果 + */ + boolean insertOrUpdate(DevopsVideoStatus devopsVideoStatus); + + /** + * 导入视频监控状态表 + * + * @param list 视频监控状态表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitInfoService.java new file mode 100644 index 0000000..23a3eb8 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaActualUnitInfo; + +import java.util.List; + +/** + * 实有单位信息表(MetaActualUnitInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +public interface MetaActualUnitInfoService extends IService { + + /** + * 新增或者更新实有单位信息表 + * + * @param metaActualUnitInfo 实有单位信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaActualUnitInfo metaActualUnitInfo); + + /** + * 导入实有单位信息表 + * + * @param list 实有单位信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitUserInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitUserInfoService.java new file mode 100644 index 0000000..c910557 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUnitUserInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaActualUnitUserInfo; + +import java.util.List; + +/** + * 单位从业人员信息表(MetaActualUnitUserInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +public interface MetaActualUnitUserInfoService extends IService { + + /** + * 新增或者更新单位从业人员信息表 + * + * @param metaActualUnitUserInfo 单位从业人员信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaActualUnitUserInfo metaActualUnitUserInfo); + + /** + * 导入单位从业人员信息表 + * + * @param list 单位从业人员信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUserInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUserInfoService.java new file mode 100644 index 0000000..2fc5ef4 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaActualUserInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaActualUserInfo; + +import java.util.List; + +/** + * 实有人口信息表(MetaActualUserInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +public interface MetaActualUserInfoService extends IService { + + /** + * 新增或者更新实有人口信息表 + * + * @param metaActualUserInfo 实有人口信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaActualUserInfo metaActualUserInfo); + + /** + * 导入实有人口信息表 + * + * @param list 实有人口信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaAlarmInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaAlarmInfoService.java new file mode 100644 index 0000000..405baaa --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaAlarmInfoService.java @@ -0,0 +1,39 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.business.domain.vo.MetaAlarmInfoAndHandleAlarmVo; +import com.ruoyi.business.domain.vo.MetaAlarmInfoVo; +import com.ruoyi.database.domain.MetaAlarmInfo; + +import java.util.List; +import java.util.Map; + +/** + * 接警信息表(MetaAlarmInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +public interface MetaAlarmInfoService extends IService { + + /** + * 新增或者更新接警信息表 + * + * @param metaAlarmInfo 接警信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaAlarmInfo metaAlarmInfo); + + /** + * 导入接警信息表 + * + * @param list 接警信息表列表 + * @return 结果 + */ + Object importData(List list); + + public List selectTop3AlarmInfo(); + + public List listAlarmAndHandleAlarm(); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaFishingBoatInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaFishingBoatInfoService.java new file mode 100644 index 0000000..463539e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaFishingBoatInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaFishingBoatInfo; + +import java.util.List; + +/** + * 渔船信息表(MetaFishingBoatInfo)Service + * + * @author makejava + * @since 2023-12-02 11:30:27 + */ +public interface MetaFishingBoatInfoService extends IService { + + /** + * 新增或者更新渔船信息表 + * + * @param metaFishingBoatInfo 渔船信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaFishingBoatInfo metaFishingBoatInfo); + + /** + * 导入渔船信息表 + * + * @param list 渔船信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaHandleAlarmInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaHandleAlarmInfoService.java new file mode 100644 index 0000000..86524ec --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaHandleAlarmInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaHandleAlarmInfo; + +import java.util.List; + +/** + * 处警信息表(MetaHandleAlarmInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +public interface MetaHandleAlarmInfoService extends IService { + + /** + * 新增或者更新处警信息表 + * + * @param metaHandleAlarmInfo 处警信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaHandleAlarmInfo metaHandleAlarmInfo); + + /** + * 导入处警信息表 + * + * @param list 处警信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaImpUserInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaImpUserInfoService.java new file mode 100644 index 0000000..e53fe86 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaImpUserInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaImpUserInfo; + +import java.util.List; + +/** + * 重点人员信息表(MetaImpUserInfo)Service + * + * @author makejava + * @since 2023-11-29 09:33:24 + */ +public interface MetaImpUserInfoService extends IService { + + /** + * 新增或者更新重点人员信息表 + * + * @param metaImpUserInfo 重点人员信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaImpUserInfo metaImpUserInfo); + + /** + * 导入重点人员信息表 + * + * @param list 重点人员信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceOfficeInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceOfficeInfoService.java new file mode 100644 index 0000000..fab87e3 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceOfficeInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaPoliceOfficeInfo; + +import java.util.List; + +/** + * 警务室信息表(MetaPoliceOfficeInfo)Service + * + * @author makejava + * @since 2023-12-01 20:04:07 + */ +public interface MetaPoliceOfficeInfoService extends IService { + + /** + * 新增或者更新警务室信息表 + * + * @param metaPoliceOfficeInfo 警务室信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaPoliceOfficeInfo metaPoliceOfficeInfo); + + /** + * 导入警务室信息表 + * + * @param list 警务室信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceStationInfoService.java b/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceStationInfoService.java new file mode 100644 index 0000000..5fad82a --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/MetaPoliceStationInfoService.java @@ -0,0 +1,32 @@ +package com.ruoyi.database.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.MetaPoliceStationInfo; + +import java.util.List; + +/** + * 派出所信息表(MetaPoliceStationInfo)Service + * + * @author makejava + * @since 2023-12-01 20:04:08 + */ +public interface MetaPoliceStationInfoService extends IService { + + /** + * 新增或者更新派出所信息表 + * + * @param metaPoliceStationInfo 派出所信息表对象 + * @return 结果 + */ + boolean insertOrUpdate(MetaPoliceStationInfo metaPoliceStationInfo); + + /** + * 导入派出所信息表 + * + * @param list 派出所信息表列表 + * @return 结果 + */ + Object importData(List list); +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceInfoServiceImpl.java new file mode 100644 index 0000000..18d3fe8 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.DevopsDeviceInfo; +import com.ruoyi.database.mapper.DevopsDeviceInfoMapper; +import com.ruoyi.database.service.DevopsDeviceInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 智能设备信息表(DevopsDeviceInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:32:32 + */ +@Service +public class DevopsDeviceInfoServiceImpl extends ServiceImpl implements DevopsDeviceInfoService { + + @Override + public boolean insertOrUpdate(DevopsDeviceInfo devopsDeviceInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (DevopsDeviceInfo devopsDeviceInfo : list) { + try { + insertOrUpdate(devopsDeviceInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceStatusServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceStatusServiceImpl.java new file mode 100644 index 0000000..48bd5c2 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsDeviceStatusServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.DevopsDeviceStatus; +import com.ruoyi.database.mapper.DevopsDeviceStatusMapper; +import com.ruoyi.database.service.DevopsDeviceStatusService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 设备状态信息表(DevopsDeviceStatus)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:20 + */ +@Service +public class DevopsDeviceStatusServiceImpl extends ServiceImpl implements DevopsDeviceStatusService { + + @Override + public boolean insertOrUpdate(DevopsDeviceStatus devopsDeviceStatus) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (DevopsDeviceStatus devopsDeviceStatus : list) { + try { + insertOrUpdate(devopsDeviceStatus); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoInfoServiceImpl.java new file mode 100644 index 0000000..3a4a11a --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoInfoServiceImpl.java @@ -0,0 +1,198 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONArray; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.business.domain.dto.DevopsVideoInfoDto; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.*; +import com.ruoyi.common.utils.bean.BeanUtils; +import com.ruoyi.database.domain.DevopsVideoInfo; +import com.ruoyi.database.mapper.DevopsVideoInfoMapper; +import com.ruoyi.database.service.DevopsVideoInfoService; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 视频监控设备表(DevopsVideoInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:20 + */ +@Service +@RequiredArgsConstructor +public class DevopsVideoInfoServiceImpl extends ServiceImpl implements DevopsVideoInfoService { + + private final DevopsVideoInfoMapper videoInfoMapper; + + + @Override + public boolean insertOrUpdate(DevopsVideoInfo devopsVideoInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (DevopsVideoInfo devopsVideoInfo : list) { + try { + insertOrUpdate(devopsVideoInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } + + + @Override + public String yjdr(DevopsVideoInfoDto bean) { + String type = StringKit.toString(bean.getType()); + if ("".equals(type)) { + return "error-导入类型未设置"; + } + + if ("gbs".equals(type)) { + int count = 0; + try { + String gbsip = PropertiesUtil.queryPropertiesByKey("gbsIp"); + String gbsport = PropertiesUtil.queryPropertiesByKey("gbsPort"); + + String loginurl = "http://" + gbsip + ":" + gbsport + "/api/v1/login?username=admin&password=af7548eedff8e737c0e4b2a669497290#&url_token_only=true"; + String res = JsoupUtils.getJsoupDocGet(loginurl); + JSONObject loginResJson = JSON.parseObject(res); + String urlToken = ""; + if (loginResJson != null) { + urlToken = StringKit.toString(loginResJson.get("URLToken")); + } + //如果urltoken获取失败直接结束方法 + if ("".equals(urlToken)) { + return "urltoken 获取失败!请检查配置文件是否正确"; + } + String channellistUrl = "http://" + gbsip + ":" + gbsport + "/api/v1/device/channellist?token=" + urlToken + "&url_token_only=true"; + String channellistRes = JsoupUtils.getJsoupDocGet(channellistUrl); + if ("".equals(StringKit.toString(channellistRes))) { + return "调用设备列表失败!请检查配置文件是否正确"; + } + JSONObject channelObj = JSONObject.parseObject(channellistRes); + String channelJsonArrStr = StringKit.toString(channelObj.get("ChannelList")); + JSONArray channelJsonArr = JSONArray.parseArray(channelJsonArrStr); + if (channelJsonArr != null && channelJsonArr.size() > 0) { + for (Object o : channelJsonArr) { + bean = new DevopsVideoInfoDto(); + count = 1; + String channelStr = StringKit.toString(o); + JSONObject channelJson = JSONObject.parseObject(channelStr); + + String Name = StringKit.toString(channelJson.get("Name")); + if (Name.contains("GB")) { + log.debug("过滤包含GB的数据:"); + continue; + } + + String villageName = ""; + String villageCode = ""; + + // 根据摄像头类型生成 + String serialPara = "901"; + String deviceCode = ""; + + if (!"".equals(StringKit.toString(villageCode))) { + deviceCode = villageCode + serialPara + V4CodeUtils.getSerialDeviceNumber(villageCode); + } else { + log.debug("小区编码不存在跳过;"); + continue; + } + bean.setDeviceCode(deviceCode); + + String code = StringKit.toString(channelJson.get("ID")); + bean.setGbsChannelNo(code); + + String name = StringKit.toString(channelJson.get("CustomName")); + if ("".equals(name)) { + name = StringKit.toString(channelJson.get("Name")); + } + + bean.setDeviceName(name); + //默认公共区域 + bean.setMonitoringType(1); + bean.setPlaceCode(villageCode); + bean.setPlaceName(villageName); + String deviceip = StringKit.toString(channelJson.get("CustomIPAddress")); + bean.setDeviceIp(deviceip); + String address = name; + bean.setDeviceAddress(address); + String manufacturer = StringKit.toString(channelJson.get("Manufacturer")); + bean.setManufactor(manufacturer); + String port = StringKit.toString(channelJson.get("Port")); + bean.setDevicePort(NumKit.checkInt(port)); + String latitude = StringKit.toString(channelJson.get("Latitude")); + bean.setLatitude(NumKit.checkDouble(latitude)); + String longitude = StringKit.toString(channelJson.get("Longitude")); + bean.setLongitude(NumKit.checkDouble(longitude)); + String channel = StringKit.toString(channelObj.get("Channel")); + bean.setChannelNo(NumKit.checkInt(channel)); + String gbsNvrNo = StringKit.toString(channelObj.get("DeviceId")); + bean.setGbsNvrNo(StringKit.toString(gbsNvrNo)); + + if (!"".equals(StringKit.toString(bean.getGbsChannelNo()))) { + List checklists = videoInfoMapper.selectList(new LambdaQueryWrapper() + .eq(DevopsVideoInfo::getGbsChannelNo, bean.getGbsChannelNo())); +// List checklists = videoInfoMapper.checkDevice(bean); + if (checklists != null && checklists.size() > 0) { + log.debug("设备国标已存在:" + bean.getGbsChannelNo()); + continue; + } + } else { + log.debug("国标编码为空:" + bean.getGbsChannelNo()); + continue; + } + + try { + DevopsVideoInfo videoInfo = new DevopsVideoInfo(); + BeanUtils.copyProperties(bean, videoInfo); + int b = videoInfoMapper.insert(videoInfo); + log.debug("保存成功"); + } catch (Exception e) { + log.debug("保存失败," + StringKit.getTrace(e)); + } + } + } else { + return "结果集为空,请检查gbs是否配置。"; + } + + return "success-" + count; + } catch (Exception e) { + log.debug(StringKit.getTrace(e)); + return "error,请联系管理员查看!"; + } + } else if ("nvr".equals(type)) { + //调用nvr插入设备 + } else { + return "error-类型不正确"; + } + return "error-未知错误"; + } + + +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoStatusServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoStatusServiceImpl.java new file mode 100644 index 0000000..2aa6d28 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/DevopsVideoStatusServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.DevopsVideoStatus; +import com.ruoyi.database.mapper.DevopsVideoStatusMapper; +import com.ruoyi.database.service.DevopsVideoStatusService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 视频监控状态表(DevopsVideoStatus)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +@Service +public class DevopsVideoStatusServiceImpl extends ServiceImpl implements DevopsVideoStatusService { + + @Override + public boolean insertOrUpdate(DevopsVideoStatus devopsVideoStatus) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (DevopsVideoStatus devopsVideoStatus : list) { + try { + insertOrUpdate(devopsVideoStatus); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitInfoServiceImpl.java new file mode 100644 index 0000000..28fd64d --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaActualUnitInfo; +import com.ruoyi.database.mapper.MetaActualUnitInfoMapper; +import com.ruoyi.database.service.MetaActualUnitInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 实有单位信息表(MetaActualUnitInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:21 + */ +@Service +public class MetaActualUnitInfoServiceImpl extends ServiceImpl implements MetaActualUnitInfoService { + + @Override + public boolean insertOrUpdate(MetaActualUnitInfo metaActualUnitInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaActualUnitInfo metaActualUnitInfo : list) { + try { + insertOrUpdate(metaActualUnitInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitUserInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitUserInfoServiceImpl.java new file mode 100644 index 0000000..ad049d7 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUnitUserInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaActualUnitUserInfo; +import com.ruoyi.database.mapper.MetaActualUnitUserInfoMapper; +import com.ruoyi.database.service.MetaActualUnitUserInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 单位从业人员信息表(MetaActualUnitUserInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Service +public class MetaActualUnitUserInfoServiceImpl extends ServiceImpl implements MetaActualUnitUserInfoService { + + @Override + public boolean insertOrUpdate(MetaActualUnitUserInfo metaActualUnitUserInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaActualUnitUserInfo metaActualUnitUserInfo : list) { + try { + insertOrUpdate(metaActualUnitUserInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUserInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUserInfoServiceImpl.java new file mode 100644 index 0000000..8feaaa3 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaActualUserInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaActualUserInfo; +import com.ruoyi.database.mapper.MetaActualUserInfoMapper; +import com.ruoyi.database.service.MetaActualUserInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 实有人口信息表(MetaActualUserInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:22 + */ +@Service +public class MetaActualUserInfoServiceImpl extends ServiceImpl implements MetaActualUserInfoService { + + @Override + public boolean insertOrUpdate(MetaActualUserInfo metaActualUserInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaActualUserInfo metaActualUserInfo : list) { + try { + insertOrUpdate(metaActualUserInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaAlarmInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaAlarmInfoServiceImpl.java new file mode 100644 index 0000000..9609f0c --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaAlarmInfoServiceImpl.java @@ -0,0 +1,72 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.business.domain.vo.MetaAlarmInfoAndHandleAlarmVo; +import com.ruoyi.business.domain.vo.MetaAlarmInfoVo; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaAlarmInfo; +import com.ruoyi.database.mapper.MetaAlarmInfoMapper; +import com.ruoyi.database.service.MetaAlarmInfoService; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** + * 接警信息表(MetaAlarmInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +@Service +@RequiredArgsConstructor +public class MetaAlarmInfoServiceImpl extends ServiceImpl implements MetaAlarmInfoService { + + private final MetaAlarmInfoMapper alarmInfoMapper; + + + @Override + public boolean insertOrUpdate(MetaAlarmInfo metaAlarmInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaAlarmInfo metaAlarmInfo : list) { + try { + insertOrUpdate(metaAlarmInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } + + @Override + public List selectTop3AlarmInfo() { + return alarmInfoMapper.selectTop3AlarmInfo(); + } + + @Override + public List listAlarmAndHandleAlarm() { + return alarmInfoMapper.listAlarmAndHandleAlarm(); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaFishingBoatInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaFishingBoatInfoServiceImpl.java new file mode 100644 index 0000000..b1ad8bd --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaFishingBoatInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaFishingBoatInfo; +import com.ruoyi.database.mapper.MetaFishingBoatInfoMapper; +import com.ruoyi.database.service.MetaFishingBoatInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 渔船信息表(MetaFishingBoatInfo)ServiceImpl + * + * @author makejava + * @since 2023-12-02 11:30:27 + */ +@Service +public class MetaFishingBoatInfoServiceImpl extends ServiceImpl implements MetaFishingBoatInfoService { + + @Override + public boolean insertOrUpdate(MetaFishingBoatInfo metaFishingBoatInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaFishingBoatInfo metaFishingBoatInfo : list) { + try { + insertOrUpdate(metaFishingBoatInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaHandleAlarmInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaHandleAlarmInfoServiceImpl.java new file mode 100644 index 0000000..757f0fe --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaHandleAlarmInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaHandleAlarmInfo; +import com.ruoyi.database.mapper.MetaHandleAlarmInfoMapper; +import com.ruoyi.database.service.MetaHandleAlarmInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 处警信息表(MetaHandleAlarmInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:23 + */ +@Service +public class MetaHandleAlarmInfoServiceImpl extends ServiceImpl implements MetaHandleAlarmInfoService { + + @Override + public boolean insertOrUpdate(MetaHandleAlarmInfo metaHandleAlarmInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaHandleAlarmInfo metaHandleAlarmInfo : list) { + try { + insertOrUpdate(metaHandleAlarmInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaImpUserInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaImpUserInfoServiceImpl.java new file mode 100644 index 0000000..d85a50a --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaImpUserInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaImpUserInfo; +import com.ruoyi.database.mapper.MetaImpUserInfoMapper; +import com.ruoyi.database.service.MetaImpUserInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 重点人员信息表(MetaImpUserInfo)ServiceImpl + * + * @author makejava + * @since 2023-11-29 09:33:24 + */ +@Service +public class MetaImpUserInfoServiceImpl extends ServiceImpl implements MetaImpUserInfoService { + + @Override + public boolean insertOrUpdate(MetaImpUserInfo metaImpUserInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaImpUserInfo metaImpUserInfo : list) { + try { + insertOrUpdate(metaImpUserInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceOfficeInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceOfficeInfoServiceImpl.java new file mode 100644 index 0000000..c155c9e --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceOfficeInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaPoliceOfficeInfo; +import com.ruoyi.database.mapper.MetaPoliceOfficeInfoMapper; +import com.ruoyi.database.service.MetaPoliceOfficeInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 警务室信息表(MetaPoliceOfficeInfo)ServiceImpl + * + * @author makejava + * @since 2023-12-01 20:04:07 + */ +@Service +public class MetaPoliceOfficeInfoServiceImpl extends ServiceImpl implements MetaPoliceOfficeInfoService { + + @Override + public boolean insertOrUpdate(MetaPoliceOfficeInfo metaPoliceOfficeInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaPoliceOfficeInfo metaPoliceOfficeInfo : list) { + try { + insertOrUpdate(metaPoliceOfficeInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceStationInfoServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceStationInfoServiceImpl.java new file mode 100644 index 0000000..2d6e407 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/MetaPoliceStationInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.ruoyi.database.service.impl; + + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.database.domain.MetaPoliceStationInfo; +import com.ruoyi.database.mapper.MetaPoliceStationInfoMapper; +import com.ruoyi.database.service.MetaPoliceStationInfoService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 派出所信息表(MetaPoliceStationInfo)ServiceImpl + * + * @author makejava + * @since 2023-12-01 20:04:08 + */ +@Service +public class MetaPoliceStationInfoServiceImpl extends ServiceImpl implements MetaPoliceStationInfoService { + + @Override + public boolean insertOrUpdate(MetaPoliceStationInfo metaPoliceStationInfo) { + return false; + } + + @Override + public Object importData(List list) { + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + + for (MetaPoliceStationInfo metaPoliceStationInfo : list) { + try { + insertOrUpdate(metaPoliceStationInfo); + successNum++; + successMsg.append(StrUtil.format("
{}、待替换 {} 导入成功", successNum, "待替换")); + } catch (Exception e) { + failureNum++; + failureMsg.append(StrUtil.format("
{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage())); + } + } + + if (failureNum > 0) { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } else { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + return successMsg.toString(); + } + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java index d2d6e8c..4c60256 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java @@ -6,6 +6,9 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Resource; import javax.imageio.ImageIO; import javax.servlet.http.HttpServletResponse; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.FastByteArrayOutputStream; import org.springframework.web.bind.annotation.GetMapping; @@ -26,6 +29,7 @@ import com.ruoyi.system.service.ISysConfigService; * @author ruoyi */ @RestController +@Api(tags = "验证码操作处理") public class CaptchaController { @Resource(name = "captchaProducer") @@ -43,6 +47,7 @@ public class CaptchaController * 生成验证码 */ @GetMapping("/captchaImage") + @ApiOperation("生成验证码") public AjaxResult getCode(HttpServletResponse response) throws IOException { AjaxResult ajax = AjaxResult.success(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java index 99632c7..acb477d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java @@ -7,6 +7,8 @@ import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.file.FileUploadUtils; import com.ruoyi.common.utils.file.FileUtils; import com.ruoyi.framework.config.ServerConfig; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -31,6 +33,7 @@ import java.util.List; */ @RestController @RequestMapping("/common") +@Api(tags = "通用请求处理") public class CommonController { private static final Logger log = LoggerFactory.getLogger(CommonController.class); @@ -46,6 +49,7 @@ public class CommonController { * @param delete 是否删除 */ @GetMapping("/download") + @ApiOperation("通用下载请求") public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) { try { if (!FileUtils.checkAllowDownload(fileName)) { @@ -91,6 +95,7 @@ public class CommonController { * 通用上传请求(单个) */ @PostMapping("/upload") + @ApiOperation("通用上传请求(单个)") public AjaxResult uploadFile(MultipartFile file,String villageCode,String fileType) throws Exception { try { // 上传文件路径 @@ -142,6 +147,7 @@ public class CommonController { /** * 通用上传请求(多个) */ + @ApiOperation("通用上传请求(多个)") @PostMapping("/uploads") public AjaxResult uploadFiles(List files) throws Exception { try { @@ -174,6 +180,7 @@ public class CommonController { /** * 本地资源通用下载 */ + @ApiOperation("本地资源通用下载") @GetMapping("/download/resource") public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception { diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index d959a17..865211a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -2,6 +2,9 @@ package com.ruoyi.web.controller.system; import java.util.List; import java.util.Set; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -23,6 +26,7 @@ import com.ruoyi.system.service.ISysMenuService; * @author ruoyi */ @RestController +@Api(tags = "登录验证") public class SysLoginController { @Autowired @@ -41,6 +45,7 @@ public class SysLoginController * @return 结果 */ @PostMapping("/login") + @ApiOperation("登录方法") public AjaxResult login(@RequestBody LoginBody loginBody) { AjaxResult ajax = AjaxResult.success(); @@ -57,6 +62,7 @@ public class SysLoginController * @return 用户信息 */ @GetMapping("getInfo") + @ApiOperation("获取用户信息") public AjaxResult getInfo() { SysUser user = SecurityUtils.getLoginUser().getUser(); @@ -77,6 +83,7 @@ public class SysLoginController * @return 路由信息 */ @GetMapping("getRouters") + @ApiOperation("获取路由信息") public AjaxResult getRouters() { Long userId = SecurityUtils.getUserId(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java index b4f6bac..ddba765 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java @@ -1,183 +1,183 @@ -package com.ruoyi.web.controller.tool; - -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.R; -import com.ruoyi.common.utils.StringUtils; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.annotations.ApiOperation; - -/** - * swagger 用户测试方法 - * - * @author ruoyi - */ -@Api("用户信息管理") -@RestController -@RequestMapping("/test/user") -public class TestController extends BaseController -{ - private final static Map users = new LinkedHashMap(); - { - users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); - users.put(2, new UserEntity(2, "ry", "admin123", "15666666666")); - } - - @ApiOperation("获取用户列表") - @GetMapping("/list") - public R> userList() - { - List userList = new ArrayList(users.values()); - return R.ok(userList); - } - - @ApiOperation("获取用户详细") - @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) - @GetMapping("/{userId}") - public R getUser(@PathVariable Integer userId) - { - if (!users.isEmpty() && users.containsKey(userId)) - { - return R.ok(users.get(userId)); - } - else - { - return R.fail("用户不存在"); - } - } - - @ApiOperation("新增用户") - @ApiImplicitParams({ - @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class), - @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class), - @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class), - @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class) - }) - @PostMapping("/save") - public R save(UserEntity user) - { - if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) - { - return R.fail("用户ID不能为空"); - } - users.put(user.getUserId(), user); - return R.ok(); - } - - @ApiOperation("更新用户") - @PutMapping("/update") - public R update(@RequestBody UserEntity user) - { - if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) - { - return R.fail("用户ID不能为空"); - } - if (users.isEmpty() || !users.containsKey(user.getUserId())) - { - return R.fail("用户不存在"); - } - users.remove(user.getUserId()); - users.put(user.getUserId(), user); - return R.ok(); - } - - @ApiOperation("删除用户信息") - @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) - @DeleteMapping("/{userId}") - public R delete(@PathVariable Integer userId) - { - if (!users.isEmpty() && users.containsKey(userId)) - { - users.remove(userId); - return R.ok(); - } - else - { - return R.fail("用户不存在"); - } - } -} - -@ApiModel(value = "UserEntity", description = "用户实体") -class UserEntity -{ - @ApiModelProperty("用户ID") - private Integer userId; - - @ApiModelProperty("用户名称") - private String username; - - @ApiModelProperty("用户密码") - private String password; - - @ApiModelProperty("用户手机") - private String mobile; - - public UserEntity() - { - - } - - public UserEntity(Integer userId, String username, String password, String mobile) - { - this.userId = userId; - this.username = username; - this.password = password; - this.mobile = mobile; - } - - public Integer getUserId() - { - return userId; - } - - public void setUserId(Integer userId) - { - this.userId = userId; - } - - public String getUsername() - { - return username; - } - - public void setUsername(String username) - { - this.username = username; - } - - public String getPassword() - { - return password; - } - - public void setPassword(String password) - { - this.password = password; - } - - public String getMobile() - { - return mobile; - } - - public void setMobile(String mobile) - { - this.mobile = mobile; - } -} +//package com.ruoyi.web.controller.tool; +// +//import java.util.ArrayList; +//import java.util.LinkedHashMap; +//import java.util.List; +//import java.util.Map; +//import org.springframework.web.bind.annotation.DeleteMapping; +//import org.springframework.web.bind.annotation.GetMapping; +//import org.springframework.web.bind.annotation.PathVariable; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.PutMapping; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +//import com.ruoyi.common.core.controller.BaseController; +//import com.ruoyi.common.core.domain.R; +//import com.ruoyi.common.utils.StringUtils; +//import io.swagger.annotations.Api; +//import io.swagger.annotations.ApiImplicitParam; +//import io.swagger.annotations.ApiImplicitParams; +//import io.swagger.annotations.ApiModel; +//import io.swagger.annotations.ApiModelProperty; +//import io.swagger.annotations.ApiOperation; +// +///** +// * swagger 用户测试方法 +// * +// * @author ruoyi +// */ +//@Api("用户信息管理") +//@RestController +//@RequestMapping("/test/user") +//public class TestController extends BaseController +//{ +// private final static Map users = new LinkedHashMap(); +// { +// users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); +// users.put(2, new UserEntity(2, "ry", "admin123", "15666666666")); +// } +// +// @ApiOperation("获取用户列表") +// @GetMapping("/list") +// public R> userList() +// { +// List userList = new ArrayList(users.values()); +// return R.ok(userList); +// } +// +// @ApiOperation("获取用户详细") +// @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) +// @GetMapping("/{userId}") +// public R getUser(@PathVariable Integer userId) +// { +// if (!users.isEmpty() && users.containsKey(userId)) +// { +// return R.ok(users.get(userId)); +// } +// else +// { +// return R.fail("用户不存在"); +// } +// } +// +// @ApiOperation("新增用户") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class), +// @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class), +// @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class), +// @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class) +// }) +// @PostMapping("/save") +// public R save(UserEntity user) +// { +// if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) +// { +// return R.fail("用户ID不能为空"); +// } +// users.put(user.getUserId(), user); +// return R.ok(); +// } +// +// @ApiOperation("更新用户") +// @PutMapping("/update") +// public R update(@RequestBody UserEntity user) +// { +// if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) +// { +// return R.fail("用户ID不能为空"); +// } +// if (users.isEmpty() || !users.containsKey(user.getUserId())) +// { +// return R.fail("用户不存在"); +// } +// users.remove(user.getUserId()); +// users.put(user.getUserId(), user); +// return R.ok(); +// } +// +// @ApiOperation("删除用户信息") +// @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) +// @DeleteMapping("/{userId}") +// public R delete(@PathVariable Integer userId) +// { +// if (!users.isEmpty() && users.containsKey(userId)) +// { +// users.remove(userId); +// return R.ok(); +// } +// else +// { +// return R.fail("用户不存在"); +// } +// } +//} +// +//@ApiModel(value = "UserEntity", description = "用户实体") +//class UserEntity +//{ +// @ApiModelProperty("用户ID") +// private Integer userId; +// +// @ApiModelProperty("用户名称") +// private String username; +// +// @ApiModelProperty("用户密码") +// private String password; +// +// @ApiModelProperty("用户手机") +// private String mobile; +// +// public UserEntity() +// { +// +// } +// +// public UserEntity(Integer userId, String username, String password, String mobile) +// { +// this.userId = userId; +// this.username = username; +// this.password = password; +// this.mobile = mobile; +// } +// +// public Integer getUserId() +// { +// return userId; +// } +// +// public void setUserId(Integer userId) +// { +// this.userId = userId; +// } +// +// public String getUsername() +// { +// return username; +// } +// +// public void setUsername(String username) +// { +// this.username = username; +// } +// +// public String getPassword() +// { +// return password; +// } +// +// public void setPassword(String password) +// { +// this.password = password; +// } +// +// public String getMobile() +// { +// return mobile; +// } +// +// public void setMobile(String mobile) +// { +// this.mobile = mobile; +// } +//} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java index ae1c3ec..7efca63 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java @@ -113,7 +113,7 @@ public class SwaggerConfig // 用ApiInfoBuilder进行定制 return new ApiInfoBuilder() // 设置标题 - .title("标题:若依管理系统_接口文档") + .title("标题:yhzafk_接口文档") // 描述 .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") // 作者信息 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 9d8d812..eefc99d 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -19,7 +19,7 @@ ruoyi: # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 - port: 8888 + port: 1129 servlet: # 应用的访问路径 context-path: /hjapi/ @@ -71,7 +71,7 @@ spring: # redis 配置 redis: # 地址 -# host: 192.168.0.188 +# host: 127.0.0.1 host: 121.41.91.94 # 端口,默认为6379 # port: 26379 @@ -92,6 +92,10 @@ spring: max-active: 50 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms +# activemq: +# broker-url: tcp://50.146.63.63:7018 +# user: admin +# password: rkmO1Ldh # token配置 token: @@ -135,3 +139,4 @@ xss: Wt: version: 4.0.1 + diff --git a/ruoyi-admin/src/main/resources/logback.xml b/ruoyi-admin/src/main/resources/logback.xml index bc0691d..41986c0 100644 --- a/ruoyi-admin/src/main/resources/logback.xml +++ b/ruoyi-admin/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - + diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java index b5bc8c8..c268ea7 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java @@ -1,5 +1,7 @@ package com.ruoyi.common.core.domain.model; +import io.swagger.annotations.ApiModelProperty; + /** * 用户登录对象 * @@ -10,16 +12,19 @@ public class LoginBody /** * 用户名 */ + @ApiModelProperty("用户名") private String username; /** * 用户密码 */ + @ApiModelProperty("用户密码") private String password; /** * 验证码 */ + @ApiModelProperty("验证码") private String code; /** diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index b9125f7..1f5ef27 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = yhzafk # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# yhzafk/开发环境 VUE_APP_BASE_API = '/' # 路由懒加载 diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index b4893b0..9f0dfdc 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = yhzafk # 生产环境配置 ENV = 'production' -# 若依管理系统/生产环境 +# yhzafk/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/ruoyi-ui/.env.staging b/ruoyi-ui/.env.staging index 361859f..1c361d1 100644 --- a/ruoyi-ui/.env.staging +++ b/ruoyi-ui/.env.staging @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = yhzafk NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 +# yhzafk/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 206c59e..854c83d 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -1,7 +1,7 @@ { "name": "ruoyi", "version": "3.8.6", - "description": "若依管理系统", + "description": "yhzafk", "author": "若依", "license": "MIT", "scripts": { diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 2da52dc..8ef3afd 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -7,7 +7,7 @@ function resolve(dir) { const CompressionPlugin = require('compression-webpack-plugin') -const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 +const name = process.env.VUE_APP_TITLE || 'yhzafk' // 网页标题 const port = process.env.port || process.env.npm_config_port || 80 // 端口 diff --git a/ry.sh b/ry.sh index d6a9cf3..2a6d831 100644 --- a/ry.sh +++ b/ry.sh @@ -1,6 +1,6 @@ #!/bin/sh # ./ry.sh start 启动 stop 停止 restart 重启 status 状态 -AppName=ruoyi-admin.jar +AppName=yhzafk.jar # JVM参数 JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"