parent
c77ea12638
commit
ad4c2adf05
@ -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,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();
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
// }
|
||||
//}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in new issue