大屏显示接口

develop
fengchunyu 12 months ago
parent c77ea12638
commit ad4c2adf05

@ -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) {

@ -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<MetaActualUserInfo> queryLdrkWrapper = new QueryWrapper<>();
queryLdrkWrapper.eq("actual_user_type", 102);
int actualUserLdrkCount = actualUserInfoService.count(queryLdrkWrapper);
//实有人口总数
QueryWrapper<MetaActualUserInfo> 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<MetaImpUserInfo> swryQueryWrapper = new QueryWrapper<>();
swryQueryWrapper.like("imp_user_sub_type", "0101000000");
int swryCount = impUserInfoService.count(swryQueryWrapper);
// 涉军访人员
QueryWrapper<MetaImpUserInfo> sjfryQueryWrapper = new QueryWrapper<>();
sjfryQueryWrapper.like("imp_user_sub_type", "0102000000");
int sjfryCount = impUserInfoService.count(sjfryQueryWrapper);
// 治安管控人员
QueryWrapper<MetaImpUserInfo> zagkryQueryWrapper = new QueryWrapper<>();
zagkryQueryWrapper.like("imp_user_sub_type", "0105000000");
int zagkryCount = impUserInfoService.count(zagkryQueryWrapper);
// 民代幼教师群体
QueryWrapper<MetaImpUserInfo> mdyjsqtQueryWrapper = new QueryWrapper<>();
mdyjsqtQueryWrapper.like("imp_user_sub_type", "0106000000");
int mdyjsqtCount = impUserInfoService.count(mdyjsqtQueryWrapper);
// 内保重点人员
QueryWrapper<MetaImpUserInfo> nbzdryQueryWrapper = new QueryWrapper<>();
nbzdryQueryWrapper.like("imp_user_sub_type", "0107000000");
int nbzdryCount = impUserInfoService.count(nbzdryQueryWrapper);
// 涉信访人员
QueryWrapper<MetaImpUserInfo> sxfryQueryWrapper = new QueryWrapper<>();
sxfryQueryWrapper.like("imp_user_sub_type", "0109000000");
int sxfryCount = impUserInfoService.count(sxfryQueryWrapper);
// 涉众型经济犯罪涉稳人员
QueryWrapper<MetaImpUserInfo> szxjjfzswryQueryWrapper = new QueryWrapper<>();
szxjjfzswryQueryWrapper.like("imp_user_sub_type", "0110000000");
int szxjjfzswryCount = impUserInfoService.count(szxjjfzswryQueryWrapper);
// 其他利益群体
QueryWrapper<MetaImpUserInfo> 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<MetaAlarmInfoVo> 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<MetaAlarmInfo> queryWrapper = new LambdaQueryWrapper<>();
// queryWrapper.orderByDesc(MetaAlarmInfo::getCreateTime); // Assuming ws_rksj is the field for sorting
// queryWrapper.last("LIMIT 100"); // Limit to 100 records
List<MetaAlarmInfoAndHandleAlarmVo> metaAlarmInfos = alarmInfoService.listAlarmAndHandleAlarm();
return AjaxResult.success(metaAlarmInfos);
} catch (Exception e) {
logger.info(StringKit.toString(e));
return AjaxResult.error("请求失败,请联系管理员");
}
}
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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<DevopsDeviceInfo> list(DevopsDeviceInfo devopsDeviceInfo) {
startPage();
List<DevopsDeviceInfo> 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<Long> idList) {
return toAjax(devopsDeviceInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出智能设备信息表")
@Log(title = "智能设备信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, DevopsDeviceInfo devopsDeviceInfo) {
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(new QueryWrapper<>(devopsDeviceInfo));
ExcelUtil<DevopsDeviceInfo> util = new ExcelUtil<>(DevopsDeviceInfo.class);
util.exportExcel(response, list, "智能设备信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入智能设备信息表模板")
@Log(title = "智能设备信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<DevopsDeviceInfo> 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<DevopsDeviceInfo> util = new ExcelUtil<>(DevopsDeviceInfo.class);
List<DevopsDeviceInfo> 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);
}
}

@ -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<DevopsDeviceStatus> list(DevopsDeviceStatus devopsDeviceStatus) {
startPage();
List<DevopsDeviceStatus> 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<Long> idList) {
return toAjax(devopsDeviceStatusService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出设备状态信息表")
@Log(title = "设备状态信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, DevopsDeviceStatus devopsDeviceStatus) {
List<DevopsDeviceStatus> list = devopsDeviceStatusService.list(new QueryWrapper<>(devopsDeviceStatus));
ExcelUtil<DevopsDeviceStatus> util = new ExcelUtil<>(DevopsDeviceStatus.class);
util.exportExcel(response, list, "设备状态信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入设备状态信息表模板")
@Log(title = "设备状态信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<DevopsDeviceStatus> 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<DevopsDeviceStatus> util = new ExcelUtil<>(DevopsDeviceStatus.class);
List<DevopsDeviceStatus> 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);
}
}

@ -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<DevopsVideoInfo> list(DevopsVideoInfo devopsVideoInfo) {
startPage();
List<DevopsVideoInfo> 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<Long> idList) {
return toAjax(devopsVideoInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出视频监控设备表")
@Log(title = "视频监控设备表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, DevopsVideoInfo devopsVideoInfo) {
List<DevopsVideoInfo> list = devopsVideoInfoService.list(new QueryWrapper<>(devopsVideoInfo));
ExcelUtil<DevopsVideoInfo> util = new ExcelUtil<>(DevopsVideoInfo.class);
util.exportExcel(response, list, "视频监控设备表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入视频监控设备表模板")
@Log(title = "视频监控设备表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<DevopsVideoInfo> 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<DevopsVideoInfo> util = new ExcelUtil<>(DevopsVideoInfo.class);
List<DevopsVideoInfo> 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("导入出现错误");
}
}
}

@ -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<DevopsVideoStatus> list(DevopsVideoStatus devopsVideoStatus) {
startPage();
List<DevopsVideoStatus> 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<Long> idList) {
return toAjax(devopsVideoStatusService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出视频监控状态表")
@Log(title = "视频监控状态表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, DevopsVideoStatus devopsVideoStatus) {
List<DevopsVideoStatus> list = devopsVideoStatusService.list(new QueryWrapper<>(devopsVideoStatus));
ExcelUtil<DevopsVideoStatus> util = new ExcelUtil<>(DevopsVideoStatus.class);
util.exportExcel(response, list, "视频监控状态表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入视频监控状态表模板")
@Log(title = "视频监控状态表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<DevopsVideoStatus> 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<DevopsVideoStatus> util = new ExcelUtil<>(DevopsVideoStatus.class);
List<DevopsVideoStatus> 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);
}
}

@ -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<MetaActualUnitInfo> list(MetaActualUnitInfo metaActualUnitInfo) {
startPage();
List<MetaActualUnitInfo> 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<Long> idList) {
return toAjax(metaActualUnitInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出实有单位信息表")
@Log(title = "实有单位信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaActualUnitInfo metaActualUnitInfo) {
List<MetaActualUnitInfo> list = metaActualUnitInfoService.list(new QueryWrapper<>(metaActualUnitInfo));
ExcelUtil<MetaActualUnitInfo> util = new ExcelUtil<>(MetaActualUnitInfo.class);
util.exportExcel(response, list, "实有单位信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入实有单位信息表模板")
@Log(title = "实有单位信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaActualUnitInfo> 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<MetaActualUnitInfo> util = new ExcelUtil<>(MetaActualUnitInfo.class);
List<MetaActualUnitInfo> 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);
}
}

@ -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<MetaActualUnitUserInfo> list(MetaActualUnitUserInfo metaActualUnitUserInfo) {
startPage();
List<MetaActualUnitUserInfo> 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<Long> idList) {
return toAjax(metaActualUnitUserInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出单位从业人员信息表")
@Log(title = "单位从业人员信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaActualUnitUserInfo metaActualUnitUserInfo) {
List<MetaActualUnitUserInfo> list = metaActualUnitUserInfoService.list(new QueryWrapper<>(metaActualUnitUserInfo));
ExcelUtil<MetaActualUnitUserInfo> util = new ExcelUtil<>(MetaActualUnitUserInfo.class);
util.exportExcel(response, list, "单位从业人员信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入单位从业人员信息表模板")
@Log(title = "单位从业人员信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaActualUnitUserInfo> 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<MetaActualUnitUserInfo> util = new ExcelUtil<>(MetaActualUnitUserInfo.class);
List<MetaActualUnitUserInfo> 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);
}
}

@ -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<MetaActualUserInfo> list(MetaActualUserInfo metaActualUserInfo) {
startPage();
List<MetaActualUserInfo> 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<Long> idList) {
return toAjax(metaActualUserInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出实有人口信息表")
@Log(title = "实有人口信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaActualUserInfo metaActualUserInfo) {
List<MetaActualUserInfo> list = metaActualUserInfoService.list(new QueryWrapper<>(metaActualUserInfo));
ExcelUtil<MetaActualUserInfo> util = new ExcelUtil<>(MetaActualUserInfo.class);
util.exportExcel(response, list, "实有人口信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入实有人口信息表模板")
@Log(title = "实有人口信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaActualUserInfo> 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<MetaActualUserInfo> util = new ExcelUtil<>(MetaActualUserInfo.class);
List<MetaActualUserInfo> 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);
}
}

@ -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<MetaAlarmInfo> list(MetaAlarmInfo metaAlarmInfo) {
startPage();
List<MetaAlarmInfo> 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<Long> idList) {
return toAjax(metaAlarmInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出接警信息表")
@Log(title = "接警信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaAlarmInfo metaAlarmInfo) {
List<MetaAlarmInfo> list = metaAlarmInfoService.list(new QueryWrapper<>(metaAlarmInfo));
ExcelUtil<MetaAlarmInfo> util = new ExcelUtil<>(MetaAlarmInfo.class);
util.exportExcel(response, list, "接警信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入接警信息表模板")
@Log(title = "接警信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaAlarmInfo> 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<MetaAlarmInfo> util = new ExcelUtil<>(MetaAlarmInfo.class);
List<MetaAlarmInfo> 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);
}
}

@ -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<MetaFishingBoatInfo> list(MetaFishingBoatInfo metaFishingBoatInfo) {
startPage();
List<MetaFishingBoatInfo> 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<Long> idList) {
return toAjax(metaFishingBoatInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出渔船信息表")
@Log(title = "渔船信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaFishingBoatInfo metaFishingBoatInfo) {
List<MetaFishingBoatInfo> list = metaFishingBoatInfoService.list(new QueryWrapper<>(metaFishingBoatInfo));
ExcelUtil<MetaFishingBoatInfo> util = new ExcelUtil<>(MetaFishingBoatInfo.class);
util.exportExcel(response, list, "渔船信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入渔船信息表模板")
@Log(title = "渔船信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaFishingBoatInfo> 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<MetaFishingBoatInfo> util = new ExcelUtil<>(MetaFishingBoatInfo.class);
List<MetaFishingBoatInfo> 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);
}
}

@ -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<MetaHandleAlarmInfo> list(MetaHandleAlarmInfo metaHandleAlarmInfo) {
startPage();
List<MetaHandleAlarmInfo> 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<Long> idList) {
return toAjax(metaHandleAlarmInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出处警信息表")
@Log(title = "处警信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaHandleAlarmInfo metaHandleAlarmInfo) {
List<MetaHandleAlarmInfo> list = metaHandleAlarmInfoService.list(new QueryWrapper<>(metaHandleAlarmInfo));
ExcelUtil<MetaHandleAlarmInfo> util = new ExcelUtil<>(MetaHandleAlarmInfo.class);
util.exportExcel(response, list, "处警信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入处警信息表模板")
@Log(title = "处警信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaHandleAlarmInfo> 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<MetaHandleAlarmInfo> util = new ExcelUtil<>(MetaHandleAlarmInfo.class);
List<MetaHandleAlarmInfo> 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);
}
}

@ -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<MetaImpUserInfo> list(MetaImpUserInfo metaImpUserInfo) {
startPage();
List<MetaImpUserInfo> 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<Long> idList) {
return toAjax(metaImpUserInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出重点人员信息表")
@Log(title = "重点人员信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaImpUserInfo metaImpUserInfo) {
List<MetaImpUserInfo> list = metaImpUserInfoService.list(new QueryWrapper<>(metaImpUserInfo));
ExcelUtil<MetaImpUserInfo> util = new ExcelUtil<>(MetaImpUserInfo.class);
util.exportExcel(response, list, "重点人员信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入重点人员信息表模板")
@Log(title = "重点人员信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaImpUserInfo> 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<MetaImpUserInfo> util = new ExcelUtil<>(MetaImpUserInfo.class);
List<MetaImpUserInfo> 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);
}
}

@ -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<MetaPoliceOfficeInfo> list(MetaPoliceOfficeInfo metaPoliceOfficeInfo) {
startPage();
List<MetaPoliceOfficeInfo> 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<Long> idList) {
return toAjax(metaPoliceOfficeInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出警务室信息表")
@Log(title = "警务室信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaPoliceOfficeInfo metaPoliceOfficeInfo) {
List<MetaPoliceOfficeInfo> list = metaPoliceOfficeInfoService.list(new QueryWrapper<>(metaPoliceOfficeInfo));
ExcelUtil<MetaPoliceOfficeInfo> util = new ExcelUtil<>(MetaPoliceOfficeInfo.class);
util.exportExcel(response, list, "警务室信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入警务室信息表模板")
@Log(title = "警务室信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaPoliceOfficeInfo> 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<MetaPoliceOfficeInfo> util = new ExcelUtil<>(MetaPoliceOfficeInfo.class);
List<MetaPoliceOfficeInfo> 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);
}
}

@ -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<MetaPoliceStationInfo> list(MetaPoliceStationInfo metaPoliceStationInfo) {
startPage();
List<MetaPoliceStationInfo> 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<Long> idList) {
return toAjax(metaPoliceStationInfoService.removeByIds(idList));
}
@PostMapping("/export")
@ApiOperation("导出派出所信息表")
@Log(title = "派出所信息表", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, MetaPoliceStationInfo metaPoliceStationInfo) {
List<MetaPoliceStationInfo> list = metaPoliceStationInfoService.list(new QueryWrapper<>(metaPoliceStationInfo));
ExcelUtil<MetaPoliceStationInfo> util = new ExcelUtil<>(MetaPoliceStationInfo.class);
util.exportExcel(response, list, "派出所信息表");
}
@PostMapping("/importTemplate")
@ApiOperation("导入派出所信息表模板")
@Log(title = "派出所信息表", businessType = BusinessType.IMPORT)
public void importTemplate(HttpServletResponse response) {
ExcelUtil<MetaPoliceStationInfo> 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<MetaPoliceStationInfo> util = new ExcelUtil<>(MetaPoliceStationInfo.class);
List<MetaPoliceStationInfo> 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);
}
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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<DevopsDeviceInfo> {
}

@ -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<DevopsDeviceStatus> {
}

@ -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<DevopsVideoInfo> {
}

@ -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<DevopsVideoStatus> {
}

@ -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<MetaActualUnitInfo> {
}

@ -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<MetaActualUnitUserInfo> {
}

@ -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<MetaActualUserInfo> {
}

@ -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<MetaAlarmInfo> {
@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<MetaAlarmInfoVo> 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<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm();
}

@ -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<MetaFishingBoatInfo> {
}

@ -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<MetaHandleAlarmInfo> {
}

@ -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<MetaImpUserInfo> {
}

@ -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<MetaPoliceOfficeInfo> {
}

@ -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<MetaPoliceStationInfo> {
}

@ -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<DevopsDeviceInfo> {
/**
*
*
* @param devopsDeviceInfo
* @return
*/
boolean insertOrUpdate(DevopsDeviceInfo devopsDeviceInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<DevopsDeviceInfo> list);
}

@ -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<DevopsDeviceStatus> {
/**
*
*
* @param devopsDeviceStatus
* @return
*/
boolean insertOrUpdate(DevopsDeviceStatus devopsDeviceStatus);
/**
*
*
* @param list
* @return
*/
Object importData(List<DevopsDeviceStatus> list);
}

@ -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<DevopsVideoInfo> {
/**
*
*
* @param devopsVideoInfo
* @return
*/
boolean insertOrUpdate(DevopsVideoInfo devopsVideoInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<DevopsVideoInfo> list);
public String yjdr(DevopsVideoInfoDto bean);
}

@ -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<DevopsVideoStatus> {
/**
*
*
* @param devopsVideoStatus
* @return
*/
boolean insertOrUpdate(DevopsVideoStatus devopsVideoStatus);
/**
*
*
* @param list
* @return
*/
Object importData(List<DevopsVideoStatus> list);
}

@ -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<MetaActualUnitInfo> {
/**
*
*
* @param metaActualUnitInfo
* @return
*/
boolean insertOrUpdate(MetaActualUnitInfo metaActualUnitInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaActualUnitInfo> list);
}

@ -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<MetaActualUnitUserInfo> {
/**
*
*
* @param metaActualUnitUserInfo
* @return
*/
boolean insertOrUpdate(MetaActualUnitUserInfo metaActualUnitUserInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaActualUnitUserInfo> list);
}

@ -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<MetaActualUserInfo> {
/**
*
*
* @param metaActualUserInfo
* @return
*/
boolean insertOrUpdate(MetaActualUserInfo metaActualUserInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaActualUserInfo> list);
}

@ -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<MetaAlarmInfo> {
/**
*
*
* @param metaAlarmInfo
* @return
*/
boolean insertOrUpdate(MetaAlarmInfo metaAlarmInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaAlarmInfo> list);
public List<MetaAlarmInfoVo> selectTop3AlarmInfo();
public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm();
}

@ -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<MetaFishingBoatInfo> {
/**
*
*
* @param metaFishingBoatInfo
* @return
*/
boolean insertOrUpdate(MetaFishingBoatInfo metaFishingBoatInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaFishingBoatInfo> list);
}

@ -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<MetaHandleAlarmInfo> {
/**
*
*
* @param metaHandleAlarmInfo
* @return
*/
boolean insertOrUpdate(MetaHandleAlarmInfo metaHandleAlarmInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaHandleAlarmInfo> list);
}

@ -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<MetaImpUserInfo> {
/**
*
*
* @param metaImpUserInfo
* @return
*/
boolean insertOrUpdate(MetaImpUserInfo metaImpUserInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaImpUserInfo> list);
}

@ -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<MetaPoliceOfficeInfo> {
/**
*
*
* @param metaPoliceOfficeInfo
* @return
*/
boolean insertOrUpdate(MetaPoliceOfficeInfo metaPoliceOfficeInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaPoliceOfficeInfo> list);
}

@ -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<MetaPoliceStationInfo> {
/**
*
*
* @param metaPoliceStationInfo
* @return
*/
boolean insertOrUpdate(MetaPoliceStationInfo metaPoliceStationInfo);
/**
*
*
* @param list
* @return
*/
Object importData(List<MetaPoliceStationInfo> list);
}

@ -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<DevopsDeviceInfoMapper, DevopsDeviceInfo> implements DevopsDeviceInfoService {
@Override
public boolean insertOrUpdate(DevopsDeviceInfo devopsDeviceInfo) {
return false;
}
@Override
public Object importData(List<DevopsDeviceInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<DevopsDeviceStatusMapper, DevopsDeviceStatus> implements DevopsDeviceStatusService {
@Override
public boolean insertOrUpdate(DevopsDeviceStatus devopsDeviceStatus) {
return false;
}
@Override
public Object importData(List<DevopsDeviceStatus> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<DevopsVideoInfoMapper, DevopsVideoInfo> implements DevopsVideoInfoService {
private final DevopsVideoInfoMapper videoInfoMapper;
@Override
public boolean insertOrUpdate(DevopsVideoInfo devopsVideoInfo) {
return false;
}
@Override
public Object importData(List<DevopsVideoInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", 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<DevopsVideoInfo> checklists = videoInfoMapper.selectList(new LambdaQueryWrapper<DevopsVideoInfo>()
.eq(DevopsVideoInfo::getGbsChannelNo, bean.getGbsChannelNo()));
// List<DevopsVideoInfoDto> 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-未知错误";
}
}

@ -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<DevopsVideoStatusMapper, DevopsVideoStatus> implements DevopsVideoStatusService {
@Override
public boolean insertOrUpdate(DevopsVideoStatus devopsVideoStatus) {
return false;
}
@Override
public Object importData(List<DevopsVideoStatus> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaActualUnitInfoMapper, MetaActualUnitInfo> implements MetaActualUnitInfoService {
@Override
public boolean insertOrUpdate(MetaActualUnitInfo metaActualUnitInfo) {
return false;
}
@Override
public Object importData(List<MetaActualUnitInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaActualUnitUserInfoMapper, MetaActualUnitUserInfo> implements MetaActualUnitUserInfoService {
@Override
public boolean insertOrUpdate(MetaActualUnitUserInfo metaActualUnitUserInfo) {
return false;
}
@Override
public Object importData(List<MetaActualUnitUserInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaActualUserInfoMapper, MetaActualUserInfo> implements MetaActualUserInfoService {
@Override
public boolean insertOrUpdate(MetaActualUserInfo metaActualUserInfo) {
return false;
}
@Override
public Object importData(List<MetaActualUserInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaAlarmInfoMapper, MetaAlarmInfo> implements MetaAlarmInfoService {
private final MetaAlarmInfoMapper alarmInfoMapper;
@Override
public boolean insertOrUpdate(MetaAlarmInfo metaAlarmInfo) {
return false;
}
@Override
public Object importData(List<MetaAlarmInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", 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<MetaAlarmInfoVo> selectTop3AlarmInfo() {
return alarmInfoMapper.selectTop3AlarmInfo();
}
@Override
public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm() {
return alarmInfoMapper.listAlarmAndHandleAlarm();
}
}

@ -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<MetaFishingBoatInfoMapper, MetaFishingBoatInfo> implements MetaFishingBoatInfoService {
@Override
public boolean insertOrUpdate(MetaFishingBoatInfo metaFishingBoatInfo) {
return false;
}
@Override
public Object importData(List<MetaFishingBoatInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaHandleAlarmInfoMapper, MetaHandleAlarmInfo> implements MetaHandleAlarmInfoService {
@Override
public boolean insertOrUpdate(MetaHandleAlarmInfo metaHandleAlarmInfo) {
return false;
}
@Override
public Object importData(List<MetaHandleAlarmInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaImpUserInfoMapper, MetaImpUserInfo> implements MetaImpUserInfoService {
@Override
public boolean insertOrUpdate(MetaImpUserInfo metaImpUserInfo) {
return false;
}
@Override
public Object importData(List<MetaImpUserInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaPoliceOfficeInfoMapper, MetaPoliceOfficeInfo> implements MetaPoliceOfficeInfoService {
@Override
public boolean insertOrUpdate(MetaPoliceOfficeInfo metaPoliceOfficeInfo) {
return false;
}
@Override
public Object importData(List<MetaPoliceOfficeInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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<MetaPoliceStationInfoMapper, MetaPoliceStationInfo> implements MetaPoliceStationInfoService {
@Override
public boolean insertOrUpdate(MetaPoliceStationInfo metaPoliceStationInfo) {
return false;
}
@Override
public Object importData(List<MetaPoliceStationInfo> 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("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
} catch (Exception e) {
failureNum++;
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
}
}
if (failureNum > 0) {
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
throw new ServiceException(failureMsg.toString());
} else {
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
return successMsg.toString();
}
}
}

@ -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();

@ -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<MultipartFile> 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 {

@ -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();

@ -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<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>();
{
users.put(1, new UserEntity(1, "admin", "admin123", "15888888888"));
users.put(2, new UserEntity(2, "ry", "admin123", "15666666666"));
}
@ApiOperation("获取用户列表")
@GetMapping("/list")
public R<List<UserEntity>> userList()
{
List<UserEntity> userList = new ArrayList<UserEntity>(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<UserEntity> 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<String> 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<String> 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<String> 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<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>();
// {
// users.put(1, new UserEntity(1, "admin", "admin123", "15888888888"));
// users.put(2, new UserEntity(2, "ry", "admin123", "15666666666"));
// }
//
// @ApiOperation("获取用户列表")
// @GetMapping("/list")
// public R<List<UserEntity>> userList()
// {
// List<UserEntity> userList = new ArrayList<UserEntity>(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<UserEntity> 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<String> 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<String> 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<String> 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;
// }
//}

@ -113,7 +113,7 @@ public class SwaggerConfig
// 用ApiInfoBuilder进行定制
return new ApiInfoBuilder()
// 设置标题
.title("标题:若依管理系统_接口文档")
.title("标题:yhzafk_接口文档")
// 描述
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
// 作者信息

@ -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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/project/hjptV4/logs" />
<property name="log.path" value="/home/project/yhzafk/logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />

@ -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;
/**

@ -1,10 +1,10 @@
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = yhzafk
# 开发环境配置
ENV = 'development'
# 若依管理系统/开发环境
# yhzafk/开发环境
VUE_APP_BASE_API = '/'
# 路由懒加载

@ -1,8 +1,8 @@
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = yhzafk
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
# yhzafk/生产环境
VUE_APP_BASE_API = '/prod-api'

@ -1,10 +1,10 @@
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = yhzafk
NODE_ENV = production
# 测试环境配置
ENV = 'staging'
# 若依管理系统/测试环境
# yhzafk/测试环境
VUE_APP_BASE_API = '/stage-api'

@ -1,7 +1,7 @@
{
"name": "ruoyi",
"version": "3.8.6",
"description": "若依管理系统",
"description": "yhzafk",
"author": "若依",
"license": "MIT",
"scripts": {

@ -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 // 端口

@ -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"

Loading…
Cancel
Save