[add] 新增无人机模块后端项目
[refactor] 重构后端项目
This commit is contained in:
28
drone/ruoyi-system/pom.xml
Normal file
28
drone/ruoyi-system/pom.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>Ruoyi-Vue</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>3.8.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ruoyi-system</artifactId>
|
||||
|
||||
<description>
|
||||
system系统模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.Drone;
|
||||
import com.ruoyi.system.service.IDroneService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 无人机信息Controller
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/drone")
|
||||
public class DroneController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDroneService droneService;
|
||||
|
||||
/**
|
||||
* 查询无人机信息列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(Drone drone)
|
||||
{
|
||||
startPage();
|
||||
List<Drone> list = droneService.selectDroneList(drone);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出无人机信息列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:export')")
|
||||
@Log(title = "无人机信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Drone drone)
|
||||
{
|
||||
List<Drone> list = droneService.selectDroneList(drone);
|
||||
ExcelUtil<Drone> util = new ExcelUtil<Drone>(Drone.class);
|
||||
util.exportExcel(response, list, "无人机信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取无人机信息详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(droneService.selectDroneById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:add')")
|
||||
@Log(title = "无人机信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Drone drone)
|
||||
{
|
||||
return toAjax(droneService.insertDrone(drone));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:edit')")
|
||||
@Log(title = "无人机信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Drone drone)
|
||||
{
|
||||
return toAjax(droneService.updateDrone(drone));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:drone:remove')")
|
||||
@Log(title = "无人机信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(droneService.deleteDroneByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.system.dto.DroneMissionsVo;
|
||||
import com.ruoyi.system.dto.MissionsDto;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.DroneMissions;
|
||||
import com.ruoyi.system.service.IDroneMissionsService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 无人机任务Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/missions")
|
||||
public class DroneMissionsController extends BaseController {
|
||||
@Autowired
|
||||
private IDroneMissionsService droneMissionsService;
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DroneMissions droneMissions) {
|
||||
startPage();
|
||||
List<DroneMissionsVo> list = droneMissionsService.selectDroneMissionsVoList(droneMissions);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出无人机任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:export')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DroneMissions droneMissions) {
|
||||
List<DroneMissions> list = droneMissionsService.selectDroneMissionsList(droneMissions);
|
||||
ExcelUtil<DroneMissions> util = new ExcelUtil<DroneMissions>(DroneMissions.class);
|
||||
util.exportExcel(response, list, "无人机任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取无人机任务详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(droneMissionsService.selectDroneMissionsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:add')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DroneMissions droneMissions) {
|
||||
return toAjax(droneMissionsService.insertDroneMissions(droneMissions));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:edit')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DroneMissions droneMissions) {
|
||||
return toAjax(droneMissionsService.updateDroneMissions(droneMissions));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:remove')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(droneMissionsService.deleteDroneMissionsByIds(ids));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.FlightPaths;
|
||||
import com.ruoyi.system.service.IFlightPathsService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 航线文件信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/paths")
|
||||
public class FlightPathsController extends BaseController {
|
||||
@Autowired
|
||||
private IFlightPathsService flightPathsService;
|
||||
|
||||
/**
|
||||
* 查询航线文件信息列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FlightPaths flightPaths) {
|
||||
startPage();
|
||||
if (flightPaths.getOrder() == null) {
|
||||
flightPaths.setOrder(1);
|
||||
}
|
||||
List<FlightPaths> list = flightPathsService.selectFlightPathsList(flightPaths);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出航线文件信息列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:export')")
|
||||
@Log(title = "航线文件信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, FlightPaths flightPaths) {
|
||||
List<FlightPaths> list = flightPathsService.selectFlightPathsList(flightPaths);
|
||||
ExcelUtil<FlightPaths> util = new ExcelUtil<FlightPaths>(FlightPaths.class);
|
||||
util.exportExcel(response, list, "航线文件信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取航线文件信息详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(flightPathsService.selectFlightPathsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增航线文件信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:add')")
|
||||
@Log(title = "航线文件信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody FlightPaths flightPaths) {
|
||||
return toAjax(flightPathsService.insertFlightPaths(flightPaths));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改航线文件信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:edit')")
|
||||
@Log(title = "航线文件信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody FlightPaths flightPaths) {
|
||||
return toAjax(flightPathsService.updateFlightPaths(flightPaths));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除航线文件信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:paths:remove')")
|
||||
@Log(title = "航线文件信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
for (Long id : ids) {
|
||||
FlightPaths flightPaths = flightPathsService.selectFlightPathsById(id);
|
||||
String md5FileName = flightPaths.getFileMd5();
|
||||
Path filePath = Paths.get(System.getProperty("user.dir") + "/upload", md5FileName + ".kmz");
|
||||
try {
|
||||
// 删除文件
|
||||
Files.deleteIfExists(filePath);
|
||||
// 删除数据库
|
||||
flightPathsService.deleteFlightPathsById(id);
|
||||
} catch (IOException e) {
|
||||
return AjaxResult.warn("删除文件失败: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.system.dto.FlightTasksVo;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.FlightTasks;
|
||||
import com.ruoyi.system.service.IFlightTasksService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 任务Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/tasks")
|
||||
public class FlightTasksController extends BaseController {
|
||||
@Autowired
|
||||
private IFlightTasksService flightTasksService;
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FlightTasks flightTasks) {
|
||||
startPage();
|
||||
List<FlightTasksVo> list = flightTasksService.selectFlightTasksVoList(flightTasks);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:export')")
|
||||
@Log(title = "任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, FlightTasks flightTasks) {
|
||||
List<FlightTasks> list = flightTasksService.selectFlightTasksList(flightTasks);
|
||||
ExcelUtil<FlightTasks> util = new ExcelUtil<FlightTasks>(FlightTasks.class);
|
||||
util.exportExcel(response, list, "任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(flightTasksService.selectFlightTasksById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:add')")
|
||||
@Log(title = "任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody FlightTasks flightTasks) {
|
||||
return toAjax(flightTasksService.insertFlightTasks(flightTasks));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:edit')")
|
||||
@Log(title = "任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody FlightTasks flightTasks) {
|
||||
return toAjax(flightTasksService.updateFlightTasks(flightTasks));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:tasks:remove')")
|
||||
@Log(title = "任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(flightTasksService.deleteFlightTasksByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.GatewayOperationLog;
|
||||
import com.ruoyi.system.service.IGatewayOperationLogService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 网关操作日志Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/log")
|
||||
public class GatewayOperationLogController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGatewayOperationLogService gatewayOperationLogService;
|
||||
|
||||
/**
|
||||
* 查询网关操作日志列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
startPage();
|
||||
List<GatewayOperationLog> list = gatewayOperationLogService.selectGatewayOperationLogList(gatewayOperationLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网关操作日志列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:export')")
|
||||
@Log(title = "网关操作日志", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
List<GatewayOperationLog> list = gatewayOperationLogService.selectGatewayOperationLogList(gatewayOperationLog);
|
||||
ExcelUtil<GatewayOperationLog> util = new ExcelUtil<GatewayOperationLog>(GatewayOperationLog.class);
|
||||
util.exportExcel(response, list, "网关操作日志数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网关操作日志详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(gatewayOperationLogService.selectGatewayOperationLogById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网关操作日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:add')")
|
||||
@Log(title = "网关操作日志", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
return toAjax(gatewayOperationLogService.insertGatewayOperationLog(gatewayOperationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网关操作日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:edit')")
|
||||
@Log(title = "网关操作日志", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
return toAjax(gatewayOperationLogService.updateGatewayOperationLog(gatewayOperationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网关操作日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:log:remove')")
|
||||
@Log(title = "网关操作日志", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(gatewayOperationLogService.deleteGatewayOperationLogByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.ManageDeviceDictionary;
|
||||
import com.ruoyi.system.service.IManageDeviceDictionaryService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* Device product enumController
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/dictionary")
|
||||
public class ManageDeviceDictionaryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IManageDeviceDictionaryService manageDeviceDictionaryService;
|
||||
|
||||
/**
|
||||
* 查询Device product enum列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
startPage();
|
||||
List<ManageDeviceDictionary> list = manageDeviceDictionaryService.selectManageDeviceDictionaryList(manageDeviceDictionary);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出Device product enum列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:export')")
|
||||
@Log(title = "Device product enum", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
List<ManageDeviceDictionary> list = manageDeviceDictionaryService.selectManageDeviceDictionaryList(manageDeviceDictionary);
|
||||
ExcelUtil<ManageDeviceDictionary> util = new ExcelUtil<ManageDeviceDictionary>(ManageDeviceDictionary.class);
|
||||
util.exportExcel(response, list, "Device product enum数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Device product enum详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
||||
{
|
||||
return success(manageDeviceDictionaryService.selectManageDeviceDictionaryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Device product enum
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:add')")
|
||||
@Log(title = "Device product enum", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
return toAjax(manageDeviceDictionaryService.insertManageDeviceDictionary(manageDeviceDictionary));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Device product enum
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:edit')")
|
||||
@Log(title = "Device product enum", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
return toAjax(manageDeviceDictionaryService.updateManageDeviceDictionary(manageDeviceDictionary));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Device product enum
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:dictionary:remove')")
|
||||
@Log(title = "Device product enum", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Integer[] ids)
|
||||
{
|
||||
return toAjax(manageDeviceDictionaryService.deleteManageDeviceDictionaryByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.MinioFile;
|
||||
import com.ruoyi.system.service.IMinioFileService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* minio文件存储Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/file")
|
||||
public class MinioFileController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMinioFileService minioFileService;
|
||||
|
||||
/**
|
||||
* 查询minio文件存储列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MinioFile minioFile)
|
||||
{
|
||||
startPage();
|
||||
List<MinioFile> list = minioFileService.selectMinioFileList(minioFile);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出minio文件存储列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:export')")
|
||||
@Log(title = "minio文件存储", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MinioFile minioFile)
|
||||
{
|
||||
List<MinioFile> list = minioFileService.selectMinioFileList(minioFile);
|
||||
ExcelUtil<MinioFile> util = new ExcelUtil<MinioFile>(MinioFile.class);
|
||||
util.exportExcel(response, list, "minio文件存储数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取minio文件存储详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(minioFileService.selectMinioFileById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增minio文件存储
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:add')")
|
||||
@Log(title = "minio文件存储", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MinioFile minioFile)
|
||||
{
|
||||
return toAjax(minioFileService.insertMinioFile(minioFile));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改minio文件存储
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:edit')")
|
||||
@Log(title = "minio文件存储", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MinioFile minioFile)
|
||||
{
|
||||
return toAjax(minioFileService.updateMinioFile(minioFile));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除minio文件存储
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:file:remove')")
|
||||
@Log(title = "minio文件存储", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(minioFileService.deleteMinioFileByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.Missions;
|
||||
import com.ruoyi.system.service.IMissionsService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 无人机任务Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/new/missions")
|
||||
public class MissionsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMissionsService missionsService;
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(Missions missions)
|
||||
{
|
||||
startPage();
|
||||
List<Missions> list = missionsService.selectMissionsList(missions);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出无人机任务列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:export')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Missions missions)
|
||||
{
|
||||
List<Missions> list = missionsService.selectMissionsList(missions);
|
||||
ExcelUtil<Missions> util = new ExcelUtil<Missions>(Missions.class);
|
||||
util.exportExcel(response, list, "无人机任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取无人机任务详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(missionsService.selectMissionsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:add')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Missions missions)
|
||||
{
|
||||
return toAjax(missionsService.insertMissions(missions));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:edit')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Missions missions)
|
||||
{
|
||||
return toAjax(missionsService.updateMissions(missions));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机任务
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:missions:remove')")
|
||||
@Log(title = "无人机任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(missionsService.deleteMissionsByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.OneClickTakeoff;
|
||||
import com.ruoyi.system.service.IOneClickTakeoffService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 一键起飞Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/takeoff")
|
||||
public class OneClickTakeoffController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IOneClickTakeoffService oneClickTakeoffService;
|
||||
|
||||
/**
|
||||
* 查询一键起飞列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
startPage();
|
||||
List<OneClickTakeoff> list = oneClickTakeoffService.selectOneClickTakeoffList(oneClickTakeoff);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出一键起飞列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:export')")
|
||||
@Log(title = "一键起飞", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
List<OneClickTakeoff> list = oneClickTakeoffService.selectOneClickTakeoffList(oneClickTakeoff);
|
||||
ExcelUtil<OneClickTakeoff> util = new ExcelUtil<OneClickTakeoff>(OneClickTakeoff.class);
|
||||
util.exportExcel(response, list, "一键起飞数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取一键起飞详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(oneClickTakeoffService.selectOneClickTakeoffById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一键起飞
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:add')")
|
||||
@Log(title = "一键起飞", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
return toAjax(oneClickTakeoffService.insertOneClickTakeoff(oneClickTakeoff));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一键起飞
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:edit')")
|
||||
@Log(title = "一键起飞", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
return toAjax(oneClickTakeoffService.updateOneClickTakeoff(oneClickTakeoff));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一键起飞
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:takeoff:remove')")
|
||||
@Log(title = "一键起飞", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(oneClickTakeoffService.deleteOneClickTakeoffByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.ScheduleTask;
|
||||
import com.ruoyi.system.service.IScheduleTaskService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 任务定时执行Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/task")
|
||||
public class ScheduleTaskController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScheduleTaskService scheduleTaskService;
|
||||
|
||||
/**
|
||||
* 查询任务定时执行列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScheduleTask scheduleTask)
|
||||
{
|
||||
startPage();
|
||||
List<ScheduleTask> list = scheduleTaskService.selectScheduleTaskList(scheduleTask);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出任务定时执行列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:export')")
|
||||
@Log(title = "任务定时执行", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScheduleTask scheduleTask)
|
||||
{
|
||||
List<ScheduleTask> list = scheduleTaskService.selectScheduleTaskList(scheduleTask);
|
||||
ExcelUtil<ScheduleTask> util = new ExcelUtil<ScheduleTask>(ScheduleTask.class);
|
||||
util.exportExcel(response, list, "任务定时执行数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务定时执行详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(scheduleTaskService.selectScheduleTaskById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增任务定时执行
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:add')")
|
||||
@Log(title = "任务定时执行", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ScheduleTask scheduleTask)
|
||||
{
|
||||
return toAjax(scheduleTaskService.insertScheduleTask(scheduleTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改任务定时执行
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:edit')")
|
||||
@Log(title = "任务定时执行", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ScheduleTask scheduleTask)
|
||||
{
|
||||
return toAjax(scheduleTaskService.updateScheduleTask(scheduleTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除任务定时执行
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:task:remove')")
|
||||
@Log(title = "任务定时执行", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(scheduleTaskService.deleteScheduleTaskByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,137 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.system.domain.ManageDeviceDictionary;
|
||||
import com.ruoyi.system.dto.DroneMark;
|
||||
import com.ruoyi.system.service.IManageDeviceDictionaryService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.VideoInfo;
|
||||
import com.ruoyi.system.service.IVideoInfoService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 视频设备Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "设备管理")
|
||||
@RequestMapping("/system/info")
|
||||
public class VideoInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IVideoInfoService videoInfoService;
|
||||
@Autowired
|
||||
private IManageDeviceDictionaryService manageDeviceDictionaryService;
|
||||
|
||||
/**
|
||||
* 查询视频设备列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(VideoInfo videoInfo)
|
||||
{
|
||||
startPage();
|
||||
List<VideoInfo> list = videoInfoService.selectVideoInfoList(videoInfo);
|
||||
// 遍历list设备列表
|
||||
for (VideoInfo video : list) {
|
||||
// 得到的值是这样的 3-2-1
|
||||
String deviceType = video.getDeviceType();
|
||||
// 拆分出来
|
||||
String[] split = deviceType.split("-");
|
||||
ManageDeviceDictionary manageDeviceDictionary = manageDeviceDictionaryService.selectManageDeviceDictionaryByCondition(split[0], split[1], split[2]);
|
||||
video.setRemark(video.getDeviceType());
|
||||
video.setDeviceType(manageDeviceDictionary.getDeviceName());
|
||||
}
|
||||
|
||||
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出视频设备列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:export')")
|
||||
@Log(title = "视频设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, VideoInfo videoInfo)
|
||||
{
|
||||
List<VideoInfo> list = videoInfoService.selectVideoInfoList(videoInfo);
|
||||
ExcelUtil<VideoInfo> util = new ExcelUtil<VideoInfo>(VideoInfo.class);
|
||||
util.exportExcel(response, list, "视频设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取视频设备详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(videoInfoService.selectVideoInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增视频设备
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:add')")
|
||||
@Log(title = "视频设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody VideoInfo videoInfo)
|
||||
{
|
||||
return toAjax(videoInfoService.insertVideoInfo(videoInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改视频设备
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:edit')")
|
||||
@Log(title = "视频设备", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody VideoInfo videoInfo)
|
||||
{
|
||||
return toAjax(videoInfoService.updateVideoInfo(videoInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除视频设备
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:info:remove')")
|
||||
@Log(title = "视频设备", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(videoInfoService.deleteVideoInfoByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询机场设备列表
|
||||
*/
|
||||
@GetMapping("/droneList")
|
||||
public TableDataInfo droneList() {
|
||||
startPage();
|
||||
VideoInfo videoInfo = new VideoInfo();
|
||||
videoInfo.setType("机场");
|
||||
List<VideoInfo> list = videoInfoService.selectVideoInfoList(videoInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机信息对象 drone
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public class Drone extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增的无人机ID */
|
||||
private Long id;
|
||||
|
||||
/** 网关序列号 */
|
||||
@Excel(name = "网关序列号")
|
||||
private String gateway;
|
||||
|
||||
/** 无人机序列号 */
|
||||
@Excel(name = "无人机序列号")
|
||||
private String sn;
|
||||
|
||||
/** 是否在线 */
|
||||
@Excel(name = "是否在线")
|
||||
private String isOnline;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGateway(String gateway)
|
||||
{
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getGateway()
|
||||
{
|
||||
return gateway;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setIsOnline(String isOnline)
|
||||
{
|
||||
this.isOnline = isOnline;
|
||||
}
|
||||
|
||||
public String getIsOnline()
|
||||
{
|
||||
return isOnline;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gateway", getGateway())
|
||||
.append("sn", getSn())
|
||||
.append("isOnline", getIsOnline())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机任务对象 drone_missions
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class DroneMissions extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增ID */
|
||||
private Long id;
|
||||
|
||||
/** 任务名称 */
|
||||
@Excel(name = "任务名称")
|
||||
private String missionName;
|
||||
|
||||
/** 航线文件URL */
|
||||
@Excel(name = "航线文件URL")
|
||||
private String flightPathUrl;
|
||||
|
||||
/** 航线文件MD5 */
|
||||
@Excel(name = "航线文件MD5")
|
||||
private String flightPathMd5;
|
||||
|
||||
/** 返航高度 */
|
||||
@Excel(name = "返航高度")
|
||||
private Long returnAltitude;
|
||||
|
||||
/** 返航高度模式 */
|
||||
@Excel(name = "返航高度模式")
|
||||
private Integer returnAltitudeMode;
|
||||
|
||||
/** 遥控器失控类型 */
|
||||
@Excel(name = "遥控器失控类型")
|
||||
private Long outOfControlAction;
|
||||
|
||||
/** 航线失控动作 */
|
||||
@Excel(name = "航线失控动作")
|
||||
private Integer flightControlAction;
|
||||
|
||||
/** 航线精度类型 */
|
||||
@Excel(name = "航线精度类型")
|
||||
private Long waylinePrecisionType;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMissionName(String missionName)
|
||||
{
|
||||
this.missionName = missionName;
|
||||
}
|
||||
|
||||
public String getMissionName()
|
||||
{
|
||||
return missionName;
|
||||
}
|
||||
public void setFlightPathUrl(String flightPathUrl)
|
||||
{
|
||||
this.flightPathUrl = flightPathUrl;
|
||||
}
|
||||
|
||||
public String getFlightPathUrl()
|
||||
{
|
||||
return flightPathUrl;
|
||||
}
|
||||
public void setFlightPathMd5(String flightPathMd5)
|
||||
{
|
||||
this.flightPathMd5 = flightPathMd5;
|
||||
}
|
||||
|
||||
public String getFlightPathMd5()
|
||||
{
|
||||
return flightPathMd5;
|
||||
}
|
||||
public void setReturnAltitude(Long returnAltitude)
|
||||
{
|
||||
this.returnAltitude = returnAltitude;
|
||||
}
|
||||
|
||||
public Long getReturnAltitude()
|
||||
{
|
||||
return returnAltitude;
|
||||
}
|
||||
public void setReturnAltitudeMode(Integer returnAltitudeMode)
|
||||
{
|
||||
this.returnAltitudeMode = returnAltitudeMode;
|
||||
}
|
||||
|
||||
public Integer getReturnAltitudeMode()
|
||||
{
|
||||
return returnAltitudeMode;
|
||||
}
|
||||
public void setOutOfControlAction(Long outOfControlAction)
|
||||
{
|
||||
this.outOfControlAction = outOfControlAction;
|
||||
}
|
||||
|
||||
public Long getOutOfControlAction()
|
||||
{
|
||||
return outOfControlAction;
|
||||
}
|
||||
public void setFlightControlAction(Integer flightControlAction)
|
||||
{
|
||||
this.flightControlAction = flightControlAction;
|
||||
}
|
||||
|
||||
public Integer getFlightControlAction()
|
||||
{
|
||||
return flightControlAction;
|
||||
}
|
||||
public void setWaylinePrecisionType(Long waylinePrecisionType)
|
||||
{
|
||||
this.waylinePrecisionType = waylinePrecisionType;
|
||||
}
|
||||
|
||||
public Long getWaylinePrecisionType()
|
||||
{
|
||||
return waylinePrecisionType;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("missionName", getMissionName())
|
||||
.append("flightPathUrl", getFlightPathUrl())
|
||||
.append("flightPathMd5", getFlightPathMd5())
|
||||
.append("returnAltitude", getReturnAltitude())
|
||||
.append("returnAltitudeMode", getReturnAltitudeMode())
|
||||
.append("outOfControlAction", getOutOfControlAction())
|
||||
.append("flightControlAction", getFlightControlAction())
|
||||
.append("waylinePrecisionType", getWaylinePrecisionType())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,246 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 航线文件信息对象 flight_paths
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
public class FlightPaths extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 航线文件名称
|
||||
*/
|
||||
@Excel(name = "航线文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 航线文件URL
|
||||
*/
|
||||
@Excel(name = "航线文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
/**
|
||||
* 航线文件MD5
|
||||
*/
|
||||
@Excel(name = "航线文件MD5")
|
||||
private String fileMd5;
|
||||
|
||||
/**
|
||||
* 预计拍照数量
|
||||
*/
|
||||
@Excel(name = "预计拍照数量")
|
||||
private Long photoNum;
|
||||
|
||||
/**
|
||||
* 航线长度
|
||||
*/
|
||||
@Excel(name = "航线长度")
|
||||
private String waylineLen;
|
||||
|
||||
/**
|
||||
* 前端标识
|
||||
*/
|
||||
@Excel(name = "前端标识")
|
||||
private String flag;
|
||||
|
||||
/**
|
||||
* 预计时间
|
||||
*/
|
||||
@Excel(name = "预计时间")
|
||||
private String estimateTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 航线类型 0 航点航线
|
||||
*/
|
||||
@Excel(name = "航线类型 0 航点航线")
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 航点数据
|
||||
*/
|
||||
@Excel(name = "航点数据")
|
||||
private String points;
|
||||
|
||||
public String getIsImport() {
|
||||
return isImport;
|
||||
}
|
||||
|
||||
public void setIsImport(String isImport) {
|
||||
this.isImport = isImport;
|
||||
}
|
||||
|
||||
private String isImport;
|
||||
|
||||
// 0升序 1降序
|
||||
private Integer order;
|
||||
|
||||
|
||||
public Double getGlobalPointHeight() {
|
||||
return globalPointHeight;
|
||||
}
|
||||
|
||||
public void setGlobalPointHeight(Double globalPointHeight) {
|
||||
this.globalPointHeight = globalPointHeight;
|
||||
}
|
||||
|
||||
// 画航线的全局高度
|
||||
private Double globalPointHeight;
|
||||
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
private Date updatedAt;
|
||||
|
||||
public Integer getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
|
||||
public String getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
// 设备类型
|
||||
private String deviceType;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileMd5(String fileMd5) {
|
||||
this.fileMd5 = fileMd5;
|
||||
}
|
||||
|
||||
public String getFileMd5() {
|
||||
return fileMd5;
|
||||
}
|
||||
|
||||
public void setPhotoNum(Long photoNum) {
|
||||
this.photoNum = photoNum;
|
||||
}
|
||||
|
||||
public Long getPhotoNum() {
|
||||
return photoNum;
|
||||
}
|
||||
|
||||
public void setWaylineLen(String waylineLen) {
|
||||
this.waylineLen = waylineLen;
|
||||
}
|
||||
|
||||
public String getWaylineLen() {
|
||||
return waylineLen;
|
||||
}
|
||||
|
||||
public void setFlag(String flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public String getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setEstimateTime(String estimateTime) {
|
||||
this.estimateTime = estimateTime;
|
||||
}
|
||||
|
||||
public String getEstimateTime() {
|
||||
return estimateTime;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setType(Long type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setPoints(String points) {
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
public String getPoints() {
|
||||
return points;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("fileName", getFileName())
|
||||
.append("fileUrl", getFileUrl())
|
||||
.append("fileMd5", getFileMd5())
|
||||
.append("photoNum", getPhotoNum())
|
||||
.append("waylineLen", getWaylineLen())
|
||||
.append("flag", getFlag())
|
||||
.append("estimateTime", getEstimateTime())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("type", getType())
|
||||
.append("points", getPoints())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 任务对象 flight_tasks
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class FlightTasks extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 所属飞机SN */
|
||||
@Excel(name = "所属飞机SN")
|
||||
private String sn;
|
||||
|
||||
/** 是否执行 */
|
||||
@Excel(name = "是否执行")
|
||||
private Integer isExecuted;
|
||||
|
||||
/** 任务状态 */
|
||||
@Excel(name = "任务状态")
|
||||
private String status;
|
||||
|
||||
/** 任务ID */
|
||||
@Excel(name = "任务ID")
|
||||
private Long messionId;
|
||||
|
||||
/** flightId */
|
||||
@Excel(name = "flightId")
|
||||
private String flightId;
|
||||
|
||||
/** 实际回传数量 */
|
||||
@Excel(name = "实际回传数量")
|
||||
private Long realPhotoNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/** 完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date completeAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setIsExecuted(Integer isExecuted)
|
||||
{
|
||||
this.isExecuted = isExecuted;
|
||||
}
|
||||
|
||||
public Integer getIsExecuted()
|
||||
{
|
||||
return isExecuted;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setMessionId(Long messionId)
|
||||
{
|
||||
this.messionId = messionId;
|
||||
}
|
||||
|
||||
public Long getMessionId()
|
||||
{
|
||||
return messionId;
|
||||
}
|
||||
public void setFlightId(String flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public String getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
public void setRealPhotoNum(Long realPhotoNum)
|
||||
{
|
||||
this.realPhotoNum = realPhotoNum;
|
||||
}
|
||||
|
||||
public Long getRealPhotoNum()
|
||||
{
|
||||
return realPhotoNum;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
public void setCompleteAt(Date completeAt)
|
||||
{
|
||||
this.completeAt = completeAt;
|
||||
}
|
||||
|
||||
public Date getCompleteAt()
|
||||
{
|
||||
return completeAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("isExecuted", getIsExecuted())
|
||||
.append("status", getStatus())
|
||||
.append("messionId", getMessionId())
|
||||
.append("flightId", getFlightId())
|
||||
.append("realPhotoNum", getRealPhotoNum())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("completeAt", getCompleteAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 网关操作日志对象 gateway_operation_log
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
public class GatewayOperationLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 网关编号 */
|
||||
@Excel(name = "网关编号")
|
||||
private String gatewayId;
|
||||
|
||||
/** 操作命令 */
|
||||
@Excel(name = "操作命令")
|
||||
private String operationCommand;
|
||||
|
||||
/** 发送参数 */
|
||||
@Excel(name = "发送参数")
|
||||
private String sendParams;
|
||||
|
||||
/** 返回响应 */
|
||||
@Excel(name = "返回响应")
|
||||
private String executionResponse;
|
||||
|
||||
/** 执行结果 */
|
||||
@Excel(name = "执行结果")
|
||||
private String executionResult;
|
||||
|
||||
/** 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date operationTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGatewayId(String gatewayId)
|
||||
{
|
||||
this.gatewayId = gatewayId;
|
||||
}
|
||||
|
||||
public String getGatewayId()
|
||||
{
|
||||
return gatewayId;
|
||||
}
|
||||
public void setOperationCommand(String operationCommand)
|
||||
{
|
||||
this.operationCommand = operationCommand;
|
||||
}
|
||||
|
||||
public String getOperationCommand()
|
||||
{
|
||||
return operationCommand;
|
||||
}
|
||||
public void setSendParams(String sendParams)
|
||||
{
|
||||
this.sendParams = sendParams;
|
||||
}
|
||||
|
||||
public String getSendParams()
|
||||
{
|
||||
return sendParams;
|
||||
}
|
||||
public void setExecutionResponse(String executionResponse)
|
||||
{
|
||||
this.executionResponse = executionResponse;
|
||||
}
|
||||
|
||||
public String getExecutionResponse()
|
||||
{
|
||||
return executionResponse;
|
||||
}
|
||||
public void setExecutionResult(String executionResult)
|
||||
{
|
||||
this.executionResult = executionResult;
|
||||
}
|
||||
|
||||
public String getExecutionResult()
|
||||
{
|
||||
return executionResult;
|
||||
}
|
||||
public void setOperationTime(Date operationTime)
|
||||
{
|
||||
this.operationTime = operationTime;
|
||||
}
|
||||
|
||||
public Date getOperationTime()
|
||||
{
|
||||
return operationTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gatewayId", getGatewayId())
|
||||
.append("operationCommand", getOperationCommand())
|
||||
.append("sendParams", getSendParams())
|
||||
.append("executionResponse", getExecutionResponse())
|
||||
.append("executionResult", getExecutionResult())
|
||||
.append("operationTime", getOperationTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* Device product enum对象 manage_device_dictionary
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
public class ManageDeviceDictionary extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Integer id;
|
||||
|
||||
/** This parameter corresponds to the domain in the Product Type section of the document. 0: drone; 1: payload; 2: remote control; 3: dock; */
|
||||
@Excel(name = "This parameter corresponds to the domain in the Product Type section of the document. 0: drone; 1: payload; 2: remote control; 3: dock;")
|
||||
private Long domain;
|
||||
|
||||
/** This parameter corresponds to the type in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the type in the Product Type section of the document.")
|
||||
private Long deviceType;
|
||||
|
||||
/** This parameter corresponds to the sub_type in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the sub_type in the Product Type section of the document.")
|
||||
private Long subType;
|
||||
|
||||
/** This parameter corresponds to the name in the Product Type section of the document. */
|
||||
@Excel(name = "This parameter corresponds to the name in the Product Type section of the document.")
|
||||
private String deviceName;
|
||||
|
||||
/** remark */
|
||||
@Excel(name = "remark")
|
||||
private String deviceDesc;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDomain(Long domain)
|
||||
{
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
public Long getDomain()
|
||||
{
|
||||
return domain;
|
||||
}
|
||||
public void setDeviceType(Long deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Long getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public void setSubType(Long subType)
|
||||
{
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public Long getSubType()
|
||||
{
|
||||
return subType;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setDeviceDesc(String deviceDesc)
|
||||
{
|
||||
this.deviceDesc = deviceDesc;
|
||||
}
|
||||
|
||||
public String getDeviceDesc()
|
||||
{
|
||||
return deviceDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("domain", getDomain())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("subType", getSubType())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceDesc", getDeviceDesc())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* minio文件存储对象 minio_file
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
public class MinioFile extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 飞行任务ID */
|
||||
@Excel(name = "飞行任务ID")
|
||||
private Long flightId;
|
||||
|
||||
/** 文件URL */
|
||||
@Excel(name = "文件URL")
|
||||
private String url;
|
||||
|
||||
/** 文件名 */
|
||||
@Excel(name = "文件名")
|
||||
private String filename;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setFlightId(Long flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
public void setUrl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
}
|
||||
public void setFilename(String filename)
|
||||
{
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public String getFilename()
|
||||
{
|
||||
return filename;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("flightId", getFlightId())
|
||||
.append("url", getUrl())
|
||||
.append("filename", getFilename())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,282 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 无人机任务对象 missions
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
public class Missions extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
@Excel(name = "任务名称")
|
||||
private String missionName;
|
||||
|
||||
/**
|
||||
* 航线文件ID
|
||||
*/
|
||||
@Excel(name = "航线文件ID")
|
||||
private String fileId;
|
||||
|
||||
/**
|
||||
* 返航高度
|
||||
*/
|
||||
@Excel(name = "返航高度")
|
||||
private Long returnAltitude;
|
||||
private Date lastTime;
|
||||
|
||||
public Date getLastTime() {
|
||||
return lastTime;
|
||||
}
|
||||
|
||||
public void setLastTime(Date lastTime) {
|
||||
this.lastTime = lastTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返航高度模式
|
||||
*/
|
||||
@Excel(name = "返航高度模式")
|
||||
private Integer returnAltitudeMode;
|
||||
|
||||
/**
|
||||
* 遥控器失控类型
|
||||
*/
|
||||
@Excel(name = "遥控器失控类型")
|
||||
private Long outOfControlAction;
|
||||
|
||||
/**
|
||||
* 航线失控动作
|
||||
*/
|
||||
@Excel(name = "航线失控动作")
|
||||
private Integer flightControlAction;
|
||||
|
||||
/**
|
||||
* 航线精度类型
|
||||
*/
|
||||
@Excel(name = "航线精度类型")
|
||||
private Long waylinePrecisionType;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 1立即、2单次定时、3重复定时
|
||||
*/
|
||||
@Excel(name = "1立即、2单次定时、3重复定时")
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 实际执行时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "实际执行时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date execTime;
|
||||
|
||||
/**
|
||||
* flightId
|
||||
*/
|
||||
@Excel(name = "flightId")
|
||||
private Long flightId;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
@Excel(name = "任务状态")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 网关
|
||||
*/
|
||||
@Excel(name = "网关")
|
||||
private String gateway;
|
||||
|
||||
|
||||
private Integer flag;
|
||||
|
||||
public Integer getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(Integer flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Long getTimeStamp() {
|
||||
return timeStamp;
|
||||
}
|
||||
|
||||
public void setTimeStamp(Long timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* 定时任务需要的参数
|
||||
*/
|
||||
private String timer;
|
||||
|
||||
private Long timeStamp;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setMissionName(String missionName) {
|
||||
this.missionName = missionName;
|
||||
}
|
||||
|
||||
public String getMissionName() {
|
||||
return missionName;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setReturnAltitude(Long returnAltitude) {
|
||||
this.returnAltitude = returnAltitude;
|
||||
}
|
||||
|
||||
public Long getReturnAltitude() {
|
||||
return returnAltitude;
|
||||
}
|
||||
|
||||
public void setReturnAltitudeMode(Integer returnAltitudeMode) {
|
||||
this.returnAltitudeMode = returnAltitudeMode;
|
||||
}
|
||||
|
||||
public Integer getReturnAltitudeMode() {
|
||||
return returnAltitudeMode;
|
||||
}
|
||||
|
||||
public void setOutOfControlAction(Long outOfControlAction) {
|
||||
this.outOfControlAction = outOfControlAction;
|
||||
}
|
||||
|
||||
public Long getOutOfControlAction() {
|
||||
return outOfControlAction;
|
||||
}
|
||||
|
||||
public void setFlightControlAction(Integer flightControlAction) {
|
||||
this.flightControlAction = flightControlAction;
|
||||
}
|
||||
|
||||
public Integer getFlightControlAction() {
|
||||
return flightControlAction;
|
||||
}
|
||||
|
||||
public void setWaylinePrecisionType(Long waylinePrecisionType) {
|
||||
this.waylinePrecisionType = waylinePrecisionType;
|
||||
}
|
||||
|
||||
public Long getWaylinePrecisionType() {
|
||||
return waylinePrecisionType;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setType(Long type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setExecTime(Date execTime) {
|
||||
this.execTime = execTime;
|
||||
}
|
||||
|
||||
public Date getExecTime() {
|
||||
return execTime;
|
||||
}
|
||||
|
||||
public void setFlightId(Long flightId) {
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId() {
|
||||
return flightId;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getTimer() {
|
||||
return timer;
|
||||
}
|
||||
|
||||
public void setTimer(String timer) {
|
||||
this.timer = timer;
|
||||
}
|
||||
|
||||
public String getGateway() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("missionName", getMissionName())
|
||||
.append("fileId", getFileId())
|
||||
.append("returnAltitude", getReturnAltitude())
|
||||
.append("returnAltitudeMode", getReturnAltitudeMode())
|
||||
.append("outOfControlAction", getOutOfControlAction())
|
||||
.append("flightControlAction", getFlightControlAction())
|
||||
.append("waylinePrecisionType", getWaylinePrecisionType())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("type", getType())
|
||||
.append("execTime", getExecTime())
|
||||
.append("flightId", getFlightId())
|
||||
.append("state", getState())
|
||||
.append("gateway", getGateway())
|
||||
.append("timer", getTimer())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 一键起飞对象 one_click_takeoff
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public class OneClickTakeoff extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 无人机序列号 */
|
||||
@Excel(name = "无人机序列号")
|
||||
private String droneSerialNumber;
|
||||
|
||||
/** 一键起飞时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "一键起飞时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date takeoffTime;
|
||||
|
||||
/** 任务ID */
|
||||
@Excel(name = "任务ID")
|
||||
private Long flightId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDroneSerialNumber(String droneSerialNumber)
|
||||
{
|
||||
this.droneSerialNumber = droneSerialNumber;
|
||||
}
|
||||
|
||||
public String getDroneSerialNumber()
|
||||
{
|
||||
return droneSerialNumber;
|
||||
}
|
||||
public void setTakeoffTime(Date takeoffTime)
|
||||
{
|
||||
this.takeoffTime = takeoffTime;
|
||||
}
|
||||
|
||||
public Date getTakeoffTime()
|
||||
{
|
||||
return takeoffTime;
|
||||
}
|
||||
public void setFlightId(Long flightId)
|
||||
{
|
||||
this.flightId = flightId;
|
||||
}
|
||||
|
||||
public Long getFlightId()
|
||||
{
|
||||
return flightId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("droneSerialNumber", getDroneSerialNumber())
|
||||
.append("takeoffTime", getTakeoffTime())
|
||||
.append("flightId", getFlightId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 任务定时执行对象 schedule_task
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public class ScheduleTask extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 自增主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 飞机的SN */
|
||||
@Excel(name = "飞机的SN")
|
||||
private String sn;
|
||||
|
||||
/** taskId */
|
||||
@Excel(name = "taskId")
|
||||
private String taskId;
|
||||
|
||||
/** 执行的月、可以使用 * */
|
||||
@Excel(name = "执行的月、可以使用 *")
|
||||
private String execMonth;
|
||||
|
||||
/** 执行的日、可以使用 * */
|
||||
@Excel(name = "执行的日、可以使用 *")
|
||||
private String execDay;
|
||||
|
||||
/** 执行的时 */
|
||||
@Excel(name = "执行的时")
|
||||
private String execHour;
|
||||
|
||||
/** 执行的分 */
|
||||
@Excel(name = "执行的分")
|
||||
private String execMinute;
|
||||
|
||||
/** 执行的秒 */
|
||||
@Excel(name = "执行的秒")
|
||||
private String execSecond;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setTaskId(String taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setExecMonth(String execMonth)
|
||||
{
|
||||
this.execMonth = execMonth;
|
||||
}
|
||||
|
||||
public String getExecMonth()
|
||||
{
|
||||
return execMonth;
|
||||
}
|
||||
public void setExecDay(String execDay)
|
||||
{
|
||||
this.execDay = execDay;
|
||||
}
|
||||
|
||||
public String getExecDay()
|
||||
{
|
||||
return execDay;
|
||||
}
|
||||
public void setExecHour(String execHour)
|
||||
{
|
||||
this.execHour = execHour;
|
||||
}
|
||||
|
||||
public String getExecHour()
|
||||
{
|
||||
return execHour;
|
||||
}
|
||||
public void setExecMinute(String execMinute)
|
||||
{
|
||||
this.execMinute = execMinute;
|
||||
}
|
||||
|
||||
public String getExecMinute()
|
||||
{
|
||||
return execMinute;
|
||||
}
|
||||
public void setExecSecond(String execSecond)
|
||||
{
|
||||
this.execSecond = execSecond;
|
||||
}
|
||||
|
||||
public String getExecSecond()
|
||||
{
|
||||
return execSecond;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("taskId", getTaskId())
|
||||
.append("execMonth", getExecMonth())
|
||||
.append("execDay", getExecDay())
|
||||
.append("execHour", getExecHour())
|
||||
.append("execMinute", getExecMinute())
|
||||
.append("execSecond", getExecSecond())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 缓存信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysCache
|
||||
{
|
||||
/** 缓存名称 */
|
||||
private String cacheName = "";
|
||||
|
||||
/** 缓存键名 */
|
||||
private String cacheKey = "";
|
||||
|
||||
/** 缓存内容 */
|
||||
private String cacheValue = "";
|
||||
|
||||
/** 备注 */
|
||||
private String remark = "";
|
||||
|
||||
public SysCache()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public SysCache(String cacheName, String remark)
|
||||
{
|
||||
this.cacheName = cacheName;
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public SysCache(String cacheName, String cacheKey, String cacheValue)
|
||||
{
|
||||
this.cacheName = StringUtils.replace(cacheName, ":", "");
|
||||
this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
|
||||
this.cacheValue = cacheValue;
|
||||
}
|
||||
|
||||
public String getCacheName()
|
||||
{
|
||||
return cacheName;
|
||||
}
|
||||
|
||||
public void setCacheName(String cacheName)
|
||||
{
|
||||
this.cacheName = cacheName;
|
||||
}
|
||||
|
||||
public String getCacheKey()
|
||||
{
|
||||
return cacheKey;
|
||||
}
|
||||
|
||||
public void setCacheKey(String cacheKey)
|
||||
{
|
||||
this.cacheKey = cacheKey;
|
||||
}
|
||||
|
||||
public String getCacheValue()
|
||||
{
|
||||
return cacheValue;
|
||||
}
|
||||
|
||||
public void setCacheValue(String cacheValue)
|
||||
{
|
||||
this.cacheValue = cacheValue;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 参数配置表 sys_config
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 参数主键 */
|
||||
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
|
||||
private Long configId;
|
||||
|
||||
/** 参数名称 */
|
||||
@Excel(name = "参数名称")
|
||||
private String configName;
|
||||
|
||||
/** 参数键名 */
|
||||
@Excel(name = "参数键名")
|
||||
private String configKey;
|
||||
|
||||
/** 参数键值 */
|
||||
@Excel(name = "参数键值")
|
||||
private String configValue;
|
||||
|
||||
/** 系统内置(Y是 N否) */
|
||||
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
|
||||
private String configType;
|
||||
|
||||
public Long getConfigId()
|
||||
{
|
||||
return configId;
|
||||
}
|
||||
|
||||
public void setConfigId(Long configId)
|
||||
{
|
||||
this.configId = configId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数名称不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
|
||||
public String getConfigName()
|
||||
{
|
||||
return configName;
|
||||
}
|
||||
|
||||
public void setConfigName(String configName)
|
||||
{
|
||||
this.configName = configName;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键名长度不能为空")
|
||||
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
|
||||
public String getConfigKey()
|
||||
{
|
||||
return configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey)
|
||||
{
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
@NotBlank(message = "参数键值不能为空")
|
||||
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
|
||||
public String getConfigValue()
|
||||
{
|
||||
return configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue)
|
||||
{
|
||||
this.configValue = configValue;
|
||||
}
|
||||
|
||||
public String getConfigType()
|
||||
{
|
||||
return configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType)
|
||||
{
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("configId", getConfigId())
|
||||
.append("configName", getConfigName())
|
||||
.append("configKey", getConfigKey())
|
||||
.append("configValue", getConfigValue())
|
||||
.append("configType", getConfigType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 系统访问记录表 sys_logininfor
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysLogininfor extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
@Excel(name = "序号", cellType = ColumnType.NUMERIC)
|
||||
private Long infoId;
|
||||
|
||||
/** 用户账号 */
|
||||
@Excel(name = "用户账号")
|
||||
private String userName;
|
||||
|
||||
/** 登录状态 0成功 1失败 */
|
||||
@Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
|
||||
private String status;
|
||||
|
||||
/** 登录IP地址 */
|
||||
@Excel(name = "登录地址")
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地点 */
|
||||
@Excel(name = "登录地点")
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
@Excel(name = "浏览器")
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
@Excel(name = "操作系统")
|
||||
private String os;
|
||||
|
||||
/** 提示消息 */
|
||||
@Excel(name = "提示消息")
|
||||
private String msg;
|
||||
|
||||
/** 访问时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date loginTime;
|
||||
|
||||
public Long getInfoId()
|
||||
{
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(Long infoId)
|
||||
{
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public String getMsg()
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg)
|
||||
{
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Date getLoginTime()
|
||||
{
|
||||
return loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(Date loginTime)
|
||||
{
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import com.ruoyi.common.xss.Xss;
|
||||
|
||||
/**
|
||||
* 通知公告表 sys_notice
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysNotice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 公告ID */
|
||||
private Long noticeId;
|
||||
|
||||
/** 公告标题 */
|
||||
private String noticeTitle;
|
||||
|
||||
/** 公告类型(1通知 2公告) */
|
||||
private String noticeType;
|
||||
|
||||
/** 公告内容 */
|
||||
private String noticeContent;
|
||||
|
||||
/** 公告状态(0正常 1关闭) */
|
||||
private String status;
|
||||
|
||||
public Long getNoticeId()
|
||||
{
|
||||
return noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeId(Long noticeId)
|
||||
{
|
||||
this.noticeId = noticeId;
|
||||
}
|
||||
|
||||
public void setNoticeTitle(String noticeTitle)
|
||||
{
|
||||
this.noticeTitle = noticeTitle;
|
||||
}
|
||||
|
||||
@Xss(message = "公告标题不能包含脚本字符")
|
||||
@NotBlank(message = "公告标题不能为空")
|
||||
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
||||
public String getNoticeTitle()
|
||||
{
|
||||
return noticeTitle;
|
||||
}
|
||||
|
||||
public void setNoticeType(String noticeType)
|
||||
{
|
||||
this.noticeType = noticeType;
|
||||
}
|
||||
|
||||
public String getNoticeType()
|
||||
{
|
||||
return noticeType;
|
||||
}
|
||||
|
||||
public void setNoticeContent(String noticeContent)
|
||||
{
|
||||
this.noticeContent = noticeContent;
|
||||
}
|
||||
|
||||
public String getNoticeContent()
|
||||
{
|
||||
return noticeContent;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("noticeId", getNoticeId())
|
||||
.append("noticeTitle", getNoticeTitle())
|
||||
.append("noticeType", getNoticeType())
|
||||
.append("noticeContent", getNoticeContent())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,269 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 操作日志记录表 oper_log
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysOperLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 日志主键 */
|
||||
@Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
|
||||
private Long operId;
|
||||
|
||||
/** 操作模块 */
|
||||
@Excel(name = "操作模块")
|
||||
private String title;
|
||||
|
||||
/** 业务类型(0其它 1新增 2修改 3删除) */
|
||||
@Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
|
||||
private Integer businessType;
|
||||
|
||||
/** 业务类型数组 */
|
||||
private Integer[] businessTypes;
|
||||
|
||||
/** 请求方法 */
|
||||
@Excel(name = "请求方法")
|
||||
private String method;
|
||||
|
||||
/** 请求方式 */
|
||||
@Excel(name = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
/** 操作类别(0其它 1后台用户 2手机端用户) */
|
||||
@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
|
||||
private Integer operatorType;
|
||||
|
||||
/** 操作人员 */
|
||||
@Excel(name = "操作人员")
|
||||
private String operName;
|
||||
|
||||
/** 部门名称 */
|
||||
@Excel(name = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
/** 请求url */
|
||||
@Excel(name = "请求地址")
|
||||
private String operUrl;
|
||||
|
||||
/** 操作地址 */
|
||||
@Excel(name = "操作地址")
|
||||
private String operIp;
|
||||
|
||||
/** 操作地点 */
|
||||
@Excel(name = "操作地点")
|
||||
private String operLocation;
|
||||
|
||||
/** 请求参数 */
|
||||
@Excel(name = "请求参数")
|
||||
private String operParam;
|
||||
|
||||
/** 返回参数 */
|
||||
@Excel(name = "返回参数")
|
||||
private String jsonResult;
|
||||
|
||||
/** 操作状态(0正常 1异常) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=异常")
|
||||
private Integer status;
|
||||
|
||||
/** 错误消息 */
|
||||
@Excel(name = "错误消息")
|
||||
private String errorMsg;
|
||||
|
||||
/** 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date operTime;
|
||||
|
||||
/** 消耗时间 */
|
||||
@Excel(name = "消耗时间", suffix = "毫秒")
|
||||
private Long costTime;
|
||||
|
||||
public Long getOperId()
|
||||
{
|
||||
return operId;
|
||||
}
|
||||
|
||||
public void setOperId(Long operId)
|
||||
{
|
||||
this.operId = operId;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getBusinessType()
|
||||
{
|
||||
return businessType;
|
||||
}
|
||||
|
||||
public void setBusinessType(Integer businessType)
|
||||
{
|
||||
this.businessType = businessType;
|
||||
}
|
||||
|
||||
public Integer[] getBusinessTypes()
|
||||
{
|
||||
return businessTypes;
|
||||
}
|
||||
|
||||
public void setBusinessTypes(Integer[] businessTypes)
|
||||
{
|
||||
this.businessTypes = businessTypes;
|
||||
}
|
||||
|
||||
public String getMethod()
|
||||
{
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method)
|
||||
{
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public String getRequestMethod()
|
||||
{
|
||||
return requestMethod;
|
||||
}
|
||||
|
||||
public void setRequestMethod(String requestMethod)
|
||||
{
|
||||
this.requestMethod = requestMethod;
|
||||
}
|
||||
|
||||
public Integer getOperatorType()
|
||||
{
|
||||
return operatorType;
|
||||
}
|
||||
|
||||
public void setOperatorType(Integer operatorType)
|
||||
{
|
||||
this.operatorType = operatorType;
|
||||
}
|
||||
|
||||
public String getOperName()
|
||||
{
|
||||
return operName;
|
||||
}
|
||||
|
||||
public void setOperName(String operName)
|
||||
{
|
||||
this.operName = operName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getOperUrl()
|
||||
{
|
||||
return operUrl;
|
||||
}
|
||||
|
||||
public void setOperUrl(String operUrl)
|
||||
{
|
||||
this.operUrl = operUrl;
|
||||
}
|
||||
|
||||
public String getOperIp()
|
||||
{
|
||||
return operIp;
|
||||
}
|
||||
|
||||
public void setOperIp(String operIp)
|
||||
{
|
||||
this.operIp = operIp;
|
||||
}
|
||||
|
||||
public String getOperLocation()
|
||||
{
|
||||
return operLocation;
|
||||
}
|
||||
|
||||
public void setOperLocation(String operLocation)
|
||||
{
|
||||
this.operLocation = operLocation;
|
||||
}
|
||||
|
||||
public String getOperParam()
|
||||
{
|
||||
return operParam;
|
||||
}
|
||||
|
||||
public void setOperParam(String operParam)
|
||||
{
|
||||
this.operParam = operParam;
|
||||
}
|
||||
|
||||
public String getJsonResult()
|
||||
{
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public void setJsonResult(String jsonResult)
|
||||
{
|
||||
this.jsonResult = jsonResult;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getErrorMsg()
|
||||
{
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public void setErrorMsg(String errorMsg)
|
||||
{
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public Date getOperTime()
|
||||
{
|
||||
return operTime;
|
||||
}
|
||||
|
||||
public void setOperTime(Date operTime)
|
||||
{
|
||||
this.operTime = operTime;
|
||||
}
|
||||
|
||||
public Long getCostTime()
|
||||
{
|
||||
return costTime;
|
||||
}
|
||||
|
||||
public void setCostTime(Long costTime)
|
||||
{
|
||||
this.costTime = costTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.annotation.Excel.ColumnType;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 岗位表 sys_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysPost extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 岗位序号 */
|
||||
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
|
||||
private Long postId;
|
||||
|
||||
/** 岗位编码 */
|
||||
@Excel(name = "岗位编码")
|
||||
private String postCode;
|
||||
|
||||
/** 岗位名称 */
|
||||
@Excel(name = "岗位名称")
|
||||
private String postName;
|
||||
|
||||
/** 岗位排序 */
|
||||
@Excel(name = "岗位排序")
|
||||
private Integer postSort;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 用户是否存在此岗位标识 默认不存在 */
|
||||
private boolean flag = false;
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位编码不能为空")
|
||||
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
|
||||
public String getPostCode()
|
||||
{
|
||||
return postCode;
|
||||
}
|
||||
|
||||
public void setPostCode(String postCode)
|
||||
{
|
||||
this.postCode = postCode;
|
||||
}
|
||||
|
||||
@NotBlank(message = "岗位名称不能为空")
|
||||
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
|
||||
public String getPostName()
|
||||
{
|
||||
return postName;
|
||||
}
|
||||
|
||||
public void setPostName(String postName)
|
||||
{
|
||||
this.postName = postName;
|
||||
}
|
||||
|
||||
@NotNull(message = "显示顺序不能为空")
|
||||
public Integer getPostSort()
|
||||
{
|
||||
return postSort;
|
||||
}
|
||||
|
||||
public void setPostSort(Integer postSort)
|
||||
{
|
||||
this.postSort = postSort;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public boolean isFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(boolean flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("postId", getPostId())
|
||||
.append("postCode", getPostCode())
|
||||
.append("postName", getPostName())
|
||||
.append("postSort", getPostSort())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和部门关联 sys_role_dept
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleDept
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 部门ID */
|
||||
private Long deptId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 角色和菜单关联 sys_role_menu
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysRoleMenu
|
||||
{
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** 菜单ID */
|
||||
private Long menuId;
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getMenuId()
|
||||
{
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(Long menuId)
|
||||
{
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("roleId", getRoleId())
|
||||
.append("menuId", getMenuId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,113 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
/**
|
||||
* 当前在线会话
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserOnline
|
||||
{
|
||||
/** 会话编号 */
|
||||
private String tokenId;
|
||||
|
||||
/** 部门名称 */
|
||||
private String deptName;
|
||||
|
||||
/** 用户名称 */
|
||||
private String userName;
|
||||
|
||||
/** 登录IP地址 */
|
||||
private String ipaddr;
|
||||
|
||||
/** 登录地址 */
|
||||
private String loginLocation;
|
||||
|
||||
/** 浏览器类型 */
|
||||
private String browser;
|
||||
|
||||
/** 操作系统 */
|
||||
private String os;
|
||||
|
||||
/** 登录时间 */
|
||||
private Long loginTime;
|
||||
|
||||
public String getTokenId()
|
||||
{
|
||||
return tokenId;
|
||||
}
|
||||
|
||||
public void setTokenId(String tokenId)
|
||||
{
|
||||
this.tokenId = tokenId;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getIpaddr()
|
||||
{
|
||||
return ipaddr;
|
||||
}
|
||||
|
||||
public void setIpaddr(String ipaddr)
|
||||
{
|
||||
this.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
public String getLoginLocation()
|
||||
{
|
||||
return loginLocation;
|
||||
}
|
||||
|
||||
public void setLoginLocation(String loginLocation)
|
||||
{
|
||||
this.loginLocation = loginLocation;
|
||||
}
|
||||
|
||||
public String getBrowser()
|
||||
{
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser)
|
||||
{
|
||||
this.browser = browser;
|
||||
}
|
||||
|
||||
public String getOs()
|
||||
{
|
||||
return os;
|
||||
}
|
||||
|
||||
public void setOs(String os)
|
||||
{
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public Long getLoginTime()
|
||||
{
|
||||
return loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(Long loginTime)
|
||||
{
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和岗位关联 sys_user_post
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserPost
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 岗位ID */
|
||||
private Long postId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getPostId()
|
||||
{
|
||||
return postId;
|
||||
}
|
||||
|
||||
public void setPostId(Long postId)
|
||||
{
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("postId", getPostId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 用户和角色关联 sys_user_role
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class SysUserRole
|
||||
{
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getRoleId()
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userId", getUserId())
|
||||
.append("roleId", getRoleId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,146 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 视频设备对象 video_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public class VideoInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一标识 */
|
||||
private Long id;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String sn;
|
||||
|
||||
/** 所在网关 */
|
||||
@Excel(name = "所在网关")
|
||||
private String gateway;
|
||||
|
||||
/** 摄像头索引 */
|
||||
@Excel(name = "摄像头索引")
|
||||
private String cameraIndex;
|
||||
|
||||
/** 视频索引 */
|
||||
@Excel(name = "视频索引")
|
||||
private String videoIndex;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 设备类型 */
|
||||
@Excel(name = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
/** 在飞机的索引(飞机独有) */
|
||||
@Excel(name = "在飞机的索引(飞机独有)")
|
||||
private String flyIndex;
|
||||
|
||||
public String getBusinessName() {
|
||||
return businessName;
|
||||
}
|
||||
|
||||
public void setBusinessName(String businessName) {
|
||||
this.businessName = businessName;
|
||||
}
|
||||
|
||||
@Excel(name = "业务名称")
|
||||
private String businessName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setSn(String sn)
|
||||
{
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn()
|
||||
{
|
||||
return sn;
|
||||
}
|
||||
public void setGateway(String gateway)
|
||||
{
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getGateway()
|
||||
{
|
||||
return gateway;
|
||||
}
|
||||
public void setCameraIndex(String cameraIndex)
|
||||
{
|
||||
this.cameraIndex = cameraIndex;
|
||||
}
|
||||
|
||||
public String getCameraIndex()
|
||||
{
|
||||
return cameraIndex;
|
||||
}
|
||||
public void setVideoIndex(String videoIndex)
|
||||
{
|
||||
this.videoIndex = videoIndex;
|
||||
}
|
||||
|
||||
public String getVideoIndex()
|
||||
{
|
||||
return videoIndex;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setDeviceType(String deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public void setFlyIndex(String flyIndex)
|
||||
{
|
||||
this.flyIndex = flyIndex;
|
||||
}
|
||||
|
||||
public String getFlyIndex()
|
||||
{
|
||||
return flyIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sn", getSn())
|
||||
.append("gateway", getGateway())
|
||||
.append("cameraIndex", getCameraIndex())
|
||||
.append("videoIndex", getVideoIndex())
|
||||
.append("type", getType())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("flyIndex", getFlyIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 路由显示信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class MetaVo
|
||||
{
|
||||
/**
|
||||
* 设置该路由在侧边栏和面包屑中展示的名字
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 设置该路由的图标,对应路径src/assets/icons/svg
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 设置为true,则不会被 <keep-alive>缓存
|
||||
*/
|
||||
private boolean noCache;
|
||||
|
||||
/**
|
||||
* 内链地址(http(s)://开头)
|
||||
*/
|
||||
private String link;
|
||||
|
||||
public MetaVo()
|
||||
{
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, boolean noCache)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.noCache = noCache;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, String link)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.link = link;
|
||||
}
|
||||
|
||||
public MetaVo(String title, String icon, boolean noCache, String link)
|
||||
{
|
||||
this.title = title;
|
||||
this.icon = icon;
|
||||
this.noCache = noCache;
|
||||
if (StringUtils.ishttp(link))
|
||||
{
|
||||
this.link = link;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isNoCache()
|
||||
{
|
||||
return noCache;
|
||||
}
|
||||
|
||||
public void setNoCache(boolean noCache)
|
||||
{
|
||||
this.noCache = noCache;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getIcon()
|
||||
{
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon)
|
||||
{
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getLink()
|
||||
{
|
||||
return link;
|
||||
}
|
||||
|
||||
public void setLink(String link)
|
||||
{
|
||||
this.link = link;
|
||||
}
|
||||
}
|
@ -0,0 +1,148 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 路由配置信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
public class RouterVo
|
||||
{
|
||||
/**
|
||||
* 路由名字
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 路由地址
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
|
||||
*/
|
||||
private boolean hidden;
|
||||
|
||||
/**
|
||||
* 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
|
||||
*/
|
||||
private String redirect;
|
||||
|
||||
/**
|
||||
* 组件地址
|
||||
*/
|
||||
private String component;
|
||||
|
||||
/**
|
||||
* 路由参数:如 {"id": 1, "name": "ry"}
|
||||
*/
|
||||
private String query;
|
||||
|
||||
/**
|
||||
* 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
|
||||
*/
|
||||
private Boolean alwaysShow;
|
||||
|
||||
/**
|
||||
* 其他元素
|
||||
*/
|
||||
private MetaVo meta;
|
||||
|
||||
/**
|
||||
* 子路由
|
||||
*/
|
||||
private List<RouterVo> children;
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path)
|
||||
{
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public boolean getHidden()
|
||||
{
|
||||
return hidden;
|
||||
}
|
||||
|
||||
public void setHidden(boolean hidden)
|
||||
{
|
||||
this.hidden = hidden;
|
||||
}
|
||||
|
||||
public String getRedirect()
|
||||
{
|
||||
return redirect;
|
||||
}
|
||||
|
||||
public void setRedirect(String redirect)
|
||||
{
|
||||
this.redirect = redirect;
|
||||
}
|
||||
|
||||
public String getComponent()
|
||||
{
|
||||
return component;
|
||||
}
|
||||
|
||||
public void setComponent(String component)
|
||||
{
|
||||
this.component = component;
|
||||
}
|
||||
|
||||
public String getQuery()
|
||||
{
|
||||
return query;
|
||||
}
|
||||
|
||||
public void setQuery(String query)
|
||||
{
|
||||
this.query = query;
|
||||
}
|
||||
|
||||
public Boolean getAlwaysShow()
|
||||
{
|
||||
return alwaysShow;
|
||||
}
|
||||
|
||||
public void setAlwaysShow(Boolean alwaysShow)
|
||||
{
|
||||
this.alwaysShow = alwaysShow;
|
||||
}
|
||||
|
||||
public MetaVo getMeta()
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
|
||||
public void setMeta(MetaVo meta)
|
||||
{
|
||||
this.meta = meta;
|
||||
}
|
||||
|
||||
public List<RouterVo> getChildren()
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<RouterVo> children)
|
||||
{
|
||||
this.children = children;
|
||||
}
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 视频设备对象 video_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-09
|
||||
*/
|
||||
@ApiModel(value = "直播相关参数")
|
||||
public class VideoInfoVo {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
@ApiModelProperty("设备序列号")
|
||||
@Excel(name = "设备序列号")
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 摄像头索引
|
||||
*/
|
||||
@ApiModelProperty("摄像头索引")
|
||||
@Excel(name = "摄像头索引")
|
||||
private String cameraIndex;
|
||||
|
||||
/**
|
||||
* 视频索引
|
||||
*/
|
||||
@ApiModelProperty("视频索引")
|
||||
@Excel(name = "视频索引")
|
||||
private String videoIndex;
|
||||
|
||||
@ApiModelProperty("清晰度")
|
||||
@Excel(name = "清晰度")
|
||||
private Integer definition;
|
||||
|
||||
@ApiModelProperty("视频服务器主机")
|
||||
private String host;
|
||||
@ApiModelProperty("rtmp端口")
|
||||
private String rtmpPort;
|
||||
@ApiModelProperty("webrtc端口")
|
||||
private String rtcPort;
|
||||
|
||||
public String getHost() {
|
||||
return host;
|
||||
}
|
||||
|
||||
public void setHost(String host) {
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
public String getRtmpPort() {
|
||||
return rtmpPort;
|
||||
}
|
||||
|
||||
public void setRtmpPort(String rtmpPort) {
|
||||
this.rtmpPort = rtmpPort;
|
||||
}
|
||||
|
||||
public String getRtcPort() {
|
||||
return rtcPort;
|
||||
}
|
||||
|
||||
public void setRtcPort(String rtcPort) {
|
||||
this.rtcPort = rtcPort;
|
||||
}
|
||||
|
||||
public Integer getDefinition() {
|
||||
return definition;
|
||||
}
|
||||
|
||||
public void setDefinition(Integer definition) {
|
||||
this.definition = definition;
|
||||
}
|
||||
|
||||
|
||||
public String getGateway() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
@ApiModelProperty("网关")
|
||||
@Excel(name = "网关")
|
||||
private String gateway;
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setCameraIndex(String cameraIndex) {
|
||||
this.cameraIndex = cameraIndex;
|
||||
}
|
||||
|
||||
public String getCameraIndex() {
|
||||
return cameraIndex;
|
||||
}
|
||||
|
||||
public void setVideoIndex(String videoIndex) {
|
||||
this.videoIndex = videoIndex;
|
||||
}
|
||||
|
||||
public String getVideoIndex() {
|
||||
return videoIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sn", getSn())
|
||||
.append("cameraIndex", getCameraIndex())
|
||||
.append("videoIndex", getVideoIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.ruoyi.system.dto;
|
||||
|
||||
/**
|
||||
* @auther 周志雄
|
||||
* @date 2024/9/5 11:07
|
||||
*/
|
||||
public class DroneMark {
|
||||
private String type;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getBusinessName() {
|
||||
return BusinessName;
|
||||
}
|
||||
|
||||
public void setBusinessName(String businessName) {
|
||||
BusinessName = businessName;
|
||||
}
|
||||
|
||||
private String BusinessName;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.system.dto;
|
||||
|
||||
import com.ruoyi.system.domain.DroneMissions;
|
||||
|
||||
/**
|
||||
* @auther 周志雄
|
||||
* @date 2024/7/23 15:04
|
||||
*/
|
||||
public class DroneMissionsVo extends DroneMissions {
|
||||
private String waylineName;
|
||||
|
||||
public String getWaylineName() {
|
||||
return waylineName;
|
||||
}
|
||||
|
||||
public void setWaylineName(String waylineName) {
|
||||
this.waylineName = waylineName;
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.ruoyi.system.dto;
|
||||
|
||||
import com.ruoyi.system.domain.FlightTasks;
|
||||
|
||||
/**
|
||||
* @auther 周志雄
|
||||
* @date 2024/7/24 10:41
|
||||
*/
|
||||
public class FlightTasksVo extends FlightTasks {
|
||||
private String missionName;
|
||||
private Integer photoNum;
|
||||
private Integer waylineType;
|
||||
private String waylineLen;
|
||||
private String waylineName;
|
||||
|
||||
public String getMissionName() {
|
||||
return missionName;
|
||||
}
|
||||
|
||||
public void setMissionName(String missionName) {
|
||||
this.missionName = missionName;
|
||||
}
|
||||
|
||||
public Integer getPhotoNum() {
|
||||
return photoNum;
|
||||
}
|
||||
|
||||
public void setPhotoNum(Integer photoNum) {
|
||||
this.photoNum = photoNum;
|
||||
}
|
||||
|
||||
public Integer getWaylineType() {
|
||||
return waylineType;
|
||||
}
|
||||
|
||||
public void setWaylineType(Integer waylineType) {
|
||||
this.waylineType = waylineType;
|
||||
}
|
||||
|
||||
public String getWaylineLen() {
|
||||
return waylineLen;
|
||||
}
|
||||
|
||||
public void setWaylineLen(String waylineLen) {
|
||||
this.waylineLen = waylineLen;
|
||||
}
|
||||
|
||||
public String getWaylineName() {
|
||||
return waylineName;
|
||||
}
|
||||
|
||||
public void setWaylineName(String waylineName) {
|
||||
this.waylineName = waylineName;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.ruoyi.system.dto;
|
||||
|
||||
import com.ruoyi.system.domain.Missions;
|
||||
|
||||
/**
|
||||
* @auther 周志雄
|
||||
* @date 2024/9/18 10:40
|
||||
*/
|
||||
public class MissionsDto extends Missions {
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
private String fileName;
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
private String deviceName;
|
||||
private String points;
|
||||
|
||||
public String getPoints() {
|
||||
return points;
|
||||
}
|
||||
|
||||
public void setPoints(String points) {
|
||||
this.points = points;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.ruoyi.system.dto;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @auther 周志雄
|
||||
* @date 2024/9/18 10:37
|
||||
*/
|
||||
public class MissionsListDto {
|
||||
private String gateway;
|
||||
private String startTime;
|
||||
private String endTime;
|
||||
private String type;
|
||||
private String state;
|
||||
private String name;
|
||||
|
||||
public String getGateway() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
public void setGateway(String gateway) {
|
||||
this.gateway = gateway;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.Drone;
|
||||
|
||||
/**
|
||||
* 无人机信息Mapper接口
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public interface DroneMapper {
|
||||
/**
|
||||
* 查询无人机信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 无人机信息
|
||||
*/
|
||||
public Drone selectDroneById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机信息列表
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 无人机信息集合
|
||||
*/
|
||||
public List<Drone> selectDroneList(Drone drone);
|
||||
|
||||
/**
|
||||
* 新增无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDrone(Drone drone);
|
||||
|
||||
/**
|
||||
* 修改无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDrone(Drone drone);
|
||||
|
||||
/**
|
||||
* 删除无人机信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除无人机信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据设备sn查询无人机信息
|
||||
*
|
||||
* @param deviceSn
|
||||
* @return
|
||||
*/
|
||||
Drone selectDroneBySn(String deviceSn);
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.DroneMissions;
|
||||
import com.ruoyi.system.dto.DroneMissionsVo;
|
||||
|
||||
/**
|
||||
* 无人机任务Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface DroneMissionsMapper {
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
public DroneMissions selectDroneMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 无人机任务集合
|
||||
*/
|
||||
public List<DroneMissions> selectDroneMissionsList(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDroneMissions(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDroneMissions(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 删除无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneMissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据条件查询无人机任务
|
||||
*
|
||||
* @param flightId
|
||||
* @return
|
||||
*/
|
||||
DroneMissions selectDroneMissionsByCondition(String flightId);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param droneMissions
|
||||
* @return
|
||||
*/
|
||||
List<DroneMissionsVo> selectDroneMissionsVoList(DroneMissions droneMissions);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.FlightPaths;
|
||||
|
||||
/**
|
||||
* 航线文件信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
public interface FlightPathsMapper
|
||||
{
|
||||
/**
|
||||
* 查询航线文件信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 航线文件信息
|
||||
*/
|
||||
public FlightPaths selectFlightPathsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询航线文件信息列表
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 航线文件信息集合
|
||||
*/
|
||||
public List<FlightPaths> selectFlightPathsList(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 新增航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFlightPaths(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 修改航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFlightPaths(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 删除航线文件信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightPathsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除航线文件信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightPathsByIds(Long[] ids);
|
||||
|
||||
List<FlightPaths> selectByCondition(FlightPaths flightPaths);
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.FlightTasks;
|
||||
import com.ruoyi.system.dto.FlightTasksVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 任务Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface FlightTasksMapper {
|
||||
/**
|
||||
* 查询任务
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 任务
|
||||
*/
|
||||
public FlightTasks selectFlightTasksById(Long id);
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 任务集合
|
||||
*/
|
||||
public List<FlightTasks> selectFlightTasksList(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFlightTasks(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 修改任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFlightTasks(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 删除任务
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightTasksById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除任务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightTasksByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param flightTasks
|
||||
* @return
|
||||
*/
|
||||
List<FlightTasksVo> selectFlightTasksVoList(FlightTasks flightTasks);
|
||||
|
||||
void updateFlightTasksStatus(@Param("flightId") String flightId, @Param("status") String status, @Param("updateTime") Date updateTime);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.GatewayOperationLog;
|
||||
|
||||
/**
|
||||
* 网关操作日志Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
public interface GatewayOperationLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询网关操作日志
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 网关操作日志
|
||||
*/
|
||||
public GatewayOperationLog selectGatewayOperationLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网关操作日志列表
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 网关操作日志集合
|
||||
*/
|
||||
public List<GatewayOperationLog> selectGatewayOperationLogList(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 新增网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGatewayOperationLog(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 修改网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGatewayOperationLog(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 删除网关操作日志
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGatewayOperationLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网关操作日志
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGatewayOperationLogByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.ManageDeviceDictionary;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* Device product enumMapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
public interface ManageDeviceDictionaryMapper
|
||||
{
|
||||
/**
|
||||
* 查询Device product enum
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return Device product enum
|
||||
*/
|
||||
public ManageDeviceDictionary selectManageDeviceDictionaryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询Device product enum列表
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return Device product enum集合
|
||||
*/
|
||||
public List<ManageDeviceDictionary> selectManageDeviceDictionaryList(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 新增Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 修改Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 删除Device product enum
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteManageDeviceDictionaryById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除Device product enum
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteManageDeviceDictionaryByIds(Integer[] ids);
|
||||
|
||||
ManageDeviceDictionary selectManageDeviceDictionaryByCondition(@Param("domain") String s, @Param("deviceType")String s1, @Param("subType")String s2);
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.MinioFile;
|
||||
|
||||
/**
|
||||
* minio文件存储Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
public interface MinioFileMapper {
|
||||
/**
|
||||
* 查询minio文件存储
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return minio文件存储
|
||||
*/
|
||||
public MinioFile selectMinioFileById(Long id);
|
||||
|
||||
/**
|
||||
* 查询minio文件存储列表
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return minio文件存储集合
|
||||
*/
|
||||
public List<MinioFile> selectMinioFileList(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 新增minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMinioFile(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 修改minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMinioFile(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 删除minio文件存储
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMinioFileById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除minio文件存储
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMinioFileByIds(Long[] ids);
|
||||
|
||||
|
||||
/**
|
||||
* 根据文件名查询
|
||||
*
|
||||
* @param fileName
|
||||
* @return
|
||||
*/
|
||||
MinioFile selectMinioFileName(String fileName);
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.Missions;
|
||||
import com.ruoyi.system.dto.MissionsDto;
|
||||
import com.ruoyi.system.dto.MissionsListDto;
|
||||
|
||||
/**
|
||||
* 无人机任务Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
public interface MissionsMapper {
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
public Missions selectMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 无人机任务集合
|
||||
*/
|
||||
public List<Missions> selectMissionsList(Missions missions);
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMissions(Missions missions);
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMissions(Missions missions);
|
||||
|
||||
/**
|
||||
* 删除无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param missionListDto
|
||||
* @return
|
||||
*/
|
||||
List<MissionsDto> list(MissionsListDto missionListDto);
|
||||
|
||||
void updateMissionsByFlightId(Missions missions);
|
||||
|
||||
MissionsDto getLatest(String gateway);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.OneClickTakeoff;
|
||||
|
||||
/**
|
||||
* 一键起飞Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface OneClickTakeoffMapper
|
||||
{
|
||||
/**
|
||||
* 查询一键起飞
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 一键起飞
|
||||
*/
|
||||
public OneClickTakeoff selectOneClickTakeoffById(Long id);
|
||||
|
||||
/**
|
||||
* 查询一键起飞列表
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 一键起飞集合
|
||||
*/
|
||||
public List<OneClickTakeoff> selectOneClickTakeoffList(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 新增一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOneClickTakeoff(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 修改一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOneClickTakeoff(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 删除一键起飞
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOneClickTakeoffById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除一键起飞
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOneClickTakeoffByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.ScheduleTask;
|
||||
|
||||
/**
|
||||
* 任务定时执行Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface ScheduleTaskMapper
|
||||
{
|
||||
/**
|
||||
* 查询任务定时执行
|
||||
*
|
||||
* @param id 任务定时执行主键
|
||||
* @return 任务定时执行
|
||||
*/
|
||||
public ScheduleTask selectScheduleTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 查询任务定时执行列表
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 任务定时执行集合
|
||||
*/
|
||||
public List<ScheduleTask> selectScheduleTaskList(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 新增任务定时执行
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScheduleTask(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 修改任务定时执行
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScheduleTask(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 删除任务定时执行
|
||||
*
|
||||
* @param id 任务定时执行主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除任务定时执行
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleTaskByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysConfigMapper
|
||||
{
|
||||
/**
|
||||
* 查询参数配置信息
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig selectConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 通过ID查询配置
|
||||
*
|
||||
* @param configId 参数ID
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig selectConfigById(Long configId);
|
||||
|
||||
/**
|
||||
* 查询参数配置列表
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置集合
|
||||
*/
|
||||
public List<SysConfig> selectConfigList(SysConfig config);
|
||||
|
||||
/**
|
||||
* 根据键名查询参数配置信息
|
||||
*
|
||||
* @param configKey 参数键名
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig checkConfigKeyUnique(String configKey);
|
||||
|
||||
/**
|
||||
* 新增参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 修改参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 删除参数配置
|
||||
*
|
||||
* @param configId 参数ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteConfigById(Long configId);
|
||||
|
||||
/**
|
||||
* 批量删除参数信息
|
||||
*
|
||||
* @param configIds 需要删除的参数ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteConfigByIds(Long[] configIds);
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
|
||||
/**
|
||||
* 部门管理 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDeptMapper
|
||||
{
|
||||
/**
|
||||
* 查询部门管理数据
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 部门信息集合
|
||||
*/
|
||||
public List<SysDept> selectDeptList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询部门树信息
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param deptCheckStrictly 部门树选择项是否关联显示
|
||||
* @return 选中部门列表
|
||||
*/
|
||||
public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
||||
|
||||
/**
|
||||
* 根据部门ID查询信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门信息
|
||||
*/
|
||||
public SysDept selectDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门列表
|
||||
*/
|
||||
public List<SysDept> selectChildrenDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门(正常状态)
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 子部门数
|
||||
*/
|
||||
public int selectNormalChildrenDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 是否存在子节点
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int hasChildByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询部门是否存在用户
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int checkDeptExistUser(Long deptId);
|
||||
|
||||
/**
|
||||
* 校验部门名称是否唯一
|
||||
*
|
||||
* @param deptName 部门名称
|
||||
* @param parentId 父部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
||||
|
||||
/**
|
||||
* 新增部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改所在部门正常状态
|
||||
*
|
||||
* @param deptIds 部门ID组
|
||||
*/
|
||||
public void updateDeptStatusNormal(Long[] deptIds);
|
||||
|
||||
/**
|
||||
* 修改子元素关系
|
||||
*
|
||||
* @param depts 子元素
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
||||
|
||||
/**
|
||||
* 删除部门管理信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeptById(Long deptId);
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDictDataMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典数据
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataList(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 根据字典类型和字典键值查询字典数据信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @param dictValue 字典键值
|
||||
* @return 字典标签
|
||||
*/
|
||||
public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
|
||||
|
||||
/**
|
||||
* 根据字典数据ID查询信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 字典数据
|
||||
*/
|
||||
public SysDictData selectDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据
|
||||
*/
|
||||
public int countDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 通过字典ID删除字典数据信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 批量删除字典数据信息
|
||||
*
|
||||
* @param dictCodes 需要删除的字典数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictDataByIds(Long[] dictCodes);
|
||||
|
||||
/**
|
||||
* 新增字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 修改字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 同步修改字典类型
|
||||
*
|
||||
* @param oldDictType 旧字典类型
|
||||
* @param newDictType 新旧字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictType;
|
||||
|
||||
/**
|
||||
* 字典表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDictTypeMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典类型
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeList(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 根据所有字典类型
|
||||
*
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeAll();
|
||||
|
||||
/**
|
||||
* 根据字典类型ID查询信息
|
||||
*
|
||||
* @param dictId 字典类型ID
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeByType(String dictType);
|
||||
|
||||
/**
|
||||
* 通过字典ID删除字典信息
|
||||
*
|
||||
* @param dictId 字典ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 批量删除字典类型信息
|
||||
*
|
||||
* @param dictIds 需要删除的字典ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDictTypeByIds(Long[] dictIds);
|
||||
|
||||
/**
|
||||
* 新增字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 修改字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 校验字典类型称是否唯一
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public SysDictType checkDictTypeUnique(String dictType);
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysLogininforMapper
|
||||
{
|
||||
/**
|
||||
* 新增系统登录日志
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
*/
|
||||
public void insertLogininfor(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 查询系统登录日志集合
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
* @return 登录记录集合
|
||||
*/
|
||||
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 批量删除系统登录日志
|
||||
*
|
||||
* @param infoIds 需要删除的登录日志ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLogininforByIds(Long[] infoIds);
|
||||
|
||||
/**
|
||||
* 清空系统登录日志
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
public int cleanLogininfor();
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.common.core.domain.entity.SysMenu;
|
||||
|
||||
/**
|
||||
* 菜单表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysMenuMapper
|
||||
{
|
||||
/**
|
||||
* 查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuList(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 根据用户所有权限
|
||||
*
|
||||
* @return 权限列表
|
||||
*/
|
||||
public List<String> selectMenuPerms();
|
||||
|
||||
/**
|
||||
* 根据用户查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuListByUserId(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询权限
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public List<String> selectMenuPermsByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public List<String> selectMenuPermsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询菜单
|
||||
*
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuTreeAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID查询菜单
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuTreeByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询菜单树信息
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param menuCheckStrictly 菜单树选择项是否关联显示
|
||||
* @return 选中菜单列表
|
||||
*/
|
||||
public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
|
||||
|
||||
/**
|
||||
* 根据菜单ID查询信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 菜单信息
|
||||
*/
|
||||
public SysMenu selectMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 是否存在菜单子节点
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int hasChildByMenuId(Long menuId);
|
||||
|
||||
/**
|
||||
* 新增菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 修改菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 删除菜单管理信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 校验菜单名称是否唯一
|
||||
*
|
||||
* @param menuName 菜单名称
|
||||
* @param parentId 父菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 通知公告表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysNoticeMapper
|
||||
{
|
||||
/**
|
||||
* 查询公告信息
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 公告信息
|
||||
*/
|
||||
public SysNotice selectNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 查询公告列表
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 公告集合
|
||||
*/
|
||||
public List<SysNotice> selectNoticeList(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 修改公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 批量删除公告
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 批量删除公告信息
|
||||
*
|
||||
* @param noticeIds 需要删除的公告ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeByIds(Long[] noticeIds);
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysOperLogMapper
|
||||
{
|
||||
/**
|
||||
* 新增操作日志
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
*/
|
||||
public void insertOperlog(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 查询系统操作日志集合
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 批量删除系统操作日志
|
||||
*
|
||||
* @param operIds 需要删除的操作日志ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOperLogByIds(Long[] operIds);
|
||||
|
||||
/**
|
||||
* 查询操作日志详细
|
||||
*
|
||||
* @param operId 操作ID
|
||||
* @return 操作日志对象
|
||||
*/
|
||||
public SysOperLog selectOperLogById(Long operId);
|
||||
|
||||
/**
|
||||
* 清空操作日志
|
||||
*/
|
||||
public void cleanOperLog();
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysPostMapper
|
||||
{
|
||||
/**
|
||||
* 查询岗位数据集合
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 岗位数据集合
|
||||
*/
|
||||
public List<SysPost> selectPostList(SysPost post);
|
||||
|
||||
/**
|
||||
* 查询所有岗位
|
||||
*
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostAll();
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysPost selectPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 根据用户ID获取岗位选择框列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 选中岗位ID列表
|
||||
*/
|
||||
public List<Long> selectPostListByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询用户所属岗位组
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 结果
|
||||
*/
|
||||
public List<SysPost> selectPostsByUserName(String userName);
|
||||
|
||||
/**
|
||||
* 删除岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除岗位信息
|
||||
*
|
||||
* @param postIds 需要删除的岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePostByIds(Long[] postIds);
|
||||
|
||||
/**
|
||||
* 修改岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePost(SysPost post);
|
||||
|
||||
/**
|
||||
* 新增岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPost(SysPost post);
|
||||
|
||||
/**
|
||||
* 校验岗位名称
|
||||
*
|
||||
* @param postName 岗位名称
|
||||
* @return 结果
|
||||
*/
|
||||
public SysPost checkPostNameUnique(String postName);
|
||||
|
||||
/**
|
||||
* 校验岗位编码
|
||||
*
|
||||
* @param postCode 岗位编码
|
||||
* @return 结果
|
||||
*/
|
||||
public SysPost checkPostCodeUnique(String postCode);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysRoleDept;
|
||||
|
||||
/**
|
||||
* 角色与部门关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleDeptMapper
|
||||
{
|
||||
/**
|
||||
* 通过角色ID删除角色和部门关联
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleDeptByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色部门关联信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleDept(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询部门使用数量
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCountRoleDeptByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 批量新增角色部门信息
|
||||
*
|
||||
* @param roleDeptList 角色部门列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchRoleDept(List<SysRoleDept> roleDeptList);
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
|
||||
/**
|
||||
* 角色表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询角色数据
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 角色数据集合信息
|
||||
*/
|
||||
public List<SysRole> selectRoleList(SysRole role);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRolePermissionByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询所有角色
|
||||
*
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRoleAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID获取角色选择框列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 选中角色ID列表
|
||||
*/
|
||||
public List<Long> selectRoleListByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysRole selectRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRolesByUserName(String userName);
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
* @param roleName 角色名称
|
||||
* @return 角色信息
|
||||
*/
|
||||
public SysRole checkRoleNameUnique(String roleName);
|
||||
|
||||
/**
|
||||
* 校验角色权限是否唯一
|
||||
*
|
||||
* @param roleKey 角色权限
|
||||
* @return 角色信息
|
||||
*/
|
||||
public SysRole checkRoleKeyUnique(String roleKey);
|
||||
|
||||
/**
|
||||
* 修改角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 新增角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 通过角色ID删除角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色信息
|
||||
*
|
||||
* @param roleIds 需要删除的角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleByIds(Long[] roleIds);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysRoleMenu;
|
||||
|
||||
/**
|
||||
* 角色与菜单关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysRoleMenuMapper
|
||||
{
|
||||
/**
|
||||
* 查询菜单使用数量
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int checkMenuExistRole(Long menuId);
|
||||
|
||||
/**
|
||||
* 通过角色ID删除角色和菜单关联
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleMenuByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色菜单关联信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleMenu(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增角色菜单信息
|
||||
*
|
||||
* @param roleMenuList 角色菜单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
|
||||
/**
|
||||
* 用户表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserMapper
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询用户列表
|
||||
*
|
||||
* @param sysUser 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUserList(SysUser sysUser);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询已配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectAllocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询未分配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUnallocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 通过用户名查询用户
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserByUserName(String userName);
|
||||
|
||||
/**
|
||||
* 通过用户ID查询用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 新增用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 修改用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 修改用户头像
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param avatar 头像地址
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
|
||||
|
||||
/**
|
||||
* 重置用户密码
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param password 密码
|
||||
* @return 结果
|
||||
*/
|
||||
public int resetUserPwd(@Param("userName") String userName, @Param("password") String password);
|
||||
|
||||
/**
|
||||
* 通过用户ID删除用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除用户信息
|
||||
*
|
||||
* @param userIds 需要删除的用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserByIds(Long[] userIds);
|
||||
|
||||
/**
|
||||
* 校验用户名称是否唯一
|
||||
*
|
||||
* @param userName 用户名称
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkUserNameUnique(String userName);
|
||||
|
||||
/**
|
||||
* 校验手机号码是否唯一
|
||||
*
|
||||
* @param phonenumber 手机号码
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkPhoneUnique(String phonenumber);
|
||||
|
||||
/**
|
||||
* 校验email是否唯一
|
||||
*
|
||||
* @param email 用户邮箱
|
||||
* @return 结果
|
||||
*/
|
||||
public SysUser checkEmailUnique(String email);
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysUserPost;
|
||||
|
||||
/**
|
||||
* 用户与岗位关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserPostMapper
|
||||
{
|
||||
/**
|
||||
* 通过用户ID删除用户和岗位关联
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserPostByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位使用数量
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除用户和岗位关联
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserPost(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增用户岗位信息
|
||||
*
|
||||
* @param userPostList 用户岗位列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchUserPost(List<SysUserPost> userPostList);
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.ruoyi.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 用户与角色关联表 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysUserRoleMapper
|
||||
{
|
||||
/**
|
||||
* 通过用户ID删除用户和角色关联
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除用户和角色关联
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRole(Long[] ids);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色使用数量
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserRoleByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量新增用户角色信息
|
||||
*
|
||||
* @param userRoleList 用户角色列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchUserRole(List<SysUserRole> userRoleList);
|
||||
|
||||
/**
|
||||
* 删除用户和角色关联信息
|
||||
*
|
||||
* @param userRole 用户和角色关联信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleInfo(SysUserRole userRole);
|
||||
|
||||
/**
|
||||
* 批量取消授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要删除的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.VideoInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 视频设备Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public interface VideoInfoMapper {
|
||||
/**
|
||||
* 查询视频设备
|
||||
*
|
||||
* @param id 视频设备主键
|
||||
* @return 视频设备
|
||||
*/
|
||||
public VideoInfo selectVideoInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询视频设备列表
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 视频设备集合
|
||||
*/
|
||||
public List<VideoInfo> selectVideoInfoList(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 新增视频设备
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 修改视频设备
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 删除视频设备
|
||||
*
|
||||
* @param id 视频设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVideoInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除视频设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVideoInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询视频设备
|
||||
*
|
||||
* @param videoInfo
|
||||
* @return
|
||||
*/
|
||||
VideoInfo findVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 根据网关查询视频设备
|
||||
*
|
||||
* @param gateway
|
||||
* @return
|
||||
*/
|
||||
List<VideoInfo> findVideoInfoByGateway(String gateway);
|
||||
|
||||
/**
|
||||
* 根据网关和条件查询视频设备
|
||||
*
|
||||
* @param gateway
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
VideoInfo selectVideoByCondition(@Param("gateway") String gateway, @Param("condition") String condition);
|
||||
|
||||
/**
|
||||
* 根据SN查询视频设备
|
||||
*
|
||||
* @param sn
|
||||
* @return
|
||||
*/
|
||||
VideoInfo selectGatewayByCondition(String sn);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.DroneMissions;
|
||||
import com.ruoyi.system.dto.DroneMissionsVo;
|
||||
|
||||
/**
|
||||
* 无人机任务Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface IDroneMissionsService {
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
public DroneMissions selectDroneMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 无人机任务集合
|
||||
*/
|
||||
public List<DroneMissions> selectDroneMissionsList(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDroneMissions(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDroneMissions(DroneMissions droneMissions);
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的无人机任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneMissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除无人机任务信息
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 根据条件查询无人机任务
|
||||
*
|
||||
* @param flightId
|
||||
* @return
|
||||
*/
|
||||
DroneMissions selectDroneMissionsByCondition(String flightId);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param droneMissions
|
||||
* @return
|
||||
*/
|
||||
List<DroneMissionsVo> selectDroneMissionsVoList(DroneMissions droneMissions);
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.Drone;
|
||||
|
||||
/**
|
||||
* 无人机信息Service接口
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public interface IDroneService {
|
||||
/**
|
||||
* 查询无人机信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 无人机信息
|
||||
*/
|
||||
public Drone selectDroneById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机信息列表
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 无人机信息集合
|
||||
*/
|
||||
public List<Drone> selectDroneList(Drone drone);
|
||||
|
||||
/**
|
||||
* 新增无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDrone(Drone drone);
|
||||
|
||||
/**
|
||||
* 修改无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDrone(Drone drone);
|
||||
|
||||
/**
|
||||
* 批量删除无人机信息
|
||||
*
|
||||
* @param ids 需要删除的无人机信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除无人机信息信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDroneById(Long id);
|
||||
|
||||
/**
|
||||
* 根据设备sn查询无人机信息
|
||||
*
|
||||
* @param deviceSn
|
||||
* @return
|
||||
*/
|
||||
Drone selectDroneBySn(String deviceSn);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.FlightPaths;
|
||||
|
||||
/**
|
||||
* 航线文件信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
public interface IFlightPathsService
|
||||
{
|
||||
/**
|
||||
* 查询航线文件信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 航线文件信息
|
||||
*/
|
||||
public FlightPaths selectFlightPathsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询航线文件信息列表
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 航线文件信息集合
|
||||
*/
|
||||
public List<FlightPaths> selectFlightPathsList(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 新增航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFlightPaths(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 修改航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFlightPaths(FlightPaths flightPaths);
|
||||
|
||||
/**
|
||||
* 批量删除航线文件信息
|
||||
*
|
||||
* @param ids 需要删除的航线文件信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightPathsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除航线文件信息信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightPathsById(Long id);
|
||||
|
||||
List<FlightPaths> selectByCondition(FlightPaths flightPaths);
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.FlightTasks;
|
||||
import com.ruoyi.system.dto.FlightTasksVo;
|
||||
|
||||
/**
|
||||
* 任务Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface IFlightTasksService {
|
||||
/**
|
||||
* 查询任务
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 任务
|
||||
*/
|
||||
public FlightTasks selectFlightTasksById(Long id);
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 任务集合
|
||||
*/
|
||||
public List<FlightTasks> selectFlightTasksList(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFlightTasks(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 修改任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFlightTasks(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 批量删除任务
|
||||
*
|
||||
* @param ids 需要删除的任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightTasksByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除任务信息
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFlightTasksById(Long id);
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param flightTasks
|
||||
* @return
|
||||
*/
|
||||
List<FlightTasksVo> selectFlightTasksVoList(FlightTasks flightTasks);
|
||||
|
||||
/**
|
||||
* 更新任务状态
|
||||
*
|
||||
* @param flightId
|
||||
* @param status
|
||||
*/
|
||||
void updateFlightTasksStatus(String flightId, String status, Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.GatewayOperationLog;
|
||||
|
||||
/**
|
||||
* 网关操作日志Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
public interface IGatewayOperationLogService
|
||||
{
|
||||
/**
|
||||
* 查询网关操作日志
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 网关操作日志
|
||||
*/
|
||||
public GatewayOperationLog selectGatewayOperationLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网关操作日志列表
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 网关操作日志集合
|
||||
*/
|
||||
public List<GatewayOperationLog> selectGatewayOperationLogList(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 新增网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGatewayOperationLog(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 修改网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGatewayOperationLog(GatewayOperationLog gatewayOperationLog);
|
||||
|
||||
/**
|
||||
* 批量删除网关操作日志
|
||||
*
|
||||
* @param ids 需要删除的网关操作日志主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGatewayOperationLogByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网关操作日志信息
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGatewayOperationLogById(Long id);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.ManageDeviceDictionary;
|
||||
|
||||
/**
|
||||
* Device product enumService接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
public interface IManageDeviceDictionaryService
|
||||
{
|
||||
/**
|
||||
* 查询Device product enum
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return Device product enum
|
||||
*/
|
||||
public ManageDeviceDictionary selectManageDeviceDictionaryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询Device product enum列表
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return Device product enum集合
|
||||
*/
|
||||
public List<ManageDeviceDictionary> selectManageDeviceDictionaryList(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 新增Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 修改Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary);
|
||||
|
||||
/**
|
||||
* 批量删除Device product enum
|
||||
*
|
||||
* @param ids 需要删除的Device product enum主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteManageDeviceDictionaryByIds(Integer[] ids);
|
||||
|
||||
/**
|
||||
* 删除Device product enum信息
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteManageDeviceDictionaryById(Integer id);
|
||||
|
||||
ManageDeviceDictionary selectManageDeviceDictionaryByCondition(String s, String s1, String s2);
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.MinioFile;
|
||||
|
||||
/**
|
||||
* minio文件存储Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
public interface IMinioFileService {
|
||||
/**
|
||||
* 查询minio文件存储
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return minio文件存储
|
||||
*/
|
||||
public MinioFile selectMinioFileById(Long id);
|
||||
|
||||
/**
|
||||
* 查询minio文件存储列表
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return minio文件存储集合
|
||||
*/
|
||||
public List<MinioFile> selectMinioFileList(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 新增minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMinioFile(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 修改minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMinioFile(MinioFile minioFile);
|
||||
|
||||
/**
|
||||
* 批量删除minio文件存储
|
||||
*
|
||||
* @param ids 需要删除的minio文件存储主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMinioFileByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除minio文件存储信息
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMinioFileById(Long id);
|
||||
|
||||
/**
|
||||
* 根据文件名查询
|
||||
*
|
||||
* @param fileName
|
||||
* @return
|
||||
*/
|
||||
MinioFile selectMinioFileName(String fileName);
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.Missions;
|
||||
import com.ruoyi.system.dto.MissionsDto;
|
||||
import com.ruoyi.system.dto.MissionsListDto;
|
||||
|
||||
/**
|
||||
* 无人机任务Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
public interface IMissionsService {
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
public Missions selectMissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 无人机任务集合
|
||||
*/
|
||||
public List<Missions> selectMissionsList(Missions missions);
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMissions(Missions missions);
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMissions(Missions missions);
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的无人机任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除无人机任务信息
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMissionsById(Long id);
|
||||
|
||||
List<MissionsDto> list(MissionsListDto missionListDto);
|
||||
|
||||
void updateMissionsByFlightId(Missions missions);
|
||||
|
||||
MissionsDto getLatest(String gateway);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.OneClickTakeoff;
|
||||
|
||||
/**
|
||||
* 一键起飞Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface IOneClickTakeoffService
|
||||
{
|
||||
/**
|
||||
* 查询一键起飞
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 一键起飞
|
||||
*/
|
||||
public OneClickTakeoff selectOneClickTakeoffById(Long id);
|
||||
|
||||
/**
|
||||
* 查询一键起飞列表
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 一键起飞集合
|
||||
*/
|
||||
public List<OneClickTakeoff> selectOneClickTakeoffList(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 新增一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOneClickTakeoff(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 修改一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOneClickTakeoff(OneClickTakeoff oneClickTakeoff);
|
||||
|
||||
/**
|
||||
* 批量删除一键起飞
|
||||
*
|
||||
* @param ids 需要删除的一键起飞主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOneClickTakeoffByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除一键起飞信息
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOneClickTakeoffById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.ScheduleTask;
|
||||
|
||||
/**
|
||||
* 任务定时执行Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
public interface IScheduleTaskService
|
||||
{
|
||||
/**
|
||||
* 查询任务定时执行
|
||||
*
|
||||
* @param id 任务定时执行主键
|
||||
* @return 任务定时执行
|
||||
*/
|
||||
public ScheduleTask selectScheduleTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 查询任务定时执行列表
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 任务定时执行集合
|
||||
*/
|
||||
public List<ScheduleTask> selectScheduleTaskList(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 新增任务定时执行
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScheduleTask(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 修改任务定时执行
|
||||
*
|
||||
* @param scheduleTask 任务定时执行
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScheduleTask(ScheduleTask scheduleTask);
|
||||
|
||||
/**
|
||||
* 批量删除任务定时执行
|
||||
*
|
||||
* @param ids 需要删除的任务定时执行主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleTaskByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除任务定时执行信息
|
||||
*
|
||||
* @param id 任务定时执行主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleTaskById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysConfig;
|
||||
|
||||
/**
|
||||
* 参数配置 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysConfigService
|
||||
{
|
||||
/**
|
||||
* 查询参数配置信息
|
||||
*
|
||||
* @param configId 参数配置ID
|
||||
* @return 参数配置信息
|
||||
*/
|
||||
public SysConfig selectConfigById(Long configId);
|
||||
|
||||
/**
|
||||
* 根据键名查询参数配置信息
|
||||
*
|
||||
* @param configKey 参数键名
|
||||
* @return 参数键值
|
||||
*/
|
||||
public String selectConfigByKey(String configKey);
|
||||
|
||||
/**
|
||||
* 获取验证码开关
|
||||
*
|
||||
* @return true开启,false关闭
|
||||
*/
|
||||
public boolean selectCaptchaEnabled();
|
||||
|
||||
/**
|
||||
* 查询参数配置列表
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 参数配置集合
|
||||
*/
|
||||
public List<SysConfig> selectConfigList(SysConfig config);
|
||||
|
||||
/**
|
||||
* 新增参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 修改参数配置
|
||||
*
|
||||
* @param config 参数配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateConfig(SysConfig config);
|
||||
|
||||
/**
|
||||
* 批量删除参数信息
|
||||
*
|
||||
* @param configIds 需要删除的参数ID
|
||||
*/
|
||||
public void deleteConfigByIds(Long[] configIds);
|
||||
|
||||
/**
|
||||
* 加载参数缓存数据
|
||||
*/
|
||||
public void loadingConfigCache();
|
||||
|
||||
/**
|
||||
* 清空参数缓存数据
|
||||
*/
|
||||
public void clearConfigCache();
|
||||
|
||||
/**
|
||||
* 重置参数缓存数据
|
||||
*/
|
||||
public void resetConfigCache();
|
||||
|
||||
/**
|
||||
* 校验参数键名是否唯一
|
||||
*
|
||||
* @param config 参数信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkConfigKeyUnique(SysConfig config);
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.TreeSelect;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
|
||||
/**
|
||||
* 部门管理 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDeptService
|
||||
{
|
||||
/**
|
||||
* 查询部门管理数据
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 部门信息集合
|
||||
*/
|
||||
public List<SysDept> selectDeptList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 查询部门树结构信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 部门树信息集合
|
||||
*/
|
||||
public List<TreeSelect> selectDeptTreeList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 构建前端所需要树结构
|
||||
*
|
||||
* @param depts 部门列表
|
||||
* @return 树结构列表
|
||||
*/
|
||||
public List<SysDept> buildDeptTree(List<SysDept> depts);
|
||||
|
||||
/**
|
||||
* 构建前端所需要下拉树结构
|
||||
*
|
||||
* @param depts 部门列表
|
||||
* @return 下拉树结构列表
|
||||
*/
|
||||
public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询部门树信息
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 选中部门列表
|
||||
*/
|
||||
public List<Long> selectDeptListByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 根据部门ID查询信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门信息
|
||||
*/
|
||||
public SysDept selectDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有子部门(正常状态)
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 子部门数
|
||||
*/
|
||||
public int selectNormalChildrenDeptById(Long deptId);
|
||||
|
||||
/**
|
||||
* 是否存在部门子节点
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean hasChildByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询部门是否存在用户
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果 true 存在 false 不存在
|
||||
*/
|
||||
public boolean checkDeptExistUser(Long deptId);
|
||||
|
||||
/**
|
||||
* 校验部门名称是否唯一
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkDeptNameUnique(SysDept dept);
|
||||
|
||||
/**
|
||||
* 校验部门是否有数据权限
|
||||
*
|
||||
* @param deptId 部门id
|
||||
*/
|
||||
public void checkDeptDataScope(Long deptId);
|
||||
|
||||
/**
|
||||
* 新增保存部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 修改保存部门信息
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDept(SysDept dept);
|
||||
|
||||
/**
|
||||
* 删除部门管理信息
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeptById(Long deptId);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDictDataService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典数据
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataList(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 根据字典类型和字典键值查询字典数据信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @param dictValue 字典键值
|
||||
* @return 字典标签
|
||||
*/
|
||||
public String selectDictLabel(String dictType, String dictValue);
|
||||
|
||||
/**
|
||||
* 根据字典数据ID查询信息
|
||||
*
|
||||
* @param dictCode 字典数据ID
|
||||
* @return 字典数据
|
||||
*/
|
||||
public SysDictData selectDictDataById(Long dictCode);
|
||||
|
||||
/**
|
||||
* 批量删除字典数据信息
|
||||
*
|
||||
* @param dictCodes 需要删除的字典数据ID
|
||||
*/
|
||||
public void deleteDictDataByIds(Long[] dictCodes);
|
||||
|
||||
/**
|
||||
* 新增保存字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictData(SysDictData dictData);
|
||||
|
||||
/**
|
||||
* 修改保存字典数据信息
|
||||
*
|
||||
* @param dictData 字典数据信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictData(SysDictData dictData);
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictType;
|
||||
|
||||
/**
|
||||
* 字典 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysDictTypeService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询字典类型
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeList(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 根据所有字典类型
|
||||
*
|
||||
* @return 字典类型集合信息
|
||||
*/
|
||||
public List<SysDictType> selectDictTypeAll();
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
*/
|
||||
public List<SysDictData> selectDictDataByType(String dictType);
|
||||
|
||||
/**
|
||||
* 根据字典类型ID查询信息
|
||||
*
|
||||
* @param dictId 字典类型ID
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeById(Long dictId);
|
||||
|
||||
/**
|
||||
* 根据字典类型查询信息
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典类型
|
||||
*/
|
||||
public SysDictType selectDictTypeByType(String dictType);
|
||||
|
||||
/**
|
||||
* 批量删除字典信息
|
||||
*
|
||||
* @param dictIds 需要删除的字典ID
|
||||
*/
|
||||
public void deleteDictTypeByIds(Long[] dictIds);
|
||||
|
||||
/**
|
||||
* 加载字典缓存数据
|
||||
*/
|
||||
public void loadingDictCache();
|
||||
|
||||
/**
|
||||
* 清空字典缓存数据
|
||||
*/
|
||||
public void clearDictCache();
|
||||
|
||||
/**
|
||||
* 重置字典缓存数据
|
||||
*/
|
||||
public void resetDictCache();
|
||||
|
||||
/**
|
||||
* 新增保存字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 修改保存字典类型信息
|
||||
*
|
||||
* @param dictType 字典类型信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDictType(SysDictType dictType);
|
||||
|
||||
/**
|
||||
* 校验字典类型称是否唯一
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkDictTypeUnique(SysDictType dictType);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysLogininfor;
|
||||
|
||||
/**
|
||||
* 系统访问日志情况信息 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysLogininforService
|
||||
{
|
||||
/**
|
||||
* 新增系统登录日志
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
*/
|
||||
public void insertLogininfor(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 查询系统登录日志集合
|
||||
*
|
||||
* @param logininfor 访问日志对象
|
||||
* @return 登录记录集合
|
||||
*/
|
||||
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
||||
|
||||
/**
|
||||
* 批量删除系统登录日志
|
||||
*
|
||||
* @param infoIds 需要删除的登录日志ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLogininforByIds(Long[] infoIds);
|
||||
|
||||
/**
|
||||
* 清空系统登录日志
|
||||
*/
|
||||
public void cleanLogininfor();
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import com.ruoyi.common.core.domain.TreeSelect;
|
||||
import com.ruoyi.common.core.domain.entity.SysMenu;
|
||||
import com.ruoyi.system.domain.vo.RouterVo;
|
||||
|
||||
/**
|
||||
* 菜单 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysMenuService
|
||||
{
|
||||
/**
|
||||
* 根据用户查询系统菜单列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuList(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户查询系统菜单列表
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuList(SysMenu menu, Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Set<String> selectMenuPermsByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询权限
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Set<String> selectMenuPermsByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询菜单树信息
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 菜单列表
|
||||
*/
|
||||
public List<SysMenu> selectMenuTreeByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询菜单树信息
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 选中菜单列表
|
||||
*/
|
||||
public List<Long> selectMenuListByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 构建前端路由所需要的菜单
|
||||
*
|
||||
* @param menus 菜单列表
|
||||
* @return 路由列表
|
||||
*/
|
||||
public List<RouterVo> buildMenus(List<SysMenu> menus);
|
||||
|
||||
/**
|
||||
* 构建前端所需要树结构
|
||||
*
|
||||
* @param menus 菜单列表
|
||||
* @return 树结构列表
|
||||
*/
|
||||
public List<SysMenu> buildMenuTree(List<SysMenu> menus);
|
||||
|
||||
/**
|
||||
* 构建前端所需要下拉树结构
|
||||
*
|
||||
* @param menus 菜单列表
|
||||
* @return 下拉树结构列表
|
||||
*/
|
||||
public List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus);
|
||||
|
||||
/**
|
||||
* 根据菜单ID查询信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 菜单信息
|
||||
*/
|
||||
public SysMenu selectMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 是否存在菜单子节点
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果 true 存在 false 不存在
|
||||
*/
|
||||
public boolean hasChildByMenuId(Long menuId);
|
||||
|
||||
/**
|
||||
* 查询菜单是否存在角色
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果 true 存在 false 不存在
|
||||
*/
|
||||
public boolean checkMenuExistRole(Long menuId);
|
||||
|
||||
/**
|
||||
* 新增保存菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 修改保存菜单信息
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMenu(SysMenu menu);
|
||||
|
||||
/**
|
||||
* 删除菜单管理信息
|
||||
*
|
||||
* @param menuId 菜单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuById(Long menuId);
|
||||
|
||||
/**
|
||||
* 校验菜单名称是否唯一
|
||||
*
|
||||
* @param menu 菜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkMenuNameUnique(SysMenu menu);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysNotice;
|
||||
|
||||
/**
|
||||
* 公告 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysNoticeService
|
||||
{
|
||||
/**
|
||||
* 查询公告信息
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 公告信息
|
||||
*/
|
||||
public SysNotice selectNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 查询公告列表
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 公告集合
|
||||
*/
|
||||
public List<SysNotice> selectNoticeList(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 修改公告
|
||||
*
|
||||
* @param notice 公告信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNotice(SysNotice notice);
|
||||
|
||||
/**
|
||||
* 删除公告信息
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeById(Long noticeId);
|
||||
|
||||
/**
|
||||
* 批量删除公告信息
|
||||
*
|
||||
* @param noticeIds 需要删除的公告ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNoticeByIds(Long[] noticeIds);
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysOperLog;
|
||||
|
||||
/**
|
||||
* 操作日志 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysOperLogService
|
||||
{
|
||||
/**
|
||||
* 新增操作日志
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
*/
|
||||
public void insertOperlog(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 查询系统操作日志集合
|
||||
*
|
||||
* @param operLog 操作日志对象
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
||||
|
||||
/**
|
||||
* 批量删除系统操作日志
|
||||
*
|
||||
* @param operIds 需要删除的操作日志ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOperLogByIds(Long[] operIds);
|
||||
|
||||
/**
|
||||
* 查询操作日志详细
|
||||
*
|
||||
* @param operId 操作ID
|
||||
* @return 操作日志对象
|
||||
*/
|
||||
public SysOperLog selectOperLogById(Long operId);
|
||||
|
||||
/**
|
||||
* 清空操作日志
|
||||
*/
|
||||
public void cleanOperLog();
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.SysPost;
|
||||
|
||||
/**
|
||||
* 岗位信息 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysPostService
|
||||
{
|
||||
/**
|
||||
* 查询岗位信息集合
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostList(SysPost post);
|
||||
|
||||
/**
|
||||
* 查询所有岗位
|
||||
*
|
||||
* @return 岗位列表
|
||||
*/
|
||||
public List<SysPost> selectPostAll();
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysPost selectPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 根据用户ID获取岗位选择框列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 选中岗位ID列表
|
||||
*/
|
||||
public List<Long> selectPostListByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 校验岗位名称
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkPostNameUnique(SysPost post);
|
||||
|
||||
/**
|
||||
* 校验岗位编码
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkPostCodeUnique(SysPost post);
|
||||
|
||||
/**
|
||||
* 通过岗位ID查询岗位使用数量
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserPostById(Long postId);
|
||||
|
||||
/**
|
||||
* 删除岗位信息
|
||||
*
|
||||
* @param postId 岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePostById(Long postId);
|
||||
|
||||
/**
|
||||
* 批量删除岗位信息
|
||||
*
|
||||
* @param postIds 需要删除的岗位ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePostByIds(Long[] postIds);
|
||||
|
||||
/**
|
||||
* 新增保存岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPost(SysPost post);
|
||||
|
||||
/**
|
||||
* 修改保存岗位信息
|
||||
*
|
||||
* @param post 岗位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePost(SysPost post);
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import com.ruoyi.system.domain.SysUserRole;
|
||||
|
||||
/**
|
||||
* 角色业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysRoleService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询角色数据
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 角色数据集合信息
|
||||
*/
|
||||
public List<SysRole> selectRoleList(SysRole role);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRolesByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询角色权限
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 权限列表
|
||||
*/
|
||||
public Set<String> selectRolePermissionByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询所有角色
|
||||
*
|
||||
* @return 角色列表
|
||||
*/
|
||||
public List<SysRole> selectRoleAll();
|
||||
|
||||
/**
|
||||
* 根据用户ID获取角色选择框列表
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 选中角色ID列表
|
||||
*/
|
||||
public List<Long> selectRoleListByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public SysRole selectRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkRoleNameUnique(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色权限是否唯一
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkRoleKeyUnique(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色是否允许操作
|
||||
*
|
||||
* @param role 角色信息
|
||||
*/
|
||||
public void checkRoleAllowed(SysRole role);
|
||||
|
||||
/**
|
||||
* 校验角色是否有数据权限
|
||||
*
|
||||
* @param roleIds 角色id
|
||||
*/
|
||||
public void checkRoleDataScope(Long... roleIds);
|
||||
|
||||
/**
|
||||
* 通过角色ID查询角色使用数量
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int countUserRoleByRoleId(Long roleId);
|
||||
|
||||
/**
|
||||
* 新增保存角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 修改保存角色信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRole(SysRole role);
|
||||
|
||||
/**
|
||||
* 修改角色状态
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRoleStatus(SysRole role);
|
||||
|
||||
/**
|
||||
* 修改数据权限信息
|
||||
*
|
||||
* @param role 角色信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int authDataScope(SysRole role);
|
||||
|
||||
/**
|
||||
* 通过角色ID删除角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 批量删除角色信息
|
||||
*
|
||||
* @param roleIds 需要删除的角色ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRoleByIds(Long[] roleIds);
|
||||
|
||||
/**
|
||||
* 取消授权用户角色
|
||||
*
|
||||
* @param userRole 用户和角色关联信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAuthUser(SysUserRole userRole);
|
||||
|
||||
/**
|
||||
* 批量取消授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要取消授权的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAuthUsers(Long roleId, Long[] userIds);
|
||||
|
||||
/**
|
||||
* 批量选择授权用户角色
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @param userIds 需要删除的用户数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAuthUsers(Long roleId, Long[] userIds);
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.system.domain.SysUserOnline;
|
||||
|
||||
/**
|
||||
* 在线用户 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysUserOnlineService
|
||||
{
|
||||
/**
|
||||
* 通过登录地址查询信息
|
||||
*
|
||||
* @param ipaddr 登录地址
|
||||
* @param user 用户信息
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user);
|
||||
|
||||
/**
|
||||
* 通过用户名称查询信息
|
||||
*
|
||||
* @param userName 用户名称
|
||||
* @param user 用户信息
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public SysUserOnline selectOnlineByUserName(String userName, LoginUser user);
|
||||
|
||||
/**
|
||||
* 通过登录地址/用户名称查询信息
|
||||
*
|
||||
* @param ipaddr 登录地址
|
||||
* @param userName 用户名称
|
||||
* @param user 用户信息
|
||||
* @return 在线用户信息
|
||||
*/
|
||||
public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user);
|
||||
|
||||
/**
|
||||
* 设置在线用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 在线用户
|
||||
*/
|
||||
public SysUserOnline loginUserToUserOnline(LoginUser user);
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
|
||||
/**
|
||||
* 用户 业务层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface ISysUserService
|
||||
{
|
||||
/**
|
||||
* 根据条件分页查询用户列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUserList(SysUser user);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询已分配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectAllocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 根据条件分页查询未分配用户角色列表
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 用户信息集合信息
|
||||
*/
|
||||
public List<SysUser> selectUnallocatedList(SysUser user);
|
||||
|
||||
/**
|
||||
* 通过用户名查询用户
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserByUserName(String userName);
|
||||
|
||||
/**
|
||||
* 通过用户ID查询用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
public SysUser selectUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询用户所属角色组
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 结果
|
||||
*/
|
||||
public String selectUserRoleGroup(String userName);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询用户所属岗位组
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 结果
|
||||
*/
|
||||
public String selectUserPostGroup(String userName);
|
||||
|
||||
/**
|
||||
* 校验用户名称是否唯一
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkUserNameUnique(SysUser user);
|
||||
|
||||
/**
|
||||
* 校验手机号码是否唯一
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkPhoneUnique(SysUser user);
|
||||
|
||||
/**
|
||||
* 校验email是否唯一
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean checkEmailUnique(SysUser user);
|
||||
|
||||
/**
|
||||
* 校验用户是否允许操作
|
||||
*
|
||||
* @param user 用户信息
|
||||
*/
|
||||
public void checkUserAllowed(SysUser user);
|
||||
|
||||
/**
|
||||
* 校验用户是否有数据权限
|
||||
*
|
||||
* @param userId 用户id
|
||||
*/
|
||||
public void checkUserDataScope(Long userId);
|
||||
|
||||
/**
|
||||
* 新增用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 注册用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean registerUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 修改用户信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUser(SysUser user);
|
||||
|
||||
/**
|
||||
* 用户授权角色
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @param roleIds 角色组
|
||||
*/
|
||||
public void insertUserAuth(Long userId, Long[] roleIds);
|
||||
|
||||
/**
|
||||
* 修改用户状态
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserStatus(SysUser user);
|
||||
|
||||
/**
|
||||
* 修改用户基本信息
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserProfile(SysUser user);
|
||||
|
||||
/**
|
||||
* 修改用户头像
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param avatar 头像地址
|
||||
* @return 结果
|
||||
*/
|
||||
public boolean updateUserAvatar(String userName, String avatar);
|
||||
|
||||
/**
|
||||
* 重置用户密码
|
||||
*
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int resetPwd(SysUser user);
|
||||
|
||||
/**
|
||||
* 重置用户密码
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param password 密码
|
||||
* @return 结果
|
||||
*/
|
||||
public int resetUserPwd(String userName, String password);
|
||||
|
||||
/**
|
||||
* 通过用户ID删除用户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserById(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除用户信息
|
||||
*
|
||||
* @param userIds 需要删除的用户ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserByIds(Long[] userIds);
|
||||
|
||||
/**
|
||||
* 导入用户数据
|
||||
*
|
||||
* @param userList 用户数据列表
|
||||
* @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
|
||||
* @param operName 操作用户
|
||||
* @return 结果
|
||||
*/
|
||||
public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.VideoInfo;
|
||||
|
||||
/**
|
||||
* 视频设备Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
public interface IVideoInfoService {
|
||||
/**
|
||||
* 查询视频设备
|
||||
*
|
||||
* @param id 视频设备主键
|
||||
* @return 视频设备
|
||||
*/
|
||||
public VideoInfo selectVideoInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询视频设备列表
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 视频设备集合
|
||||
*/
|
||||
public List<VideoInfo> selectVideoInfoList(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 新增视频设备
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 修改视频设备
|
||||
*
|
||||
* @param videoInfo 视频设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 批量删除视频设备
|
||||
*
|
||||
* @param ids 需要删除的视频设备主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVideoInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除视频设备信息
|
||||
*
|
||||
* @param id 视频设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVideoInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询视频设备
|
||||
*
|
||||
* @param videoInfo
|
||||
* @return
|
||||
*/
|
||||
VideoInfo findVideoInfo(VideoInfo videoInfo);
|
||||
|
||||
/**
|
||||
* 根据网关查询视频设备
|
||||
*
|
||||
* @param matchedPart
|
||||
* @return
|
||||
*/
|
||||
List<VideoInfo> findVideoInfoByGateway(String matchedPart);
|
||||
|
||||
/**
|
||||
* 根据网关和类型查询设备
|
||||
*
|
||||
* @param gateway
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
VideoInfo selectVideoByCondition(String gateway, String condition);
|
||||
|
||||
/**
|
||||
* 根据sn查询网关
|
||||
*
|
||||
* @param sn
|
||||
* @return
|
||||
*/
|
||||
VideoInfo selectGatewayByCondition(String sn);
|
||||
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.dto.DroneMissionsVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.DroneMissionsMapper;
|
||||
import com.ruoyi.system.domain.DroneMissions;
|
||||
import com.ruoyi.system.service.IDroneMissionsService;
|
||||
|
||||
/**
|
||||
* 无人机任务Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
@Service
|
||||
public class DroneMissionsServiceImpl implements IDroneMissionsService
|
||||
{
|
||||
@Autowired
|
||||
private DroneMissionsMapper droneMissionsMapper;
|
||||
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
@Override
|
||||
public DroneMissions selectDroneMissionsById(Long id)
|
||||
{
|
||||
return droneMissionsMapper.selectDroneMissionsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 无人机任务
|
||||
*/
|
||||
@Override
|
||||
public List<DroneMissions> selectDroneMissionsList(DroneMissions droneMissions)
|
||||
{
|
||||
return droneMissionsMapper.selectDroneMissionsList(droneMissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDroneMissions(DroneMissions droneMissions)
|
||||
{
|
||||
return droneMissionsMapper.insertDroneMissions(droneMissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param droneMissions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDroneMissions(DroneMissions droneMissions)
|
||||
{
|
||||
return droneMissionsMapper.updateDroneMissions(droneMissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDroneMissionsByIds(Long[] ids)
|
||||
{
|
||||
return droneMissionsMapper.deleteDroneMissionsByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<DroneMissionsVo> selectDroneMissionsVoList(DroneMissions droneMissions) {
|
||||
return droneMissionsMapper.selectDroneMissionsVoList(droneMissions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DroneMissions selectDroneMissionsByCondition(String flightId) {
|
||||
return droneMissionsMapper.selectDroneMissionsByCondition(flightId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机任务信息
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDroneMissionsById(Long id)
|
||||
{
|
||||
return droneMissionsMapper.deleteDroneMissionsById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.DroneMapper;
|
||||
import com.ruoyi.system.domain.Drone;
|
||||
import com.ruoyi.system.service.IDroneService;
|
||||
|
||||
/**
|
||||
* 无人机信息Service业务层处理
|
||||
*
|
||||
* @author 周志雄
|
||||
* @date 2024-07-15
|
||||
*/
|
||||
@Service
|
||||
public class DroneServiceImpl implements IDroneService {
|
||||
@Autowired
|
||||
private DroneMapper droneMapper;
|
||||
|
||||
/**
|
||||
* 查询无人机信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 无人机信息
|
||||
*/
|
||||
@Override
|
||||
public Drone selectDroneById(Long id) {
|
||||
return droneMapper.selectDroneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询无人机信息列表
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 无人机信息
|
||||
*/
|
||||
@Override
|
||||
public List<Drone> selectDroneList(Drone drone) {
|
||||
return droneMapper.selectDroneList(drone);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDrone(Drone drone) {
|
||||
return droneMapper.insertDrone(drone);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机信息
|
||||
*
|
||||
* @param drone 无人机信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDrone(Drone drone) {
|
||||
return droneMapper.updateDrone(drone);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除无人机信息
|
||||
*
|
||||
* @param ids 需要删除的无人机信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDroneByIds(Long[] ids) {
|
||||
return droneMapper.deleteDroneByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据设备sn查询无人机信息
|
||||
*
|
||||
* @param deviceSn
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Drone selectDroneBySn(String deviceSn) {
|
||||
return droneMapper.selectDroneBySn(deviceSn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机信息信息
|
||||
*
|
||||
* @param id 无人机信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDroneById(Long id) {
|
||||
return droneMapper.deleteDroneById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.FlightPathsMapper;
|
||||
import com.ruoyi.system.domain.FlightPaths;
|
||||
import com.ruoyi.system.service.IFlightPathsService;
|
||||
|
||||
/**
|
||||
* 航线文件信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-25
|
||||
*/
|
||||
@Service
|
||||
public class FlightPathsServiceImpl implements IFlightPathsService
|
||||
{
|
||||
@Autowired
|
||||
private FlightPathsMapper flightPathsMapper;
|
||||
|
||||
/**
|
||||
* 查询航线文件信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 航线文件信息
|
||||
*/
|
||||
@Override
|
||||
public FlightPaths selectFlightPathsById(Long id)
|
||||
{
|
||||
return flightPathsMapper.selectFlightPathsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询航线文件信息列表
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 航线文件信息
|
||||
*/
|
||||
@Override
|
||||
public List<FlightPaths> selectFlightPathsList(FlightPaths flightPaths)
|
||||
{
|
||||
return flightPathsMapper.selectFlightPathsList(flightPaths);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertFlightPaths(FlightPaths flightPaths)
|
||||
{
|
||||
return flightPathsMapper.insertFlightPaths(flightPaths);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改航线文件信息
|
||||
*
|
||||
* @param flightPaths 航线文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateFlightPaths(FlightPaths flightPaths)
|
||||
{
|
||||
return flightPathsMapper.updateFlightPaths(flightPaths);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除航线文件信息
|
||||
*
|
||||
* @param ids 需要删除的航线文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFlightPathsByIds(Long[] ids)
|
||||
{
|
||||
return flightPathsMapper.deleteFlightPathsByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FlightPaths> selectByCondition(FlightPaths flightPaths) {
|
||||
return flightPathsMapper.selectByCondition(flightPaths);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除航线文件信息信息
|
||||
*
|
||||
* @param id 航线文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFlightPathsById(Long id)
|
||||
{
|
||||
return flightPathsMapper.deleteFlightPathsById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.dto.FlightTasksVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.FlightTasksMapper;
|
||||
import com.ruoyi.system.domain.FlightTasks;
|
||||
import com.ruoyi.system.service.IFlightTasksService;
|
||||
|
||||
/**
|
||||
* 任务Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-24
|
||||
*/
|
||||
@Service
|
||||
public class FlightTasksServiceImpl implements IFlightTasksService {
|
||||
@Autowired
|
||||
private FlightTasksMapper flightTasksMapper;
|
||||
|
||||
/**
|
||||
* 查询任务
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 任务
|
||||
*/
|
||||
@Override
|
||||
public FlightTasks selectFlightTasksById(Long id) {
|
||||
return flightTasksMapper.selectFlightTasksById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询任务列表
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 任务
|
||||
*/
|
||||
@Override
|
||||
public List<FlightTasks> selectFlightTasksList(FlightTasks flightTasks) {
|
||||
return flightTasksMapper.selectFlightTasksList(flightTasks);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertFlightTasks(FlightTasks flightTasks) {
|
||||
return flightTasksMapper.insertFlightTasks(flightTasks);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改任务
|
||||
*
|
||||
* @param flightTasks 任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateFlightTasks(FlightTasks flightTasks) {
|
||||
return flightTasksMapper.updateFlightTasks(flightTasks);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除任务
|
||||
*
|
||||
* @param ids 需要删除的任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFlightTasksByIds(Long[] ids) {
|
||||
return flightTasksMapper.deleteFlightTasksByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void updateFlightTasksStatus(String flightId, String status, Date updateTime) {
|
||||
flightTasksMapper.updateFlightTasksStatus(flightId, status, updateTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FlightTasksVo> selectFlightTasksVoList(FlightTasks flightTasks) {
|
||||
return flightTasksMapper.selectFlightTasksVoList(flightTasks);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除任务信息
|
||||
*
|
||||
* @param id 任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFlightTasksById(Long id) {
|
||||
return flightTasksMapper.deleteFlightTasksById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.GatewayOperationLogMapper;
|
||||
import com.ruoyi.system.domain.GatewayOperationLog;
|
||||
import com.ruoyi.system.service.IGatewayOperationLogService;
|
||||
|
||||
/**
|
||||
* 网关操作日志Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-10
|
||||
*/
|
||||
@Service
|
||||
public class GatewayOperationLogServiceImpl implements IGatewayOperationLogService
|
||||
{
|
||||
@Autowired
|
||||
private GatewayOperationLogMapper gatewayOperationLogMapper;
|
||||
|
||||
/**
|
||||
* 查询网关操作日志
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 网关操作日志
|
||||
*/
|
||||
@Override
|
||||
public GatewayOperationLog selectGatewayOperationLogById(Long id)
|
||||
{
|
||||
return gatewayOperationLogMapper.selectGatewayOperationLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网关操作日志列表
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 网关操作日志
|
||||
*/
|
||||
@Override
|
||||
public List<GatewayOperationLog> selectGatewayOperationLogList(GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
return gatewayOperationLogMapper.selectGatewayOperationLogList(gatewayOperationLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGatewayOperationLog(GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
return gatewayOperationLogMapper.insertGatewayOperationLog(gatewayOperationLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网关操作日志
|
||||
*
|
||||
* @param gatewayOperationLog 网关操作日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGatewayOperationLog(GatewayOperationLog gatewayOperationLog)
|
||||
{
|
||||
return gatewayOperationLogMapper.updateGatewayOperationLog(gatewayOperationLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网关操作日志
|
||||
*
|
||||
* @param ids 需要删除的网关操作日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGatewayOperationLogByIds(Long[] ids)
|
||||
{
|
||||
return gatewayOperationLogMapper.deleteGatewayOperationLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网关操作日志信息
|
||||
*
|
||||
* @param id 网关操作日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGatewayOperationLogById(Long id)
|
||||
{
|
||||
return gatewayOperationLogMapper.deleteGatewayOperationLogById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.ManageDeviceDictionaryMapper;
|
||||
import com.ruoyi.system.domain.ManageDeviceDictionary;
|
||||
import com.ruoyi.system.service.IManageDeviceDictionaryService;
|
||||
|
||||
/**
|
||||
* Device product enumService业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-03
|
||||
*/
|
||||
@Service
|
||||
public class ManageDeviceDictionaryServiceImpl implements IManageDeviceDictionaryService
|
||||
{
|
||||
@Autowired
|
||||
private ManageDeviceDictionaryMapper manageDeviceDictionaryMapper;
|
||||
|
||||
/**
|
||||
* 查询Device product enum
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return Device product enum
|
||||
*/
|
||||
@Override
|
||||
public ManageDeviceDictionary selectManageDeviceDictionaryById(Integer id)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.selectManageDeviceDictionaryById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询Device product enum列表
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return Device product enum
|
||||
*/
|
||||
@Override
|
||||
public List<ManageDeviceDictionary> selectManageDeviceDictionaryList(ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.selectManageDeviceDictionaryList(manageDeviceDictionary);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.insertManageDeviceDictionary(manageDeviceDictionary);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改Device product enum
|
||||
*
|
||||
* @param manageDeviceDictionary Device product enum
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.updateManageDeviceDictionary(manageDeviceDictionary);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除Device product enum
|
||||
*
|
||||
* @param ids 需要删除的Device product enum主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteManageDeviceDictionaryByIds(Integer[] ids)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.deleteManageDeviceDictionaryByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManageDeviceDictionary selectManageDeviceDictionaryByCondition(String s, String s1, String s2) {
|
||||
return manageDeviceDictionaryMapper.selectManageDeviceDictionaryByCondition(s,s1,s2);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除Device product enum信息
|
||||
*
|
||||
* @param id Device product enum主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteManageDeviceDictionaryById(Integer id)
|
||||
{
|
||||
return manageDeviceDictionaryMapper.deleteManageDeviceDictionaryById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.MinioFileMapper;
|
||||
import com.ruoyi.system.domain.MinioFile;
|
||||
import com.ruoyi.system.service.IMinioFileService;
|
||||
|
||||
/**
|
||||
* minio文件存储Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-07-30
|
||||
*/
|
||||
@Service
|
||||
public class MinioFileServiceImpl implements IMinioFileService
|
||||
{
|
||||
@Autowired
|
||||
private MinioFileMapper minioFileMapper;
|
||||
|
||||
/**
|
||||
* 查询minio文件存储
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return minio文件存储
|
||||
*/
|
||||
@Override
|
||||
public MinioFile selectMinioFileById(Long id)
|
||||
{
|
||||
return minioFileMapper.selectMinioFileById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询minio文件存储列表
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return minio文件存储
|
||||
*/
|
||||
@Override
|
||||
public List<MinioFile> selectMinioFileList(MinioFile minioFile)
|
||||
{
|
||||
return minioFileMapper.selectMinioFileList(minioFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMinioFile(MinioFile minioFile)
|
||||
{
|
||||
return minioFileMapper.insertMinioFile(minioFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改minio文件存储
|
||||
*
|
||||
* @param minioFile minio文件存储
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMinioFile(MinioFile minioFile)
|
||||
{
|
||||
return minioFileMapper.updateMinioFile(minioFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除minio文件存储
|
||||
*
|
||||
* @param ids 需要删除的minio文件存储主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMinioFileByIds(Long[] ids)
|
||||
{
|
||||
return minioFileMapper.deleteMinioFileByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MinioFile selectMinioFileName(String fileName) {
|
||||
return minioFileMapper.selectMinioFileName(fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除minio文件存储信息
|
||||
*
|
||||
* @param id minio文件存储主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMinioFileById(Long id)
|
||||
{
|
||||
return minioFileMapper.deleteMinioFileById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.dto.MissionsDto;
|
||||
import com.ruoyi.system.dto.MissionsListDto;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.MissionsMapper;
|
||||
import com.ruoyi.system.domain.Missions;
|
||||
import com.ruoyi.system.service.IMissionsService;
|
||||
|
||||
/**
|
||||
* 无人机任务Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-09-18
|
||||
*/
|
||||
@Service
|
||||
public class MissionsServiceImpl implements IMissionsService {
|
||||
@Autowired
|
||||
private MissionsMapper missionsMapper;
|
||||
|
||||
/**
|
||||
* 查询无人机任务
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 无人机任务
|
||||
*/
|
||||
@Override
|
||||
public Missions selectMissionsById(Long id) {
|
||||
return missionsMapper.selectMissionsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询无人机任务列表
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 无人机任务
|
||||
*/
|
||||
@Override
|
||||
public List<Missions> selectMissionsList(Missions missions) {
|
||||
return missionsMapper.selectMissionsList(missions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMissions(Missions missions) {
|
||||
return missionsMapper.insertMissions(missions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改无人机任务
|
||||
*
|
||||
* @param missions 无人机任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMissions(Missions missions) {
|
||||
return missionsMapper.updateMissions(missions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除无人机任务
|
||||
*
|
||||
* @param ids 需要删除的无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMissionsByIds(Long[] ids) {
|
||||
return missionsMapper.deleteMissionsByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionsDto getLatest(String gateway) {
|
||||
return missionsMapper.getLatest(gateway);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMissionsByFlightId(Missions missions) {
|
||||
missionsMapper.updateMissionsByFlightId(missions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MissionsDto> list(MissionsListDto missionListDto) {
|
||||
return missionsMapper.list(missionListDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除无人机任务信息
|
||||
*
|
||||
* @param id 无人机任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMissionsById(Long id) {
|
||||
return missionsMapper.deleteMissionsById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.OneClickTakeoffMapper;
|
||||
import com.ruoyi.system.domain.OneClickTakeoff;
|
||||
import com.ruoyi.system.service.IOneClickTakeoffService;
|
||||
|
||||
/**
|
||||
* 一键起飞Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
@Service
|
||||
public class OneClickTakeoffServiceImpl implements IOneClickTakeoffService
|
||||
{
|
||||
@Autowired
|
||||
private OneClickTakeoffMapper oneClickTakeoffMapper;
|
||||
|
||||
/**
|
||||
* 查询一键起飞
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 一键起飞
|
||||
*/
|
||||
@Override
|
||||
public OneClickTakeoff selectOneClickTakeoffById(Long id)
|
||||
{
|
||||
return oneClickTakeoffMapper.selectOneClickTakeoffById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一键起飞列表
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 一键起飞
|
||||
*/
|
||||
@Override
|
||||
public List<OneClickTakeoff> selectOneClickTakeoffList(OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
return oneClickTakeoffMapper.selectOneClickTakeoffList(oneClickTakeoff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOneClickTakeoff(OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
return oneClickTakeoffMapper.insertOneClickTakeoff(oneClickTakeoff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一键起飞
|
||||
*
|
||||
* @param oneClickTakeoff 一键起飞
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOneClickTakeoff(OneClickTakeoff oneClickTakeoff)
|
||||
{
|
||||
return oneClickTakeoffMapper.updateOneClickTakeoff(oneClickTakeoff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一键起飞
|
||||
*
|
||||
* @param ids 需要删除的一键起飞主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOneClickTakeoffByIds(Long[] ids)
|
||||
{
|
||||
return oneClickTakeoffMapper.deleteOneClickTakeoffByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一键起飞信息
|
||||
*
|
||||
* @param id 一键起飞主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOneClickTakeoffById(Long id)
|
||||
{
|
||||
return oneClickTakeoffMapper.deleteOneClickTakeoffById(id);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user