文旅相关逻辑集成
This commit is contained in:
+9
-26
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.nacos.shaded.com.google.gson.Gson;
|
||||
import com.alibaba.nacos.shaded.com.google.gson.JsonObject;
|
||||
import com.central.common.model.Result;
|
||||
import com.central.device.message.ControlEnum;
|
||||
import com.central.device.message.ControlMessageConstant;
|
||||
import com.central.device.util.MapUtil;
|
||||
import com.central.device.util.RequestUtils;
|
||||
@@ -61,33 +62,15 @@ public class ApiDeviceController {
|
||||
@PostMapping("/setting/{deviceId}/property")
|
||||
public Result writeProperties(@RequestBody Map<String,Object> param, @PathVariable("deviceId") String deviceId) throws IOException {
|
||||
String url = baseUrl + "/device/instance/" + deviceId + "/property";
|
||||
|
||||
// JSONObject jsonObject = new JSONObject();
|
||||
// for (Map.Entry entry : param.entrySet()){
|
||||
// jsonObject.put(entry.getKey().toString(),entry.getValue());
|
||||
// }
|
||||
String json = "{\n" +
|
||||
" \"data\": {\n" +
|
||||
"\t \"flight_id\": flight_id,\n" +
|
||||
"\t \"max_speed\": 5,\n" +
|
||||
"\t \"rc_lost_action\": 2,\n" +
|
||||
"\t \"rth_altitude\": 60.0,\n" +
|
||||
"\t \"rth_mode\": 1,\n" +
|
||||
"\t \"security_takeoff_height\": 60.0,\n" +
|
||||
"\t \"target_height\": 70.0,\n" +
|
||||
"\t \"target_latitude\": 39.102603,\n" +
|
||||
"\t \"target_longitude\": 117.711972,\n" +
|
||||
"\t \"commander_mode_lost_action\": 0,\n" +
|
||||
"\t \"commander_flight_mode\": 1,\n" +
|
||||
"\t \"commander_flight_height\": 70.0,\n" +
|
||||
"\t \"simulate_mission\": {\n" +
|
||||
"\t },\n" +
|
||||
"\t \"flight_safety_advance_check\": 0\n" +
|
||||
"\t},\n" +
|
||||
"\t\"method\": \"takeoff_to_point\"\n" +
|
||||
"}";
|
||||
Gson gson = new Gson();
|
||||
JsonObject jsonObject = gson.fromJson(json, JsonObject.class);
|
||||
JsonObject jsonObject;
|
||||
if (ControlEnum.TAKEOFF_TO_POINT.getName().equals(param.get("control"))) {
|
||||
jsonObject = gson.fromJson(ControlMessageConstant.TAKEOFF_TO_POINT, JsonObject.class);
|
||||
} else if (ControlEnum.RETURN_HOME.getName().equals(param.get("control"))) {
|
||||
jsonObject = gson.fromJson(ControlMessageConstant.RETURN_HOME, JsonObject.class);
|
||||
}else {
|
||||
return Result.succeed("暂未开放控制权限");
|
||||
}
|
||||
Map<String, String> result = requestUtils.getPostRequestResultMap(url, jsonObject.toString());
|
||||
return Result.succeed(result,"设置成功");
|
||||
}
|
||||
|
||||
@@ -20,5 +20,7 @@
|
||||
<module>search-center</module>
|
||||
|
||||
<module>device-center</module>
|
||||
|
||||
<module>tourism-center</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
||||
@@ -1,27 +1,25 @@
|
||||
<?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">
|
||||
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-business</artifactId>
|
||||
<version>6.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>tourist-center</artifactId>
|
||||
<description>区域中心</description>
|
||||
|
||||
<artifactId>tourism-center</artifactId>
|
||||
<description>文旅中心</description>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>tourism-core</module>
|
||||
<module>tourism-service</module>
|
||||
<module>tourism-open-api</module>
|
||||
</modules>
|
||||
<dependencies>
|
||||
<!-- 公共实体类模块 -->
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-config</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-log-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-common-spring-boot-starter</artifactId>
|
||||
@@ -30,6 +28,11 @@
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-db-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<!--<version>4.3.1</version>-->
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-redis-spring-boot-starter</artifactId>
|
||||
@@ -42,49 +45,94 @@
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<!-- swagger -->
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>search-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<artifactId>zlt-oss-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations-jakarta</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<!--<dependency>
|
||||
<groupId>com.iking</groupId>
|
||||
<artifactId>iking-common-params</artifactId>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>io.micrometer</groupId>
|
||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.freemarker</groupId>
|
||||
<artifactId>freemarker</artifactId>
|
||||
<version>2.3.30</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>1.1.0.Final</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-core</artifactId>
|
||||
<version>1.7.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>tourism-core</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?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>tourism-center</artifactId>
|
||||
<groupId>com.zlt</groupId>
|
||||
<version>6.0.0</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>tourism-core</artifactId>
|
||||
<name>tourism-core</name>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter -->
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
<version>1.4.6</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.github.jsqlparser</groupId>
|
||||
<artifactId>jsqlparser</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-core</artifactId>
|
||||
<version>1.7.1</version>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>
|
||||
<groupId>com.iking</groupId>
|
||||
<artifactId>iking-iot-spring-boot-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.statemachine</groupId>
|
||||
<artifactId>spring-statemachine-core</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
</build>
|
||||
</project>
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.zlt.tourism.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-26 15:35
|
||||
* @Description: 接口限流
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD})
|
||||
@Documented
|
||||
public @interface Limit {
|
||||
|
||||
/**
|
||||
* 资源的key,唯一
|
||||
* 作用:不同的接口,不同的流量控制
|
||||
*/
|
||||
String key() default "";
|
||||
|
||||
/**
|
||||
* 最多的访问限制次数
|
||||
*/
|
||||
double permitsPerSecond () ;
|
||||
|
||||
/**
|
||||
* 获取令牌最大等待时间
|
||||
*/
|
||||
long timeout();
|
||||
|
||||
/**
|
||||
* 获取令牌最大等待时间,单位(例:分钟/秒/毫秒) 默认:毫秒
|
||||
*/
|
||||
TimeUnit timeunit() default TimeUnit.MILLISECONDS;
|
||||
|
||||
/**
|
||||
* 得不到令牌的提示语
|
||||
*/
|
||||
String msg() default "系统繁忙,请稍后再试.";
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.zlt.tourism.annotation;
|
||||
|
||||
import com.zlt.tourism.annotation.validator.PhoneNumberValidator;
|
||||
|
||||
import javax.validation.Constraint;
|
||||
import javax.validation.Payload;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-09-27 13:45
|
||||
* @Description: 校验手机号注解
|
||||
*/
|
||||
@Constraint(validatedBy = PhoneNumberValidator.class) // 指定我们创建的验证器
|
||||
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.PARAMETER }) // 适用位置
|
||||
@Retention(RetentionPolicy.RUNTIME) // 运行时有效
|
||||
public @interface ValidPhoneNumber {
|
||||
|
||||
String message() default "手机号不合法"; // 默认的错误信息
|
||||
|
||||
Class<?>[] groups() default {}; // 分组
|
||||
|
||||
Class<? extends Payload>[] payload() default {}; // 负载信息
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.zlt.tourism.annotation.validator;
|
||||
|
||||
import com.central.common.utils.StringUtils;
|
||||
import com.zlt.tourism.annotation.ValidPhoneNumber;
|
||||
|
||||
import javax.validation.ConstraintValidator;
|
||||
import javax.validation.ConstraintValidatorContext;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-09-27 13:52
|
||||
* @Description: 手机号验证器
|
||||
*/
|
||||
public class PhoneNumberValidator implements ConstraintValidator<ValidPhoneNumber, String> {
|
||||
|
||||
// 手机号正则表达式(以中国手机号为例)
|
||||
private static final String PHONE_PATTERN = "^1[3-9]\\d{9}$";
|
||||
@Override
|
||||
public boolean isValid(String phoneNumber, ConstraintValidatorContext context) {
|
||||
// 当手机号为null时返回true,交给@Nullable等其他机制处理
|
||||
// 如果需要处理null的情况,可以改为返回false
|
||||
if (StringUtils.isBlank(phoneNumber)) {
|
||||
return true;
|
||||
}
|
||||
return phoneNumber.matches(PHONE_PATTERN); // 校验手机号格式
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
package com.zlt.tourism.aop;
|
||||
|
||||
import com.central.common.model.Result;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.util.concurrent.RateLimiter;
|
||||
import com.zlt.tourism.annotation.Limit;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-26 16:05
|
||||
* @Description: 接口限流aop
|
||||
*/
|
||||
@Slf4j
|
||||
@Aspect
|
||||
@Component
|
||||
public class LimitAop {
|
||||
|
||||
/**
|
||||
* 不同的接口,不同的流量控制
|
||||
* map的key为 Limiter.key
|
||||
*/
|
||||
private final Map<String, RateLimiter> limitMap = Maps.newConcurrentMap();
|
||||
|
||||
@Around("@annotation(com.zlt.tourism.annotation.Limit)")
|
||||
public Object around(ProceedingJoinPoint joinPoint) throws Throwable{
|
||||
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
||||
Method method = signature.getMethod();
|
||||
//拿limit的注解
|
||||
Limit limit = method.getAnnotation(Limit.class);
|
||||
if (limit != null) {
|
||||
//key作用:不同的接口,不同的流量控制
|
||||
String key=limit.key();
|
||||
RateLimiter rateLimiter = null;
|
||||
//验证缓存是否有命中key
|
||||
if (!limitMap.containsKey(key)) {
|
||||
// 创建令牌桶
|
||||
rateLimiter = RateLimiter.create(limit.permitsPerSecond());
|
||||
limitMap.put(key, rateLimiter);
|
||||
log.info("新建了令牌桶={},容量={}",key,limit.permitsPerSecond());
|
||||
}
|
||||
rateLimiter = limitMap.get(key);
|
||||
// 拿令牌
|
||||
boolean acquire = rateLimiter.tryAcquire(limit.timeout(), limit.timeunit());
|
||||
// 拿不到命令,直接返回异常提示
|
||||
if (!acquire) {
|
||||
log.debug("令牌桶={},获取令牌失败",key);
|
||||
//this.responseFail(limit.msg());
|
||||
Result<Object> resultData = Result.failed(-1, limit.msg());
|
||||
return resultData;
|
||||
}
|
||||
}
|
||||
return joinPoint.proceed();
|
||||
}
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.zlt.tourism.config;
|
||||
|
||||
import com.zlt.tourism.constant.OrderConstant;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.statemachine.config.EnableStateMachine;
|
||||
import org.springframework.statemachine.config.StateMachineConfigurerAdapter;
|
||||
import org.springframework.statemachine.config.builders.StateMachineStateConfigurer;
|
||||
import org.springframework.statemachine.config.builders.StateMachineTransitionConfigurer;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-05 18:35
|
||||
* @Description: 订单状态机
|
||||
*/
|
||||
|
||||
@Configuration
|
||||
@EnableStateMachine
|
||||
public class OrderStatusMachineConfig extends StateMachineConfigurerAdapter<OrderConstant.OrderStatusEnum, OrderConstant.OrderStatusChangeEventEnum> {
|
||||
|
||||
/**
|
||||
* 配置状态
|
||||
*/
|
||||
@Override
|
||||
public void configure(StateMachineStateConfigurer<OrderConstant.OrderStatusEnum, OrderConstant.OrderStatusChangeEventEnum> states) throws Exception {
|
||||
states.withStates()
|
||||
.initial(OrderConstant.OrderStatusEnum.WAITING_IN_LINE)
|
||||
.end(OrderConstant.OrderStatusEnum.TASK_COMPLETED)
|
||||
.states(EnumSet.allOf(OrderConstant.OrderStatusEnum.class));
|
||||
}
|
||||
|
||||
/**
|
||||
* 配置状态转换事件关系
|
||||
*/
|
||||
@Override
|
||||
public void configure(StateMachineTransitionConfigurer<OrderConstant.OrderStatusEnum, OrderConstant.OrderStatusChangeEventEnum> transitions) throws Exception {
|
||||
transitions.withExternal().source(OrderConstant.OrderStatusEnum.WAITING_IN_LINE).target(OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS)
|
||||
.event(OrderConstant.OrderStatusChangeEventEnum.TASK)
|
||||
.and()
|
||||
.withExternal().source(OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS).target(OrderConstant.OrderStatusEnum.TASK_COMPLETED)
|
||||
.event(OrderConstant.OrderStatusChangeEventEnum.FINISH);
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.zlt.tourism.config;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.amqp.core.Binding;
|
||||
import org.springframework.amqp.core.BindingBuilder;
|
||||
import org.springframework.amqp.core.Queue;
|
||||
import org.springframework.amqp.core.TopicExchange;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
public class QueueConfig {
|
||||
|
||||
@Bean
|
||||
public Queue notifyMsgOrderQueue() {
|
||||
return new Queue("tourism.task.order", true);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public TopicExchange notifyMsgTopicExchange() {
|
||||
return new TopicExchange("tourism_task_order");
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public Binding notifyMsgQueueBindings() {
|
||||
return BindingBuilder
|
||||
.bind(notifyMsgOrderQueue())
|
||||
.to(notifyMsgTopicExchange())
|
||||
.with("tourism.task.order.#");
|
||||
}
|
||||
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.zlt.tourism.config;
|
||||
|
||||
import com.central.common.iot.IoTWebSocketClient;
|
||||
import com.zlt.tourism.manager.IoTWebSocketMsgManager;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-09 15:09
|
||||
* @Description: webSocket配置
|
||||
*/
|
||||
@Configuration
|
||||
public class WebSocketConfig {
|
||||
|
||||
/**
|
||||
* WebSocket客户端
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public IoTWebSocketClient ioTWebSocketClient() {
|
||||
return new IoTWebSocketClient(iotMessageHandler());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 消息处理器
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public IoTWebSocketMsgManager iotMessageHandler() {
|
||||
return new IoTWebSocketMsgManager();
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
package com.zlt.tourism.constant;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-10 13:48
|
||||
* @Description: 飞机
|
||||
*/
|
||||
public interface DeviceConstant {
|
||||
|
||||
enum DroneStatus{
|
||||
|
||||
IdelStatus("-1","待命"),
|
||||
BeginCheckTakeOff("0", "开始起飞自检"),
|
||||
SelfCheckError("1", "自检错误"),
|
||||
SelfCheckErrorClaspPod("101", "吊舱卡扣自检错误"),
|
||||
SelfCheckErrorClaspBattery("102", "电池卡扣自检错误"),
|
||||
SelfCheckErrorSDKModel("103", "飞机SDK模式检查错误"),
|
||||
SelfCheckErrorFixedSolution("104", "飞机定位模式错误"),
|
||||
SelfCheckErrorSToken("105", "获取TOKEN失败"),
|
||||
SelfCheckErrorRouteRequest("106", "请求航线失败"),
|
||||
SelfCheckErrorLandPointRequest("107", "请求备降点失败"),
|
||||
SelfCheckErrorWaypointTooLong("108", "航线太长"),
|
||||
SelfCheckErrorWaypointTooFar("109", "第一个航点太远"),
|
||||
SelfCheckErrorFixStable("110", "2s内飞机位置偏差过大"),
|
||||
SelfCheckErrorAttitudeSlope("114", "2s内飞机姿态位置偏差过大"),
|
||||
SelfCheckErrorPowerLower("115", "电量过低"),
|
||||
SelfCheckErrorPodTempHeigh("116", "吊舱温度过高"),
|
||||
SelfCheckErrorSatellitesLess("117", "卫星颗数太少"),
|
||||
SelfCheckErrorWaypointTooHight("118", "航线太高"),
|
||||
TakeOffModeError("130", "起飞失败"),
|
||||
ProcessError ("2" ,"流程执行出错") ,
|
||||
AirReadyTakeOff ("3" ,"准备起飞") ,
|
||||
NestMISSIONCmd ("31" ,"提供室内联动时SLAM使用") ,
|
||||
AirReadyFLY ("32" ,"开始起飞") ,
|
||||
AirTakeOff ("4" ,"起飞") ,
|
||||
ReportDockCloseWindow ("5" , "达到指定高度") ,
|
||||
WpExecute ("6" ,"执行任务") ,
|
||||
WpExecutIngRequestReturn ( "61" ,"执行航线过程中 距离机库小于200米发送返航消息"),
|
||||
AirRequestReturn ( "7" ,"请求返航"),
|
||||
ReadyRequestReturn ("71" ,"准备请求返航") ,
|
||||
AirBeginReturn ( "8" ,"开始返航"),
|
||||
AirLandSuccess ("9" ,"降落完成") ,
|
||||
LandAndImgSuccess ("10" ,"降落并且图片上传完成") ,
|
||||
AirLandAlternatePoint ("91","降落至备降点") ,
|
||||
LandAndYawError ("140" ,"降落自检偏航误差过大") ,
|
||||
LandAndAttitudeError ("141","降落自检姿态误差过大") ,
|
||||
LandAndPosError ("142","降落自检位置误差过大") ;
|
||||
|
||||
|
||||
DroneStatus(String code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private String code;
|
||||
private String desc;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
enum DockStatus{
|
||||
|
||||
ALARM("0","报警中"),
|
||||
ORIGINAL("1", "回原中"),
|
||||
STANDBY("6", "待机中"),
|
||||
TAKEOFFSELFCHECK("7", "起飞自检中"),
|
||||
TAKEOFF("8", "起飞中"),
|
||||
TAKEOFFREADY("9", "起飞准备好"),
|
||||
NOTIFYAIRTAKEOFF("91", "通知飞机起飞"),
|
||||
TAKEOFFRESETSTARTED("10", "起飞复位开始"),
|
||||
TAKEOFFRESETINPROGRESS("101", "起飞复位中"),
|
||||
EXECUTINGMISSION("11", "执行任务中"),
|
||||
LANDINGSELFCHECKINPROGRESS("12", "降落自检中"),
|
||||
LANDINGINPROGRESS("13", "降落中"),
|
||||
LANDINGREADY("14", "降落准备好"),
|
||||
LANDINGRESETINPROGRESS("15", "降落复位中"),
|
||||
LANDINGRESETCOMPLETE("16", "降落复位完成"),
|
||||
REINSERTINGTHEPOD("1001", "吊舱卡扣问题重新插入吊舱"),
|
||||
REINSERTINGTHEBATTERY("1002", "电池卡扣问题重新插入电池"),
|
||||
REPOWERINGTHEDRONE("1004", "飞机重新上电"),
|
||||
ABORTTAKEOFF("1005", "取消起飞")
|
||||
;
|
||||
private String name;
|
||||
private String value;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
DockStatus(String name, String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static String getValueByName(String name) {
|
||||
if (Objects.isNull(name)) {
|
||||
return "";
|
||||
}
|
||||
for (DockStatus type : DockStatus.values()) {
|
||||
if (name.equals(type.name)) {
|
||||
return type.getValue();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return name;
|
||||
}
|
||||
public String getDesc() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.zlt.tourism.constant;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-05
|
||||
* @Description: 订单相关常量
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public interface OrderConstant {
|
||||
|
||||
/**
|
||||
* 订单状态:1:排队中 2:待支付 3:已支付 4:任务中 5:任务完成 6:取消排队
|
||||
*/
|
||||
enum OrderStatusEnum {
|
||||
WAITING_IN_LINE(1, "排队中"),
|
||||
PENDING_PAYMENT(2,"待支付"),
|
||||
PAYMENT_COMPLETED(3,"已支付"),
|
||||
TASK_IN_PROGRESS(4,"任务中"),
|
||||
TASK_COMPLETED(5,"任务完成"),
|
||||
CANCEL_IN_LINE(6,"取消排队");
|
||||
|
||||
OrderStatusEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
enum OrderTypeEnum {
|
||||
SCAN_CODE(1, "扫码排队订单"),
|
||||
OTHER(2,"其他订单"),
|
||||
;
|
||||
|
||||
OrderTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @description:订单状态转换行为
|
||||
*/
|
||||
enum OrderStatusChangeEventEnum {
|
||||
FINISH,
|
||||
TASK;
|
||||
}
|
||||
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.zlt.tourism.constant;
|
||||
|
||||
/**
|
||||
* @Author: mengxianwang
|
||||
* @Date: 2023-12-08-11:31
|
||||
* @Description: 航迹相关常量
|
||||
*/
|
||||
public interface RouteConstant {
|
||||
|
||||
/**
|
||||
* 航线生成类型 0:自动航线生成,1:ikingPowerLine
|
||||
*/
|
||||
enum RouteGenerateTypeEnum {
|
||||
AUTO_NODE(0, "NODE自动生成"),
|
||||
IKING_POWER_LINE(1,"IkingPowerLine生成"),
|
||||
MANUAL_MODIFICATION(2,"手动修改")
|
||||
;
|
||||
|
||||
RouteGenerateTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 航线转弯类型 1 定点转弯 2 协调转弯
|
||||
*/
|
||||
enum RouteTurnTypeEnum {
|
||||
FIX_POINT_TURN(1, "定点转弯"),
|
||||
COORDINATED_TURN(2,"协调转弯"),
|
||||
;
|
||||
|
||||
RouteTurnTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package com.zlt.tourism.core;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author: wdkk
|
||||
* @create: 2023--02--28
|
||||
* @Description: 基本分页类
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("分页参数入参")
|
||||
public class BasePage implements Serializable {
|
||||
private static final long serialVersionUID = -8763101460523518389L;
|
||||
|
||||
@ApiModelProperty("分页参数 当前页数")
|
||||
private int page;
|
||||
|
||||
@ApiModelProperty("分页参数 当前页容量")
|
||||
private int limit;
|
||||
|
||||
public int getPage() {
|
||||
if (page == 0) {
|
||||
page = 1;
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
if (limit == 0) {
|
||||
limit = 10;
|
||||
}
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分页
|
||||
* @return
|
||||
*/
|
||||
public Pager getPager(){
|
||||
Pager pager = new Pager();
|
||||
pager.setPageIndex(getPage());
|
||||
pager.setPageSize(getLimit());
|
||||
return pager;
|
||||
}
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
package com.zlt.tourism.core;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 加分页通用业务实现类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @create 2023/8/8 15:46
|
||||
**/
|
||||
public class BaseServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M, T> implements IBaseService<T>, Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 获取分页
|
||||
*
|
||||
* @param pager 分页对象
|
||||
* @param wrapper 查询实体
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageInfo<T> selectPageList(Pager pager, Wrapper<T> wrapper) {
|
||||
IPage<T> data = baseMapper.selectPage(this.toPage(pager), wrapper);
|
||||
return this.toPageInfo(pager, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将pager转换为分页对象
|
||||
*
|
||||
* @param pager 分页
|
||||
* @return
|
||||
*/
|
||||
protected IPage toPage(Pager pager) {
|
||||
Page page = new Page<>();
|
||||
page.setCurrent(pager.getPageIndex());
|
||||
page.setSize(pager.getPageSize());
|
||||
page.setTotal(pager.getTotal());
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将IPage转化为PageInfo
|
||||
*
|
||||
* @param pager 分页
|
||||
* @param data 数据
|
||||
* @return
|
||||
*/
|
||||
protected PageInfo<T> toPageInfo(Pager pager, IPage<T> data) {
|
||||
PageInfo<T> pageInfo = new PageInfo<>(data.getRecords());
|
||||
|
||||
pageInfo.setTotal(data.getTotal());
|
||||
pageInfo.setPageNum(Integer.parseInt(String.valueOf(pager.getPageIndex())));
|
||||
pageInfo.setPageSize(Integer.parseInt(String.valueOf(pager.getPageSize())));
|
||||
pageInfo.setPages(Integer.parseInt(String.valueOf(data.getPages())));
|
||||
if (pager.getPageIndex() == data.getPages()) {
|
||||
pageInfo.setNextPage(Integer.parseInt(String.valueOf(pager.getPageIndex())));
|
||||
} else {
|
||||
pageInfo.setNextPage(Integer.parseInt(String.valueOf(pager.getPageIndex())) + 1);
|
||||
}
|
||||
|
||||
pageInfo.setHasNextPage(data.getPages() > pager.getPageIndex());
|
||||
pageInfo.setIsFirstPage(pager.getPageIndex() == 1);
|
||||
pageInfo.setIsLastPage(pager.getPageIndex() == data.getPages());
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 将 MyBatis-Plus 的 IPage 转换为 Spring Data 的 PageInfo
|
||||
* @param iPage MyBatis-Plus 的 IPage 对象
|
||||
* @return Spring Data 的 PageInfo 对象
|
||||
*/
|
||||
public static <T> PageInfo<T> convertToPageInfo(IPage<T> iPage) {
|
||||
PageInfo<T> pageInfo = new PageInfo<>();
|
||||
pageInfo.setPageNum((int) iPage.getCurrent());
|
||||
pageInfo.setPageSize((int) iPage.getSize());
|
||||
pageInfo.setTotal(iPage.getTotal());
|
||||
pageInfo.setList(iPage.getRecords());
|
||||
pageInfo.setPages((int) iPage.getPages());
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将pager转换为分页对象
|
||||
*
|
||||
* @param pager 分页
|
||||
* @return
|
||||
*/
|
||||
protected Page getPage(Pager pager) {
|
||||
Page page = new Page<>();
|
||||
page.setCurrent(pager.getPageIndex());
|
||||
page.setSize(pager.getPageSize());
|
||||
page.setTotal(pager.getTotal());
|
||||
return page;
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.zlt.tourism.core;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
|
||||
/**
|
||||
* 加分页通用业务接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @create 2023/8/8 15:35
|
||||
**/
|
||||
public interface IBaseService <T> extends IService<T> {
|
||||
|
||||
/**
|
||||
* 获取分页
|
||||
* @param pager 分页对象
|
||||
* @param wrapper 查询实体
|
||||
* @return
|
||||
*/
|
||||
PageInfo<T> selectPageList(Pager pager, Wrapper<T> wrapper);
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.zlt.tourism.core;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @create 2023/8/8 15:41
|
||||
**/
|
||||
public class Pager implements Serializable {
|
||||
|
||||
/**
|
||||
* 分页索引
|
||||
*/
|
||||
private long pageIndex;
|
||||
|
||||
/**
|
||||
* 分页大小
|
||||
*/
|
||||
private long pageSize;
|
||||
|
||||
/**
|
||||
* 分页数
|
||||
*/
|
||||
private long pageCount;
|
||||
|
||||
/**
|
||||
* 总记录数
|
||||
*/
|
||||
private long total;
|
||||
|
||||
|
||||
/**
|
||||
* 默认构造函数
|
||||
*/
|
||||
public Pager() {
|
||||
this.setPageIndex(1);
|
||||
this.setPageSize(10);
|
||||
this.setPageCount(1);
|
||||
this.setTotal(0);
|
||||
}
|
||||
|
||||
public Pager(long index, long size, long count, long total) {
|
||||
this.pageIndex = index;
|
||||
this.pageSize = size;
|
||||
this.pageCount = count;
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public long getPageIndex() {
|
||||
return pageIndex;
|
||||
}
|
||||
|
||||
public void setPageIndex(long pageIndex) {
|
||||
this.pageIndex = pageIndex;
|
||||
}
|
||||
|
||||
public long getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(long pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public long getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(long total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public long getPageCount() {
|
||||
return pageCount;
|
||||
}
|
||||
|
||||
public void setPageCount(long pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
package com.zlt.tourism.core;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.central.db.utils.PageUtils;
|
||||
import org.apache.http.HttpStatus;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 返回数据
|
||||
*
|
||||
* @author lishilin
|
||||
* @date 2020/03/04
|
||||
*/
|
||||
public class StationResult extends HashMap<String, Object> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 返回结果错误码
|
||||
*/
|
||||
public final static String FIELD_FLAG = "flag";
|
||||
|
||||
/**
|
||||
* 返回提示信息
|
||||
*/
|
||||
public final static String FIELD_MESSAGE = "msg";
|
||||
|
||||
/**
|
||||
* 返回结果正文内容
|
||||
*/
|
||||
public final static String FIELD_DATA = "data";
|
||||
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
public final static Integer FLAG_SUCCESS = 0;
|
||||
|
||||
/**
|
||||
* 错误
|
||||
*/
|
||||
public final static Integer FLAG_FAILURE = -1;
|
||||
|
||||
/**
|
||||
* 缺省成功 提示
|
||||
*/
|
||||
public final static String MESSAGE_SUCCESS = "success";
|
||||
|
||||
/**
|
||||
* 其他未知系统错误 提示
|
||||
*/
|
||||
public final static String MESSAGE_ERROR_UNKNOWN = "未知异常,请联系管理员";
|
||||
|
||||
public StationResult() {
|
||||
put(FIELD_FLAG, FLAG_SUCCESS);
|
||||
put(FIELD_MESSAGE, MESSAGE_SUCCESS);
|
||||
}
|
||||
|
||||
public Integer getFlag() {
|
||||
if (!containsKey(FIELD_FLAG)) {
|
||||
return FLAG_FAILURE;
|
||||
}
|
||||
Object val = get(FIELD_FLAG);
|
||||
if (null == val || !(val instanceof Integer)) {
|
||||
return FLAG_FAILURE;
|
||||
}
|
||||
return (Integer)val;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return (String)getOrDefault(FIELD_MESSAGE, "");
|
||||
}
|
||||
|
||||
public static StationResult error() {
|
||||
return error(HttpStatus.SC_INTERNAL_SERVER_ERROR, MESSAGE_ERROR_UNKNOWN);
|
||||
}
|
||||
|
||||
public static StationResult error(String msg) {
|
||||
return error(HttpStatus.SC_INTERNAL_SERVER_ERROR, msg);
|
||||
}
|
||||
|
||||
public static StationResult error(int code, String msg) {
|
||||
StationResult result = new StationResult();
|
||||
result.put(FIELD_FLAG, code);
|
||||
result.put(FIELD_MESSAGE, msg);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static StationResult ok(String msg) {
|
||||
StationResult result = new StationResult();
|
||||
result.put(FIELD_MESSAGE, msg);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static StationResult ok(Map<String, Object> map) {
|
||||
StationResult result = new StationResult();
|
||||
result.putAll(map);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static StationResult ok() {
|
||||
return new StationResult();
|
||||
}
|
||||
|
||||
public static StationResult ok(PageUtils pageUtil) {
|
||||
StationResult r = new StationResult();
|
||||
r.put((String)"msg", MESSAGE_SUCCESS);
|
||||
r.put((String)"data", pageUtil.getList());
|
||||
r.put((String)"count", pageUtil.getTotalCount());
|
||||
return r;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StationResult put(String key, Object value) {
|
||||
super.put(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public static StationResult ok(Object ob) {
|
||||
StationResult result = new StationResult();
|
||||
result.put("code",0);
|
||||
result.put("msg","success");
|
||||
result.put("data", ob);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static StationResult ok(JSONObject obj) {
|
||||
StationResult result = new StationResult();
|
||||
result.put("code",0);
|
||||
result.put("msg","success");
|
||||
result.put("data", obj);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static StationResult success(String obj) {
|
||||
StationResult result = new StationResult();
|
||||
result.put("code",0);
|
||||
result.put("msg","success");
|
||||
result.put("data", obj);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.AudioFileInfoEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-11-15
|
||||
* @Description: 视频录制与用户关系
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface AudioFileInfoDao extends SuperMapper<AudioFileInfoEntity> {
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.domain.BiaxVideoExtListDO;
|
||||
import com.zlt.tourism.model.tourism.BiaxVideoEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 双轴视频持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 双轴视频持久层接口类
|
||||
* @create 2024/7/18 8:28
|
||||
**/
|
||||
@Mapper
|
||||
public interface BiaxVideoDao extends BaseMapper<BiaxVideoEntity> {
|
||||
|
||||
/**
|
||||
* 获取扩展列表
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
List<BiaxVideoExtListDO> getExtList(@Param("map") Map map);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.BiaxVideoDownTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 双轴视频下轴标记持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 双轴视频下轴标记持久层接口类
|
||||
* @create 2024/7/18 8:54
|
||||
**/
|
||||
@Mapper
|
||||
public interface BiaxVideoDownTagDao extends BaseMapper<BiaxVideoDownTagEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.BiaxVideoFeatureTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 双轴视频特色景观标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 双轴视频特色景观标签持久层接口类
|
||||
* @create 2024/7/24 14:28
|
||||
**/
|
||||
@Mapper
|
||||
public interface BiaxVideoFeatureTagDao extends BaseMapper<BiaxVideoFeatureTagEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.BiaxVideoUpTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 双轴视频上轴标记持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 双轴视频上轴标记持久层接口类
|
||||
* @create 2024/7/18 8:54
|
||||
**/
|
||||
@Mapper
|
||||
public interface BiaxVideoUpTagDao extends BaseMapper<BiaxVideoUpTagEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.FeaturedPhotoEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 景点精选图片持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 景点精选图片持久层接口类
|
||||
* @create 2024/7/18 8:22
|
||||
**/
|
||||
@Mapper
|
||||
public interface FeaturedPhotoDao extends BaseMapper<FeaturedPhotoEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.FeaturedRouteEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 景点精选航线持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 景点精选航线持久层接口类
|
||||
* @create 2024/7/18 8:22
|
||||
**/
|
||||
@Mapper
|
||||
public interface FeaturedRouteDao extends BaseMapper<FeaturedRouteEntity> {
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.iking.IkDeviceEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 设备持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 设备持久层接口类
|
||||
* @create 2024/7/25 16:26
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface IkDeviceDao extends BaseMapper<IkDeviceEntity> {
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
List<IkDeviceEntity> getList(@Param("map") Map map);
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.IkMissionEntity;
|
||||
import com.zlt.tourism.query.MissionServicePageQuery;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lishilin
|
||||
* @email lishilin4510@163.com
|
||||
* @date 2020-05-19 16:54:32
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface IkMissionDao extends SuperMapper<IkMissionEntity> {
|
||||
|
||||
IPage<IkMissionEntity> getPage(Page<IkMissionEntity> queryPage, @Param("params") MissionServicePageQuery params);
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.iking.IkOrganizationEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 机构持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 机构持久层接口类
|
||||
* @create 2024/8/7 14:32
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface IkOrganizationDao extends BaseMapper<IkOrganizationEntity> {
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zlt.tourism.model.iking.IkRouteEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 航线持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 航线持久层接口类
|
||||
* @create 2024/8/7 9:44
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface IkRouteDao extends BaseMapper<IkRouteEntity> {
|
||||
|
||||
/**
|
||||
* 获取坐标附近的航线列表
|
||||
*
|
||||
* @param map 坐标信息
|
||||
* @return
|
||||
*/
|
||||
List<IkRouteEntity> getNearbyRouteList(@Param("map") Map map);
|
||||
|
||||
/**
|
||||
* 我收藏景点分页
|
||||
*
|
||||
* @param page 分页信息
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
IPage<IkRouteEntity> getNearbyRoutePageList(Page<IkRouteEntity> page, @Param("map") Map map);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.IkSysUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-10-12
|
||||
* @Description: 虎视用户
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface IkSysUserDao extends SuperMapper<IkSysUserEntity> {
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionImageEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 任务图片持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务图片持久层接口类
|
||||
* @create 2024/8/31 11:18
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface MissionImageDao extends SuperMapper<MissionImageEntity> {
|
||||
|
||||
/**
|
||||
* 根据设备ID获取最新一张照片
|
||||
* @param map 设备ID
|
||||
* @return
|
||||
*/
|
||||
MissionImageEntity getLastOneByDeviceId(@Param("map") Map map);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionImageUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-10-17
|
||||
* @Description: 任务图片所属用户
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface MissionImageUserDao extends SuperMapper<MissionImageUserEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionRecordVideoUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-11-15
|
||||
* @Description: 视频录制与用户关系
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface MissionRecordVideoUserDao extends SuperMapper<MissionRecordVideoUserEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.MyFavoriteEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 我的收藏持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 我的收藏持久层接口类
|
||||
* @create 2024/7/18 9:12
|
||||
**/
|
||||
@Mapper
|
||||
public interface MyFavoriteDao extends BaseMapper<MyFavoriteEntity> {
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.domain.PanoramaPhotoExtListDO;
|
||||
import com.zlt.tourism.model.tourism.PanoramaPhotoEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 全景照片持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 全景照片持久层接口类
|
||||
* @create 2024/7/18 8:33
|
||||
**/
|
||||
@Mapper
|
||||
public interface PanoramaPhotoDao extends BaseMapper<PanoramaPhotoEntity> {
|
||||
|
||||
/**
|
||||
* 获取扩展列表
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
List<PanoramaPhotoExtListDO> getExtList(@Param("map") Map map);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 全景照片特色景观标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 全景照片特色景观标签持久层接口类
|
||||
* @create 2024/7/24 14:28
|
||||
**/
|
||||
@Mapper
|
||||
public interface PanoramaPhotoFeatureTagDao extends BaseMapper<PanoramaPhotoFeatureTagEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.PanoramaPhotoTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 全景照片标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 全景照片标签持久层接口类
|
||||
* @create 2024/7/18 8:33
|
||||
**/
|
||||
@Mapper
|
||||
public interface PanoramaPhotoTagDao extends BaseMapper<PanoramaPhotoTagEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.PopularScenicSpotEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 热门景点持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 热门景点持久层接口类
|
||||
* @create 2024/7/18 8:48
|
||||
**/
|
||||
@Mapper
|
||||
public interface PopularScenicSpotDao extends BaseMapper<PopularScenicSpotEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.PopularTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 热门标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 热门标签持久层接口类
|
||||
* @create 2024/7/18 8:48
|
||||
**/
|
||||
@Mapper
|
||||
public interface PopularTagDao extends BaseMapper<PopularTagEntity> {
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.dto.other.IndustryDTO;
|
||||
import com.zlt.tourism.model.tourism.ResourceRolesIndustryEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 资源角色与行业类型对应关系
|
||||
*
|
||||
* @author xulinfei
|
||||
* @email xulinfei@ikingtec.com
|
||||
* @date 2021-04-20 09:30:26
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface ResourceRolesIndustryDao extends BaseMapper<ResourceRolesIndustryEntity> {
|
||||
|
||||
/**
|
||||
* 根据用户ID获取行业信息
|
||||
*
|
||||
* @param map 用户ID
|
||||
* @return
|
||||
*/
|
||||
List<IndustryDTO> findIndustryByUserId(@Param("map") Map map);
|
||||
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zlt.tourism.model.tourism.ScenicSpotEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 景点持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 景点持久层接口类
|
||||
* @create 2024/7/17 16:04
|
||||
**/
|
||||
@Mapper
|
||||
public interface ScenicSpotDao extends BaseMapper<ScenicSpotEntity>{
|
||||
|
||||
/**
|
||||
* 景点分页
|
||||
*
|
||||
* @param page 分页信息
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
IPage<ScenicSpotEntity> getScenicSpotPageList(Page<ScenicSpotEntity> page, @Param("map") Map map);
|
||||
|
||||
/**
|
||||
* 热门景点分页
|
||||
*
|
||||
* @param page 分页信息
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
IPage<ScenicSpotEntity> getPopularScenicSpotPageList(Page<ScenicSpotEntity> page, @Param("map") Map map);
|
||||
|
||||
/**
|
||||
* 热门标签景点分页
|
||||
*
|
||||
* @param page 分页信息
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
IPage<ScenicSpotEntity> getPopularTagPageList(Page<ScenicSpotEntity> page, @Param("map") Map map);
|
||||
|
||||
/**
|
||||
* 我收藏景点分页
|
||||
*
|
||||
* @param page 分页信息
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
IPage<ScenicSpotEntity> getMyFavoritePageList(Page<ScenicSpotEntity> page, @Param("map") Map map);
|
||||
|
||||
/**
|
||||
* 获取附近景点列表
|
||||
*
|
||||
* @param map 查询条件
|
||||
* @return
|
||||
*/
|
||||
List<ScenicSpotEntity> getNearbyList(@Param("map") Map map);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.ScenicSpotDeviceEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 景点与设备关系持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 景点与设备关系持久层接口类
|
||||
* @create 2024/7/18 8:38
|
||||
**/
|
||||
@Mapper
|
||||
public interface ScenicSpotDeviceDao extends BaseMapper<ScenicSpotDeviceEntity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.ScenicSpotTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 景点标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 景点标签持久层接口类
|
||||
* @create 2024/7/18 8:43
|
||||
**/
|
||||
@Mapper
|
||||
public interface ScenicSpotTagDao extends BaseMapper<ScenicSpotTagEntity> {
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.dto.other.StationControlDTO;
|
||||
import com.zlt.tourism.model.tourism.StationControlEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 地面站控制权限表
|
||||
*
|
||||
* @author xulinfei
|
||||
* @email xulinfei@ikingtec.com
|
||||
* @date 2020-12-28 18:39:00
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
public interface StationControlDao extends BaseMapper<StationControlEntity> {
|
||||
|
||||
/**
|
||||
* 根据用户ID获取控制权限列表
|
||||
*
|
||||
* @param map 用户ID
|
||||
* @return
|
||||
*/
|
||||
List<StationControlDTO> findControlByUserId(@Param("map") Map map);
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.tourism.TourismOrderEnity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-04
|
||||
* @Description: 订单dao
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface TourismOrderDao extends SuperMapper<TourismOrderEnity> {
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.tourism.TourismOrderStatusEnity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-26
|
||||
* @Description: 订单状态
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface TourismOrderStatusDao extends SuperMapper<TourismOrderStatusEnity> {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.TourismStreamerEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 文旅主播持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 文旅主播持久层接口类
|
||||
* @create 2024/7/18 9:03
|
||||
**/
|
||||
@Mapper
|
||||
public interface TourismStreamerDao extends BaseMapper<TourismStreamerEntity> {
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.tourism.TourismTagEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 标签持久层接口类
|
||||
* @create 2024/7/16 13:31
|
||||
**/
|
||||
@Mapper
|
||||
public interface TourismTagDao extends BaseMapper<TourismTagEntity> {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.tourism.TourismUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 标签持久层接口类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 用户持久层接口类
|
||||
* @create 2024/7/16 13:31
|
||||
**/
|
||||
@Mapper
|
||||
public interface TourismUserDao extends SuperMapper<TourismUserEntity> {
|
||||
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
package com.zlt.tourism.domain;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 双轴视频列表视图实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 双轴视频列表视图实体类
|
||||
* @create 2024/7/18 8:26
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("文旅/双轴视频列表视图实体类")
|
||||
public class BiaxVideoExtListDO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 双轴视频名称
|
||||
*/
|
||||
@ApiModelProperty("双轴视频名称")
|
||||
private String biaxVideoName;
|
||||
|
||||
/**
|
||||
* 景点ID
|
||||
*/
|
||||
@ApiModelProperty("景点ID")
|
||||
private Long scenicSpotId;
|
||||
|
||||
/**
|
||||
* 航线ID
|
||||
*/
|
||||
@ApiModelProperty("航线ID")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 视频文件
|
||||
*/
|
||||
@ApiModelProperty("视频文件")
|
||||
private String videoFile;
|
||||
|
||||
/**
|
||||
* 视频时长
|
||||
*/
|
||||
@ApiModelProperty("视频时长")
|
||||
private String videoMins;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty("经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty("纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@ApiModelProperty("排序号")
|
||||
private Integer orderNumber;
|
||||
|
||||
/**
|
||||
* 创建人员ID
|
||||
*/
|
||||
@ApiModelProperty("创建人员ID")
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新人员编码
|
||||
*/
|
||||
@ApiModelProperty("更新人员编码")
|
||||
private Long updateUserId;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty("更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
package com.zlt.tourism.domain;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 全景照片扩展实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 全景照片扩展实体类
|
||||
* @create 2024/7/18 8:31
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("文旅/全景照片扩展实体类")
|
||||
public class PanoramaPhotoExtListDO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 景点ID
|
||||
*/
|
||||
@ApiModelProperty("景点ID")
|
||||
private Long scenicSpotId;
|
||||
|
||||
/**
|
||||
* 照片名称
|
||||
*/
|
||||
@ApiModelProperty("照片名称")
|
||||
private String photoName;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 附件ID
|
||||
*/
|
||||
@ApiModelProperty("附件ID")
|
||||
private String fileId;
|
||||
|
||||
/**
|
||||
* 附件名称
|
||||
*/
|
||||
@ApiModelProperty("附件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 附件URL
|
||||
*/
|
||||
@ApiModelProperty("附件URL")
|
||||
private String fileUrl;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@ApiModelProperty("排序号")
|
||||
private Integer orderNumber;
|
||||
|
||||
/**
|
||||
* 创建人员ID
|
||||
*/
|
||||
@ApiModelProperty("创建人员ID")
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
/*@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新人员编码
|
||||
*/
|
||||
@ApiModelProperty("更新人员编码")
|
||||
private Long updateUserId;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty("更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
/*@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
|
||||
private Date updatedAt;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty("经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty("纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/**
|
||||
* 高度
|
||||
*/
|
||||
@ApiModelProperty("高度")
|
||||
private BigDecimal altitude;
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
package com.zlt.tourism.dto.device;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 设备传输实体
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 设备传输实体
|
||||
* @create 2024/7/24 9:40
|
||||
**/
|
||||
@ApiModel("设备传输实体类")
|
||||
@Data
|
||||
public class DeviceDetailDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 旧表sn
|
||||
*/
|
||||
@ApiModelProperty(value = "旧表sn")
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 设备SN
|
||||
*/
|
||||
@ApiModelProperty(value = "设备id 与发货铭牌一致")
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 控制指令版本,0:v1.0(老) 1:v2.0(新)
|
||||
*/
|
||||
@ApiModelProperty(value = "控制指令版本,0:v1.0(老ws) 1:v2.0(新mqtt")
|
||||
private Integer cmdVersion;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 设备类型 对于机库 1001:固定机库,1002:车载机库, 2001:旋翼飞机,2002:固定翼
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100, 4001:监控摄像头")
|
||||
private Integer deviceType;
|
||||
|
||||
/**
|
||||
* 设备位置 经度
|
||||
*/
|
||||
@ApiModelProperty(value = "设备位置 经度,如果是圣机库,那么是机库中心经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/**
|
||||
* 设备位置 纬度
|
||||
*/
|
||||
@ApiModelProperty(value = "设备位置 纬度,如果是圣机库,那么是机库中心纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/**
|
||||
* 设备位置 海拔
|
||||
*/
|
||||
@ApiModelProperty(value = "设备位置 海拔,如果是圣机库,那么是机库中心海拔")
|
||||
private BigDecimal altitude;
|
||||
|
||||
/**
|
||||
* 设备可用状态 0:维修 1:待命 2:停用 3:任务中
|
||||
*/
|
||||
@ApiModelProperty(value = "设备可用状态 0:维修 1:待命 2:停用 3:任务中")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 设备覆盖半径(<=5km) 单位为km
|
||||
*/
|
||||
@ApiModelProperty(value = "设备覆盖半径(<=5km) 单位为km")
|
||||
private Integer radius;
|
||||
|
||||
/**
|
||||
* 设备相关信息描述
|
||||
*/
|
||||
@ApiModelProperty(value = "设备相关信息描述")
|
||||
@Excel(name = "设备相关信息描述", isImportField = "true")
|
||||
private String descMsg;
|
||||
|
||||
/**
|
||||
* 是否删除 0 正常 1 删除
|
||||
*/
|
||||
@ApiModelProperty(value = "是否删除记录")
|
||||
private Integer deleted;
|
||||
|
||||
/**
|
||||
* 设备在线状态
|
||||
*/
|
||||
@ApiModelProperty("设备在线状态")
|
||||
private Integer onlineStatus;
|
||||
|
||||
/**
|
||||
* 用于标识飞机与机库的配对关系
|
||||
*/
|
||||
@ApiModelProperty(value = "用于标识飞机与机库的配对关系,如果是圣机库,那么是左仓和飞机的配对关系")
|
||||
private String pairedDevice;
|
||||
|
||||
/**
|
||||
* 圣机库左仓与飞机的配对关系
|
||||
*/
|
||||
@ApiModelProperty(value = "圣机库左仓与飞机的配对关系")
|
||||
private String pairedDevice1;
|
||||
|
||||
/**
|
||||
* 圣机库右仓与飞机的配对关系
|
||||
*/
|
||||
@ApiModelProperty(value = "圣机库右仓与飞机的配对关系")
|
||||
private String pairedDevice2;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.zlt.tourism.dto.device;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设备详情查询实体
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 设备详情查询实体
|
||||
* @create 2024/7/24 9:29
|
||||
**/
|
||||
@Data
|
||||
public class DeviceInfoQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
@ApiModelProperty(value = "设备序列号")
|
||||
private String sn;
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.zlt.tourism.dto.device;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: xulinfei
|
||||
* @Date: 2022-01-05-16:23
|
||||
* @Description: 更新电塔相对于正北的旋转角度
|
||||
*/
|
||||
@Data
|
||||
public class DeviceListQuery extends ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "经度,需要做迁移的")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度,需要做偏移的")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "范围参数单位为米")
|
||||
private BigDecimal radius;
|
||||
|
||||
@ApiModelProperty(value = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100")
|
||||
private List<String> deviceTypes;
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.zlt.tourism.dto.device;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: xulinfei
|
||||
* @Date: 2022-01-05-16:23
|
||||
* @Description: 更新电塔相对于正北的旋转角度
|
||||
*/
|
||||
@Data
|
||||
public class DeviceQuery extends ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "经度,需要做迁移的")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度,需要做偏移的")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "范围参数单位为米")
|
||||
private BigDecimal radius;
|
||||
|
||||
@ApiModelProperty(value = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100")
|
||||
private List<String> deviceTypes;
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DroneAlarmArray {
|
||||
String data;
|
||||
Integer type;
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DroneAttitude {
|
||||
Double roll;
|
||||
Double pitch;
|
||||
Double yaw;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-10 9:40
|
||||
* @Description: 拍照倒计时
|
||||
*/
|
||||
@Data
|
||||
public class DroneCountDown {
|
||||
|
||||
String noActionCountdown;
|
||||
|
||||
String waypointHoverCountdown; //拍照前悬停倒计时
|
||||
|
||||
String lowPowerReturnCountdown; //低电量返航倒计时
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DroneMessage {
|
||||
|
||||
String deviceId;
|
||||
|
||||
String event;
|
||||
|
||||
String messageId;
|
||||
|
||||
String messageType;
|
||||
|
||||
DronePayloadHeaders headers;
|
||||
|
||||
DronePayloadData data;
|
||||
|
||||
String timestamp;
|
||||
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DronePayloadData {
|
||||
String videoPush;
|
||||
String radarDistance;
|
||||
String deviceId;
|
||||
String deviceName;
|
||||
String podType;
|
||||
String messageType;
|
||||
String rtkStatus;
|
||||
String startTime; //nx应用启动的unix时间戳
|
||||
String buckleDetect; //卡扣(包括电池与吊舱)
|
||||
String timestamp;
|
||||
String controlMode; // 操作模式 1:自主作业模式 0:遥控器模式
|
||||
String photoWaitUpload; //待上传的照片个数
|
||||
String missionId;
|
||||
String batteryVoltage; // 默认取BMS电压值,若收不到BMS数据则取从飞控处获取的电压值
|
||||
String rtkEph; //水平精度因子
|
||||
String NX_temp;
|
||||
@ApiModelProperty(value = "0 起飞自检中,1 起飞自检未通过,2 飞机流程执行出错,3 飞机起飞准备工作完成,4 飞机正在起飞,5 飞机下发机库复位指令,6 飞机正在执行任务,7 飞机任务执行完成请求返航,8 飞机正在返航,9 飞机降落完成,10 飞机处于手动模式")
|
||||
String drone_status;
|
||||
String podRealType; //podRealType
|
||||
String target_id;
|
||||
String lab_obstacle_exec_state;
|
||||
String flightMode; // 飞行状态 controlMode为0时 flightMode == 10则为姿态模式,否则为专业模式
|
||||
String rtkDgpsAge; //差分龄期
|
||||
String isConnectDrone; //飞控是否正常连接
|
||||
String system_status;
|
||||
String flyDistance;
|
||||
String flyTime;
|
||||
String linkedType;
|
||||
String drone_arm_status; // 飞机是否上锁
|
||||
String rtKStatus; // RTK状态 1为单点 2为伪距差分 4/50为固定解 5为浮点 6惯导定位
|
||||
String satellit; //卫星数 rtKStatus =1 : gps卫星数; rtKStatus = 4 或 50 :rtk卫星数
|
||||
DroneSignalInfo signalInfo;
|
||||
DroneSpeed speed;
|
||||
String alarmArray; // 飞控事件日志
|
||||
List<Double> podStatus;
|
||||
DronePosition position; //实时位置经纬高
|
||||
DroneAttitude attitude;
|
||||
Integer imageIndex;
|
||||
DroneCountDown droneCountdown; //飞机停下来动作
|
||||
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DronePayloadHeaders {
|
||||
|
||||
String deviceName;
|
||||
|
||||
String productId;
|
||||
|
||||
String _uid;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DronePodStatus {
|
||||
|
||||
List<Integer> podStatus;
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DronePosition {
|
||||
|
||||
Double latitude;
|
||||
Double vel;
|
||||
Double longitude;
|
||||
Double height;
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DroneSignalInfo {
|
||||
|
||||
Integer rsrp;
|
||||
String curlModel;
|
||||
Integer sinr;
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.zlt.tourism.dto.device.drone;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class DroneSpeed {
|
||||
Double verticalVelx;
|
||||
Double verticalVel;
|
||||
Double verticalVely;
|
||||
Double verticalVelz;
|
||||
|
||||
}
|
||||
+228
@@ -0,0 +1,228 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 创建或编辑任务实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 创建或编辑任务实体类
|
||||
* @create 2024/8/3 16:03
|
||||
**/
|
||||
@ApiModel("创建或编辑任务实体类")
|
||||
@Data
|
||||
public class CreateOrUpdateMissionRequestDTO extends ParentQuery {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 新建任务时为0,重新发布时当前任务Id
|
||||
*/
|
||||
@ApiModelProperty(value = "新建任务时为0,重新发布时当前任务Id", required = true)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 区域Id(原),机构organizationId(现)
|
||||
*/
|
||||
@ApiModelProperty(value = "区域Id(原),机构organizationId(现)")
|
||||
private Integer regionId;
|
||||
|
||||
/**
|
||||
* 任务起飞机库sn不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞机库sn", required = true)
|
||||
@NotBlank(message = "任务起飞机库sn不能为空")
|
||||
private String takeOffDockId;
|
||||
|
||||
/**
|
||||
* 任务起飞飞机sn,businessType 为3时drone_id会被创建
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞飞机sn")
|
||||
private String takeOffDroneId;
|
||||
|
||||
/**
|
||||
* 任务挂载吊舱类型不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱(HJ可见光和小圣一英寸) 2:红外热成像吊舱(HJ红外和小圣双光) 3:外观识别(激光雷达HJ) 4:红外测温(喊话器HJ) 5:表记识别,11:圣机库左舱 22:圣机库右舱", required = true)
|
||||
@NotNull(message = "任务挂载吊舱类型不能为空")
|
||||
private Integer podType;
|
||||
|
||||
/**
|
||||
* 圣机库降落舱 11左舱,22右舱
|
||||
*/
|
||||
@ApiModelProperty(value = "圣机库降落舱 11左舱,22右舱")
|
||||
private Integer landPod;
|
||||
|
||||
/**
|
||||
* 任务类型巡检类型 0:通道巡检 1:精细巡检 2:定点巡检 3:正常巡检 4:异常巡检 5:特殊巡检 6:3D scan精细扫描 7 山海经建模 9 防火巡护 10 防虫害巡护 11 一重山巡检 12 图斑核查巡检
|
||||
*/
|
||||
@ApiModelProperty(value = "任务类型巡检类型 0:通道巡检 1:精细巡检 2:定点巡检 3:正常巡检 4:异常巡检 5:特殊巡检 6:3D scan精细扫描 7 山海经建模 9 防火巡护 10 防虫害巡护 11 一重山巡检 12 图斑核查巡检 ")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 航线id
|
||||
*/
|
||||
@ApiModelProperty(value = "航线id", required = true)
|
||||
@NotNull(message = "航线Id不能为空")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 航点code不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "航点code,wayPoint表中的code", required = true)
|
||||
@NotNull(message = "航点code不能为空")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 任务降落机库Id不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务降落机库Id", required = true)
|
||||
@NotBlank(message = "任务降落机库Id不能为空")
|
||||
private String landDockId;
|
||||
|
||||
/**
|
||||
* 任务飞行距离
|
||||
*/
|
||||
@ApiModelProperty("任务飞行距离")
|
||||
private Integer est_distance;
|
||||
|
||||
/**
|
||||
* 任务执行时长
|
||||
*/
|
||||
@ApiModelProperty("任务执行时长")
|
||||
private Integer est_timespan;
|
||||
|
||||
/**
|
||||
* 任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位
|
||||
*/
|
||||
@ApiModelProperty("任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@ApiModelProperty("用户ID")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 执行起飞的设备sn不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "执行起飞的sn 可能是飞机 可能是机库", required = true)
|
||||
@NotBlank(message = "执行起飞的设备sn不能为空")
|
||||
private String dstId;
|
||||
|
||||
/**
|
||||
* 任务负责人,任务调度系统添加
|
||||
*/
|
||||
@ApiModelProperty(value = "任务负责人,任务调度系统添加")
|
||||
private String principalList;
|
||||
|
||||
/**
|
||||
* 任务调度飞机起飞高度
|
||||
*/
|
||||
@ApiModelProperty(value = "任务调度飞机起飞高度")
|
||||
private Integer height;
|
||||
|
||||
/**
|
||||
* 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)
|
||||
*/
|
||||
@ApiModelProperty(value = "行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)")
|
||||
private Integer businessType;
|
||||
|
||||
/**
|
||||
* 用户计划清单Id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户计划清单Id")
|
||||
private Long userMissionId;
|
||||
|
||||
/**
|
||||
* 0 卸电不卸传,1 卸电不卸单光,2 卸电不卸红外
|
||||
*/
|
||||
@ApiModelProperty(value = "0 卸电不卸传,1 卸电不卸单光,2 卸电不卸红外")
|
||||
private Integer changeEquipment;
|
||||
|
||||
/**
|
||||
* 指点飞行返航模式:1 自动返航 0 不自动返航,默认为1
|
||||
*/
|
||||
@ApiModelProperty(value = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
|
||||
private Integer rtlMode = 1;
|
||||
|
||||
/**
|
||||
* 任务开始时间,格式yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "任务开始时间,格式yyyy-MM-dd HH:mm:ss")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 任务结束时间
|
||||
*/
|
||||
@ApiModelProperty(value = "任务结束时间,格式yyyy-MM-dd HH:mm:ss")
|
||||
private String finishTime;
|
||||
|
||||
/**
|
||||
* 计划子任务id
|
||||
*/
|
||||
@ApiModelProperty(value = "计划子任务id,即表 ik_user_mission_tower_device id")
|
||||
private Long userMissionTowerDeviceId;
|
||||
|
||||
/**
|
||||
* 猎鹰巡检区域
|
||||
*/
|
||||
@ApiModelProperty(value = "猎鹰巡检区域")
|
||||
private String missionAreaName;
|
||||
|
||||
/**
|
||||
* 猎鹰巡检区域Id
|
||||
*/
|
||||
@ApiModelProperty(value = "猎鹰巡检区域Id,对应ik_line中的id / 林业区域id(即towerId)")
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 猎鹰巡检点位名称
|
||||
*/
|
||||
@ApiModelProperty(value = "猎鹰巡检点位名称,多个用逗号,隔开")
|
||||
private String pointName;
|
||||
|
||||
/**
|
||||
* 3D Scan巡检区域Id
|
||||
*/
|
||||
@ApiModelProperty(value = "3D Scan巡检区域Id,对应ik_td_scan_area中的id")
|
||||
private Long tdAreaId;
|
||||
|
||||
/**
|
||||
* 航线生成类型
|
||||
*/
|
||||
@ApiModelProperty(value = "航线生成类型; 0:自动航线生成, 1:ikingPowerLine")
|
||||
private Integer routeGenerateType;
|
||||
|
||||
/**
|
||||
* 是否开启断点续飞
|
||||
*/
|
||||
@ApiModelProperty(value = "是否开启断点续飞 默认不续飞:0 ,续飞:1")
|
||||
private Integer resumeFlightEnabled;
|
||||
|
||||
/**
|
||||
* 是否存在子任务
|
||||
*/
|
||||
@ApiModelProperty(value = "是否存在子任务 默认不存在:0 ,存在:1")
|
||||
private Integer hasSubmission;
|
||||
|
||||
/**
|
||||
* 父任务Id
|
||||
*/
|
||||
@ApiModelProperty(value = "父任务Id")
|
||||
private Long parentId;
|
||||
}
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 执行任务实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 执行任务实体类
|
||||
* @create 2024/8/3 16:17
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("执行任务实体类")
|
||||
public class ExecuteMissionDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 新建任务时为0,重新发布时当前任务Id
|
||||
*/
|
||||
@ApiModelProperty(value = "新建任务时为0,重新发布时当前任务Id", required = true)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务挂载吊舱类型不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱(HJ可见光和小圣一英寸) 2:红外热成像吊舱(HJ红外和小圣双光) 3:外观识别(激光雷达HJ) 4:红外测温(喊话器HJ) 5:表记识别,11:圣机库左舱 22:圣机库右舱", required = true)
|
||||
@NotNull(message = "任务挂载吊舱类型不能为空")
|
||||
private Integer podType;
|
||||
|
||||
/**
|
||||
* 任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位
|
||||
*/
|
||||
@ApiModelProperty("任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 航点code不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "航点code,wayPoint表中的code", required = true)
|
||||
@NotNull(message = "航点code不能为空")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 圣机库降落舱 11左舱,22右舱
|
||||
*/
|
||||
@ApiModelProperty(value = "圣机库降落舱 11左舱,22右舱")
|
||||
private Integer landPod;
|
||||
|
||||
/**
|
||||
* 任务航线ID(feign接口参数中没有)
|
||||
*/
|
||||
@ApiModelProperty(value = "任务航线ID")
|
||||
private String missionRouteId;
|
||||
|
||||
/**
|
||||
* 任务起飞机库sn不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞机库sn", required = true)
|
||||
@NotBlank(message = "任务起飞机库sn不能为空")
|
||||
private String takeOffDockId;
|
||||
|
||||
/**
|
||||
* 请求渠道
|
||||
*/
|
||||
@ApiModelProperty(value = "请求渠道,1:pad,2:pc,3:drone,4:dock,99:第三方",required = true)
|
||||
@NotNull(message = "请求渠道不能为空")
|
||||
private Integer channel;
|
||||
|
||||
/**
|
||||
* 任务降落机库Id不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "任务降落机库Id", required = true)
|
||||
@NotBlank(message = "任务降落机库Id不能为空")
|
||||
private String landDockId;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@ApiModelProperty(value = "版本号,便于兼容低版本",required = true)
|
||||
@NotBlank(message = "版本号不能为空")
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型(feign 接口中没有)
|
||||
*/
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 航线id
|
||||
*/
|
||||
@ApiModelProperty(value = "航线id", required = true)
|
||||
@NotNull(message = "航线Id不能为空")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 任务起飞飞机sn,businessType 为3时drone_id会被创建
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞飞机sn",required = true)
|
||||
private String takeOffDroneId;
|
||||
|
||||
/**
|
||||
* 高度(feign 接口中没有)
|
||||
*/
|
||||
@ApiModelProperty(value = "高度")
|
||||
private Integer height;
|
||||
|
||||
/**
|
||||
* 指点飞行返航模式:1 自动返航 0 不自动返航,默认为1
|
||||
*/
|
||||
@ApiModelProperty(value = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
|
||||
private Integer rtlMode = 1;
|
||||
|
||||
/**
|
||||
* 执行起飞的设备sn不能为空
|
||||
*/
|
||||
@ApiModelProperty(value = "执行起飞的sn 可能是飞机 可能是机库", required = true)
|
||||
@NotBlank(message = "执行起飞的设备sn不能为空")
|
||||
private String dstId;
|
||||
|
||||
/**
|
||||
* 任务开始时间,格式yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "任务开始时间,格式yyyy-MM-dd HH:mm:ss")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@ApiModelProperty("用户ID")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 机库类型( v4是宝莲灯机库 , v3是圣Max机库, v2是虎鲸机库)
|
||||
*/
|
||||
@ApiModelProperty(value = "机库类型")
|
||||
private String dockType;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "景点Id")
|
||||
@NotNull(message = "景点Id不能为空")
|
||||
private Long scenicSpotId;
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 照片分页查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 照片分页查询类
|
||||
* @create 2024/8/7 15:20
|
||||
**/
|
||||
@ApiModel("照片分页查询类")
|
||||
@Data
|
||||
public class ImagePageQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 当前页,默认值1
|
||||
*/
|
||||
@ApiModelProperty(value = "当前页,默认值1")
|
||||
private Integer page = 1;
|
||||
|
||||
/**
|
||||
* 分页大小,默认值10
|
||||
*/
|
||||
@ApiModelProperty(value = "分页大小,默认值10")
|
||||
private Integer limit = 10;
|
||||
|
||||
/**
|
||||
* 电塔sn
|
||||
*/
|
||||
@ApiModelProperty(value = "电塔sn")
|
||||
private String towerSn;
|
||||
|
||||
/**
|
||||
* 设备sn
|
||||
*/
|
||||
@ApiModelProperty(value = "设备sn")
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private Long missionId;
|
||||
|
||||
/**
|
||||
* 任务航线id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务航线id")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 设备Id后台承载字段,前端无需送上
|
||||
*/
|
||||
@ApiModelProperty(value = "设备Id后台承载字段,前端无需送上")
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 设备Id后台承载字段list,前端无需送上
|
||||
*/
|
||||
@ApiModelProperty(value = "设备Id后台承载字段list,前端无需送上")
|
||||
private List<Long> deviceIds;
|
||||
|
||||
/**
|
||||
* 任务开始时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "任务开始时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 任务结束时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "任务结束时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱
|
||||
*/
|
||||
@ApiModelProperty(value = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱")
|
||||
private Integer podType;
|
||||
|
||||
/**
|
||||
* 兴趣点
|
||||
*/
|
||||
@ApiModelProperty(value = "兴趣点")
|
||||
private Long targetId;
|
||||
|
||||
/**
|
||||
* 任务图片Id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务图片Id")
|
||||
private Long missionImageId;
|
||||
}
|
||||
+367
@@ -0,0 +1,367 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lishilin
|
||||
* @email lishilin4510@163.com
|
||||
* @date 2020-08-31 18:11:44
|
||||
*/
|
||||
@ApiModel(value = "任务表")
|
||||
@Data
|
||||
public class MissionDTO implements Cloneable, Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "表id,自动递增,步长为1")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "父任务Id")
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "md5(way_point_id&&pod_type),以此确认任务航线是否改变")
|
||||
private String md5;
|
||||
|
||||
@ApiModelProperty(value = "任务创建者")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户任务表单id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户任务表单id")
|
||||
private Long userMissionId;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
@ApiModelProperty("任务类型")
|
||||
private Integer missionType;
|
||||
|
||||
/**
|
||||
* 负责人列表(json格式)
|
||||
*/
|
||||
@ApiModelProperty("负责人列表(json格式),已经弃用20210324,使用")
|
||||
private String principalList;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
@ApiModelProperty("负责人")
|
||||
private Long principalId;
|
||||
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
@ApiModelProperty("区域")
|
||||
private String regionName;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
@ApiModelProperty("任务名称")
|
||||
private String missionName;
|
||||
/**
|
||||
* 任务起飞机库Id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞机库Id")
|
||||
private Long takeOffDockId;
|
||||
|
||||
/**
|
||||
* 任务降落机库铭牌号
|
||||
*/
|
||||
@ApiModelProperty(value = "任务降落机库Id")
|
||||
private Long landDockId;
|
||||
|
||||
/**
|
||||
* 任务飞机id 集合 以“,”分割
|
||||
*/
|
||||
@ApiModelProperty(value = "任务飞机id 集合 以“,”分割")
|
||||
private String droneId;
|
||||
|
||||
/**
|
||||
* 任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱
|
||||
*/
|
||||
@ApiModelProperty(value = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱")
|
||||
private Integer podType;
|
||||
|
||||
@ApiModelProperty(value = "圣机库降落 舱11左舱,22右舱'")
|
||||
private Integer landPod;
|
||||
|
||||
/**
|
||||
* 0 单次任务 1 例行任务 2 紧急任务
|
||||
*/
|
||||
@ApiModelProperty("0 单次任务 1 例行任务 2 紧急任务")
|
||||
private Object scheduleType;
|
||||
|
||||
/**
|
||||
* 航线ids,以“,”
|
||||
*/
|
||||
@ApiModelProperty("航线ids,以“,”")
|
||||
private String wayPointId;
|
||||
|
||||
/**
|
||||
* 起飞航线Id
|
||||
*/
|
||||
@ApiModelProperty(value = "起飞航线Id")
|
||||
private Long takeOffRouteId;
|
||||
|
||||
/**
|
||||
* 任务航线Id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务航线Id")
|
||||
private Long missionRouteId;
|
||||
|
||||
/**
|
||||
* 返航航线Id
|
||||
*/
|
||||
@ApiModelProperty(value = "返航航线Id")
|
||||
private Long landRouteId;
|
||||
|
||||
/**
|
||||
* 任务开始时间
|
||||
*/
|
||||
@ApiModelProperty(value = "任务开始时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库
|
||||
*/
|
||||
@ApiModelProperty(value = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位 6:图片上传完成")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 任务结束时间
|
||||
*/
|
||||
@ApiModelProperty(value = "任务结束时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date finishTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@ApiModelProperty(value = "是否删除 0:正常;1:删除")
|
||||
private Integer deleted;
|
||||
|
||||
/**
|
||||
* 任务执行时长
|
||||
*/
|
||||
@ApiModelProperty(value = "任务执行时长")
|
||||
private Integer timespan;
|
||||
|
||||
/**
|
||||
* 任务飞行距离
|
||||
*/
|
||||
@ApiModelProperty(value = "任务飞行距离")
|
||||
private Integer distance;
|
||||
|
||||
/**
|
||||
* 是否蛙跳任务 0 否 1 是
|
||||
*/
|
||||
@ApiModelProperty(value = "是否蛙跳任务 0 否 1 是")
|
||||
private Integer isLeapFrogTask;
|
||||
|
||||
@ApiModelProperty("起飞设备")
|
||||
private String dstId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间 格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
@ApiModelProperty(value = "更新时间 格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "任务开始日期 格式:yyyy-MM-dd")
|
||||
@JSONField(format = "yyyy-MM-dd")
|
||||
private Date startDate;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "任务飞机起飞高度")
|
||||
private Integer height;
|
||||
|
||||
@ApiModelProperty(value = "返航动作:0 卸电不卸传,1卸电不卸单光,2 卸电不卸红外")
|
||||
private Integer changeEquipment;
|
||||
|
||||
@ApiModelProperty(value = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
|
||||
private Integer rtlMode;
|
||||
|
||||
@ApiModelProperty(value = "计划子任务id,即表 ik_user_mission_tower_device id")
|
||||
private Long userMissionTowerDeviceId;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("航线名称")
|
||||
private String routeName;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("起飞机库名称")
|
||||
private String takeOffDockName;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("降落机库名称")
|
||||
private String landDockName;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("起飞机库sn")
|
||||
private String takeoffDockSn;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("降落机库sn")
|
||||
private String landDockSn;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("任务创建人")
|
||||
private String createMissionUser;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("任务执行人")
|
||||
private String principalMissionUser;
|
||||
|
||||
@ApiModelProperty(value = "猎鹰巡检区域")
|
||||
private String missionAreaName;
|
||||
|
||||
@ApiModelProperty(value = "猎鹰巡检区域Id,对应ik_line中的id")
|
||||
private Long areaId;
|
||||
|
||||
@ApiModelProperty(value = "猎鹰巡检点位名称,多个用逗号,隔开")
|
||||
private String pointName;
|
||||
|
||||
// 缺陷分析 add by mxw at 20220316
|
||||
@ApiModelProperty(value = "图片缺陷审核状态, 0:未审核 1:审核完成")
|
||||
private Integer imageApproveStatus;
|
||||
|
||||
@ApiModelProperty(value = "清晰度数值")
|
||||
private BigDecimal clarity;
|
||||
|
||||
@ApiModelProperty(value = "准确度数值")
|
||||
private BigDecimal accuracy;
|
||||
|
||||
@ApiModelProperty(value = "图片分析审核人id")
|
||||
private Long defectApprover;
|
||||
// 缺陷分析 end
|
||||
@ApiModelProperty(value = "3D Scan巡检区域Id,对应ik_td_scan_area中的id")
|
||||
private Long tdAreaId;
|
||||
|
||||
// word报告名称
|
||||
@TableField(exist = false)
|
||||
String reportName;
|
||||
|
||||
|
||||
// 设备工作状态
|
||||
@ApiModelProperty(value = "设备工作状态;0:其他状态,1:FAT中")
|
||||
private Integer deviceWorkStatus;
|
||||
|
||||
/**
|
||||
* 任务起飞机库铭牌号
|
||||
*/
|
||||
@ApiModelProperty(value = "任务起飞机库铭牌号")
|
||||
@TableField(exist = false)
|
||||
private String takeOffDeviceSn;
|
||||
|
||||
/**
|
||||
* 任务降落机库铭牌号
|
||||
*/
|
||||
@ApiModelProperty(value = "任务降落机库铭牌号")
|
||||
@TableField(exist = false)
|
||||
private String landDeviceSn;
|
||||
|
||||
/**
|
||||
* 任务飞机铭牌号
|
||||
*/
|
||||
@ApiModelProperty(value = "任务飞机铭牌号")
|
||||
@TableField(exist = false)
|
||||
private String droneSn;
|
||||
|
||||
/**
|
||||
* 任务执行时长
|
||||
*/
|
||||
@ApiModelProperty(value = "任务采集照片数,实际采集照片数")
|
||||
private Integer picNums;
|
||||
|
||||
@ApiModelProperty(value = "用户头像")
|
||||
@TableField(exist = false)
|
||||
private String avatarUrl;
|
||||
|
||||
@ApiModelProperty(value = "用户真实姓名")
|
||||
@TableField(exist = false)
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "数传视频数量(此统计记录srs flv视频数量)")
|
||||
private Integer uploadVideoCount;
|
||||
|
||||
@ApiModelProperty("上传图片模式;1:边拍边传,2:飞机落库,由飞机上传,3:飞机落库,由机库即时上传, 4:飞机落库,由机库定时上传")
|
||||
private Integer uploadImageMode;
|
||||
|
||||
@ApiModelProperty("设定上传图片时间(HH:mm:ss)")
|
||||
private String uploadImageTime;
|
||||
|
||||
@ApiModelProperty(value = "航线生成类型; 0:自动航线生成, 1:ikingPowerLine")
|
||||
private Integer routeGenerateType;
|
||||
|
||||
@ApiModelProperty(value = "杆塔id")
|
||||
private Long towerId;
|
||||
|
||||
@ApiModelProperty(value = "杆塔物理编号")
|
||||
private String towerSn;
|
||||
|
||||
@ApiModelProperty(value = "此任务应拍照的数量")
|
||||
private Integer routeMaxPhotoNum;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "预期拍照的数量")
|
||||
private Integer expectedNumberOfPhoto;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "实际拍照的数量")
|
||||
private Integer actualNumberOfPhoto;
|
||||
|
||||
@ApiModelProperty(value = "任务报告下载链接")
|
||||
private String reportUrl;
|
||||
|
||||
@ApiModelProperty(value = "任务飞机设备类型")
|
||||
private Integer droneDeviceType;
|
||||
|
||||
@ApiModelProperty(value = "飞机吊舱类型;1:华松, 2:红外, 3:一英寸, 4:双光, 5:其他")
|
||||
private Integer detailPodType;
|
||||
|
||||
@ApiModelProperty(value = "任务航线面积")
|
||||
private BigDecimal routeArea;
|
||||
|
||||
@ApiModelProperty(value = " 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
|
||||
private Integer industryType;
|
||||
|
||||
@ApiModelProperty(value = "任务报告下载链接")
|
||||
private String imageZipUrl;
|
||||
|
||||
@ApiModelProperty(value = "是否开启断点续飞 默认不续飞:0 ,续飞:1")
|
||||
private Integer resumeFlightEnabled;
|
||||
|
||||
@ApiModelProperty(value = "是否存在子任务 默认不存在:0 ,存在:1")
|
||||
private Integer hasSubMission;
|
||||
|
||||
@ApiModelProperty(value = "当前任务航线完成状态 0:航线已经飞完 1:航线未飞完")
|
||||
private Integer overallStatus;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "任务状态全部")
|
||||
private String statusAll;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "任务缺陷总数")
|
||||
private Long defectsNum;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "机库设备类型")
|
||||
private String dockType;
|
||||
|
||||
}
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 任务图片传输类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务图片传输类
|
||||
* @create 2024/8/7 15:47
|
||||
**/
|
||||
@ApiModel("任务图片传输类")
|
||||
@Data
|
||||
public class MissionImageDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private Long missionId;
|
||||
|
||||
/**
|
||||
* 任务名
|
||||
*/
|
||||
@ApiModelProperty(value = "任务名")
|
||||
private String missionName;
|
||||
|
||||
/**
|
||||
* 图片名称
|
||||
*/
|
||||
@ApiModelProperty(value = "图片名称")
|
||||
private String imageName;
|
||||
|
||||
/**
|
||||
* 图片路径
|
||||
*/
|
||||
@ApiModelProperty(value = "图片路径")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 拍照时飞机的经度
|
||||
*/
|
||||
@ApiModelProperty(value = "拍照时飞机的经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/**
|
||||
* 拍照时飞机的纬度
|
||||
*/
|
||||
@ApiModelProperty(value = "拍照时飞机的纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/**
|
||||
* 拍照时飞机的相对起飞点高度
|
||||
*/
|
||||
@ApiModelProperty(value = "拍照时飞机的相对起飞点高度")
|
||||
private BigDecimal altitude;
|
||||
|
||||
/**
|
||||
* 塔编号
|
||||
*/
|
||||
@ApiModelProperty(value = "塔编号")
|
||||
private String towerId;
|
||||
|
||||
/**
|
||||
* action编号
|
||||
*/
|
||||
@ApiModelProperty(value = "action编号")
|
||||
private Long actionId;
|
||||
|
||||
/**
|
||||
* 线路编号
|
||||
*/
|
||||
@ApiModelProperty(value = "线路编号")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 绝缘子编号
|
||||
*/
|
||||
@ApiModelProperty(value = "绝缘子编号")
|
||||
private Long targetId;
|
||||
|
||||
/**
|
||||
* 2023-10-17改为机场id
|
||||
*/
|
||||
@ApiModelProperty(value = "机场id")
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 图片类型 0:jpg,1:gif,2:jpeg,3:tif
|
||||
*/
|
||||
@ApiModelProperty(value = "图片类型 0:jpg,1:gif,2:jpeg,3:tif")
|
||||
private Integer imageType;
|
||||
|
||||
/**
|
||||
* 拍照时间
|
||||
*/
|
||||
@ApiModelProperty(value = "拍照时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date takePhotoTime;
|
||||
|
||||
/**
|
||||
* 图片尺寸宽度
|
||||
*/
|
||||
@ApiModelProperty(value = "图片尺寸宽度")
|
||||
private Integer imageWidth;
|
||||
|
||||
/**
|
||||
* 图片尺寸高度
|
||||
*/
|
||||
@ApiModelProperty(value = "图片尺寸高度")
|
||||
private Integer imageHeight;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
@ApiModelProperty(value = "图片缺陷审核状态 0:未审核 1:已审核")
|
||||
private Integer approveStatus;
|
||||
|
||||
@ApiModelProperty(value = "图片清晰度 0:不清晰 1:清晰")
|
||||
private Integer isClear;
|
||||
|
||||
@ApiModelProperty(value = "图片准确度 0:准确 1:不准确")
|
||||
private Integer isAccurate;
|
||||
|
||||
@ApiModelProperty(value = "审核人id")
|
||||
private Long approverId;
|
||||
|
||||
@ApiModelProperty(value = "3D Scan 区域id")
|
||||
private Long areaId;
|
||||
|
||||
@ApiModelProperty(value = "是否已AI探测识别,0:未探测, 1:已探测")
|
||||
private Integer isAiDetect;
|
||||
|
||||
@ApiModelProperty(value = "圣se拍照设备位置 1:上、2:中、3: 下载缺陷分析报告")
|
||||
private Integer uploadStatus = 0;
|
||||
|
||||
@ApiModelProperty(value = "sn")
|
||||
private String sn;
|
||||
|
||||
@ApiModelProperty(value = "是否是红外图片,1:是,2:否")
|
||||
private Integer isInfrared;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最高温度")
|
||||
private String max;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最低温度")
|
||||
private String min;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最高温度的x坐标")
|
||||
private String maxPosX;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最高温度的y坐标")
|
||||
private String maxPosY;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最低温度的x坐标")
|
||||
private String minPosX;
|
||||
|
||||
@ApiModelProperty(value = "红外图片中的最低温度的y坐标")
|
||||
private String minPosY;
|
||||
|
||||
@ApiModelProperty(value = "缩略图访问路径")
|
||||
private String thumbnailUrl;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "拍摄目标经度")
|
||||
private String targetLongitude;
|
||||
|
||||
@ApiModelProperty(value = "拍摄目标纬度")
|
||||
private String targetLatitude;
|
||||
|
||||
@ApiModelProperty(value = "拍摄目标高度")
|
||||
private String targetAltitude;
|
||||
|
||||
@ApiModelProperty(value = "拍摄目标距离云台拍照距离")
|
||||
private String targetDistance;
|
||||
|
||||
@ApiModelProperty(value = "拍摄目标类型")
|
||||
private Integer newTargetType;
|
||||
|
||||
@ApiModelProperty(value = "杆塔id")
|
||||
private Long towerKeyId;
|
||||
|
||||
@ApiModelProperty(value = "原图或者缩略图,默认原图,0:缩略图,1:原图")
|
||||
private Integer isSrcImage;
|
||||
|
||||
@ApiModelProperty("杆塔跨点左右端区分(跨点前半部航点分为左,后半部分为右);0是左边,1是右边,3是未知;默认值是3")
|
||||
private Integer partitionLeftRight;
|
||||
|
||||
@ApiModelProperty("航点飞机朝向")
|
||||
private Float yaw;
|
||||
|
||||
@ApiModelProperty("拍照动作俯仰角度")
|
||||
private Float pitch;
|
||||
|
||||
@ApiModelProperty("拍照动作变焦倍数")
|
||||
private Float zoom;
|
||||
|
||||
@ApiModelProperty("飞机航向")
|
||||
private Float actionYaw;
|
||||
|
||||
@ApiModelProperty(value = " 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
|
||||
private Integer industryType;
|
||||
|
||||
@ApiModelProperty(value = " 图片分类 0 任务图片 1 大模型图片 ")
|
||||
private Integer bigModelType;
|
||||
|
||||
@ApiModelProperty(value = " 林班 ")
|
||||
private String forestryClass;
|
||||
|
||||
@ApiModelProperty(value = " 大班 ")
|
||||
private String bigClass;
|
||||
|
||||
@ApiModelProperty(value = " 小班 ")
|
||||
private String smallClass;
|
||||
|
||||
@ApiModelProperty(value = " 石化图片表的id(大模型图片id) ")
|
||||
private Long missionVideoShihuaId;
|
||||
|
||||
@ApiModelProperty(value = "解析实时地址名称")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "缩略图是否上传;0:未上传, 1:上传")
|
||||
private Integer thumbnailUp;
|
||||
|
||||
@ApiModelProperty(value = "缩略图md5")
|
||||
private String thumbnailMd5;
|
||||
|
||||
@ApiModelProperty(value = "原图是否上传;0:未上传, 1:上传")
|
||||
private Integer srcUp;
|
||||
|
||||
@ApiModelProperty(value = "原图md5")
|
||||
private String srcMd5;
|
||||
|
||||
@ApiModelProperty(value = "图片uuid")
|
||||
private String imageUuid;
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-10-11 11:38
|
||||
* @Description: 任务分页查询
|
||||
*/
|
||||
@Data
|
||||
public class MissionPageDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("任务名称")
|
||||
private String missionName;
|
||||
|
||||
@ApiModelProperty(value = "任务航线Id")
|
||||
private Long missionRouteId;
|
||||
|
||||
@ApiModelProperty(value = "任务开始时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "任务结束时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date finishTime;
|
||||
|
||||
@ApiModelProperty("起飞机库sn")
|
||||
private String takeoffDockSn;
|
||||
|
||||
@ApiModelProperty("降落机库sn")
|
||||
private String landDockSn;
|
||||
|
||||
@ApiModelProperty("飞机sn")
|
||||
private String droneSn;
|
||||
|
||||
@ApiModelProperty("景点id")
|
||||
private Long scenicSoptId;
|
||||
}
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 任务视频传输实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务视频传输实体类
|
||||
* @create 2024/8/8 8:25
|
||||
**/
|
||||
@ApiModel("任务视频传输实体类")
|
||||
@Data
|
||||
public class MissionRecordVideoDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 设备执行任务Id
|
||||
*/
|
||||
@ApiModelProperty(value = "设备执行任务Id")
|
||||
private Long missionId;
|
||||
|
||||
/**
|
||||
* 设备SN
|
||||
*/
|
||||
@ApiModelProperty(value = "设备SN")
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 摄像机名称
|
||||
*/
|
||||
@ApiModelProperty(value = "摄像机名称")
|
||||
private String cameraName;
|
||||
|
||||
/**
|
||||
* 视频url
|
||||
*/
|
||||
@ApiModelProperty(value = "视频url")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 视频类型 0:rtsp 1:rtmp 2:hls
|
||||
*/
|
||||
@ApiModelProperty(value = "视频类型 0:rtsp 1:rtmp 2:hls ")
|
||||
private Integer videoType;
|
||||
|
||||
/**
|
||||
* 视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS
|
||||
*/
|
||||
@ApiModelProperty(value = "视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS")
|
||||
private Integer videoCodec;
|
||||
|
||||
/**
|
||||
* 音频编码格式 0:AC3 1:DTS
|
||||
*/
|
||||
@ApiModelProperty(value = "音频编码格式 0:AC3 1:DTS")
|
||||
private Integer audioCodec;
|
||||
|
||||
/**
|
||||
* 视频时长
|
||||
*/
|
||||
@ApiModelProperty(value = "视频时长")
|
||||
private Long timespan;
|
||||
|
||||
/**
|
||||
* 视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误
|
||||
*/
|
||||
@ApiModelProperty(value = "视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 0:正常 1:删除
|
||||
*/
|
||||
@ApiModelProperty(value = "0:正常 1:删除")
|
||||
private Integer deleted;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
/**
|
||||
* 视频文件md5值
|
||||
*/
|
||||
@ApiModelProperty(value = "视频文件md5值")
|
||||
private String videoMd5;
|
||||
|
||||
/**
|
||||
* 视频文件名称
|
||||
*/
|
||||
@ApiModelProperty(value = "视频文件名称")
|
||||
private String videoName;
|
||||
|
||||
/**
|
||||
* 视频文件分片总数
|
||||
*/
|
||||
@ApiModelProperty(value = "视频文件分片总数")
|
||||
private Integer videoChunks;
|
||||
|
||||
/**
|
||||
* 视频缩略图路径
|
||||
*/
|
||||
@ApiModelProperty(value = "视频缩略图路径")
|
||||
private String videoImageUrl;
|
||||
|
||||
/**
|
||||
* 视频文件当前已上传分片数
|
||||
*/
|
||||
@ApiModelProperty(value = "视频文件当前已上传分片数")
|
||||
private Integer videoChunk;
|
||||
|
||||
/**
|
||||
* 设备sn
|
||||
*/
|
||||
@ApiModelProperty(value = "设备sn")
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 上传状态,0:未上传, 1:上传中, 2:上传完成
|
||||
*/
|
||||
@ApiModelProperty(value = "上传状态,0:未上传, 1:上传中, 2:上传完成")
|
||||
private Integer uploadStatus;
|
||||
|
||||
/**
|
||||
* uuid; (断点续传记录文件名)
|
||||
*/
|
||||
@ApiModelProperty(value = "uuid; (断点续传记录文件名)")
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 机库id
|
||||
*/
|
||||
@ApiModelProperty(value = "机库id")
|
||||
private Long dockId;
|
||||
|
||||
/**
|
||||
* 记录类型;1:设备上传视频, 2:srs视频
|
||||
*/
|
||||
@ApiModelProperty(value = "记录类型;1:设备上传视频, 2:srs视频")
|
||||
private Integer recordType;
|
||||
|
||||
/**
|
||||
* 视频url
|
||||
*/
|
||||
@ApiModelProperty(value = "压缩flv视频url")
|
||||
private String flvUrl;
|
||||
|
||||
/**
|
||||
* 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建
|
||||
*/
|
||||
@ApiModelProperty(value = "行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建")
|
||||
private Integer industryType;
|
||||
|
||||
/**
|
||||
* 视频摄像头分类:0 普通光 1 红外线 2 图传普通光 3 图传红外线 4 大模型识别流
|
||||
*/
|
||||
@ApiModelProperty(value = "视频摄像头分类:0 普通光 1 红外线 2 图传普通光 3 图传红外线 4 大模型识别流")
|
||||
private Integer videoCameraType;
|
||||
|
||||
/**
|
||||
* 压缩和对象存储状态;0:私有化存储, 1:原视频上传对象存储未完成,2:原视频上传对象存储完成
|
||||
*/
|
||||
@ApiModelProperty(value = "压缩和对象存储状态;0:私有化存储, 1:原视频上传对象存储未完成,2:原视频上传对象存储完成")
|
||||
private Integer CompressStorageState;
|
||||
|
||||
/**
|
||||
* 当前分片上传状态;0:待上传, 1:上传中, 2:上传成功,3:上传失败
|
||||
*/
|
||||
@ApiModelProperty(value = "当前分片上传状态;0:待上传, 1:上传中, 2:上传成功,3:上传失败")
|
||||
private Integer currentChunkState;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.zlt.tourism.core.BasePage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-10-11 11:20
|
||||
* @Description: 任务分页查询
|
||||
*/
|
||||
@Data
|
||||
public class MissionStatusUpdateDTO extends BasePage {
|
||||
|
||||
@ApiModelProperty("任务id")
|
||||
private Long missionId;
|
||||
|
||||
@ApiModelProperty("状态值")
|
||||
private Integer missionStatus;
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 任务回放查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务回放查询类
|
||||
* @create 2024/8/26 14:07
|
||||
**/
|
||||
@ApiModel("文旅/任务回放查询类")
|
||||
@Data
|
||||
public class MissionTrackListQuery extends ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "当前页,默认值1")
|
||||
private Integer page = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页大小,默认值10")
|
||||
private Integer limit = 10;
|
||||
|
||||
@ApiModelProperty(value = "任务创建开始时间,格式yyyy-MM-dd HH:mm:ss")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "任务创建结束时间,格式yyyy-MM-dd HH:mm:ss")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "当前登录系统用户id,无需上送,后台自行处理")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "任务Id")
|
||||
private Long missionId;
|
||||
|
||||
@ApiModelProperty(value = "查询任务范围 1: 自己创建的任务,默认,2:所有")
|
||||
private Integer isOwn=1;
|
||||
|
||||
@ApiModelProperty(value = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位 6: 图片上传完成")
|
||||
private Integer status;
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 任务视频类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务视频类
|
||||
* @create 2024/7/19 16:27
|
||||
**/
|
||||
@Data
|
||||
public class MissionVideoDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 设备执行任务Id
|
||||
*/
|
||||
@ApiModelProperty(value = "设备执行任务Id")
|
||||
private Long missionId;
|
||||
|
||||
/**
|
||||
* 设备Id
|
||||
*/
|
||||
@ApiModelProperty(value = "设备Id")
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 摄像机名称
|
||||
*/
|
||||
@ApiModelProperty(value = "摄像机名称")
|
||||
private String cameraName;
|
||||
|
||||
/**
|
||||
* 视频url
|
||||
*/
|
||||
@ApiModelProperty(value = "视频url")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 视频类型 0:rtsp 1:rtmp 2:hls
|
||||
*/
|
||||
@ApiModelProperty(value = "视频类型 0:rtsp 1:rtmp 2:hls")
|
||||
private Integer videoType;
|
||||
|
||||
/**
|
||||
* 视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS
|
||||
*/
|
||||
@ApiModelProperty(value = "视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS")
|
||||
private Integer videoCodec;
|
||||
|
||||
/**
|
||||
* 音频编码格式 0:AC3 1:DTS
|
||||
*/
|
||||
@ApiModelProperty(value = "音频编码格式 0:AC3 1:DTS")
|
||||
private Integer audioCodec;
|
||||
|
||||
/**
|
||||
* 视频时长
|
||||
*/
|
||||
@ApiModelProperty(value = "视频时长")
|
||||
private Integer timespan;
|
||||
|
||||
/**
|
||||
* 视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误
|
||||
*/
|
||||
@ApiModelProperty(value = "视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设备推流列表查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 设备推流列表查询类
|
||||
* @create 2024/7/19 15:53
|
||||
**/
|
||||
@ApiModel("文旅/设备推流列表查询类")
|
||||
@Data
|
||||
public class MissionVideoListQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 设备Sn
|
||||
*/
|
||||
@ApiModelProperty(value = "设备sn,查询当前机构及其子机构接口中返回的设备sn" ,required = true)
|
||||
String deviceSn;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型,1001:固定机库,车载机库:1002,旋翼飞机:2001,固定翼飞机:2002")
|
||||
private int deviceType;
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.zlt.tourism.dto.mission;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 任务视频分页查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 任务视频分页查询类
|
||||
* @create 2024/8/8 8:22
|
||||
**/
|
||||
@ApiModel("任务视频分页查询类")
|
||||
@Data
|
||||
public class VideoPageQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 飞机sn
|
||||
*/
|
||||
@ApiModelProperty(value = "飞机sn", required = false)
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@ApiModelProperty(value = "任务id", required = true)
|
||||
private Long missionId;
|
||||
|
||||
/**
|
||||
* 当前页,默认值1
|
||||
*/
|
||||
@ApiModelProperty(value = "当前页,默认值1")
|
||||
private Integer page = 1;
|
||||
|
||||
/**
|
||||
* 分页大小,默认值10
|
||||
*/
|
||||
@ApiModelProperty(value = "分页大小,默认值10")
|
||||
private Integer limit = 10;
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.zlt.tourism.dto.order;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-04 17:39
|
||||
* @Description: 创建订单参数
|
||||
*/
|
||||
@Data
|
||||
public class CreateOrderDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private String userId;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "航线code")
|
||||
private String routeCode;
|
||||
|
||||
@ApiModelProperty("起飞机库")
|
||||
private String takeOffDockSn;
|
||||
|
||||
@ApiModelProperty("降落机库")
|
||||
private String landDockSn;
|
||||
|
||||
@ApiModelProperty("起飞飞机")
|
||||
private String takeOffDroneSn;
|
||||
|
||||
@ApiModelProperty("订单状态:1:排队中 2:待支付 3:已支付 4:任务中 5:任务完成")
|
||||
private Integer OrderStatus;
|
||||
|
||||
@ApiModelProperty("订单类型:暂定")
|
||||
private Integer OrderType;
|
||||
|
||||
@ApiModelProperty("任务id")
|
||||
private Long missionId;
|
||||
|
||||
@ApiModelProperty("套餐id")
|
||||
private Long comboId;
|
||||
|
||||
@ApiModelProperty("订单金额")
|
||||
private String orderNum;
|
||||
|
||||
@ApiModelProperty(value = "景点Id")
|
||||
private Long scenicSpotId;
|
||||
|
||||
@ApiModelProperty(value = "打卡点Id")
|
||||
private Long checkInPoint;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zlt.tourism.dto.order;
|
||||
|
||||
import com.zlt.tourism.model.tourism.TourismOrderEnity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-12-25 14:17
|
||||
* @Description: 订单
|
||||
*/
|
||||
@Data
|
||||
public class OrderInfoDTO extends TourismOrderEnity {
|
||||
|
||||
@ApiModelProperty("排队人数")
|
||||
private Integer numberline;
|
||||
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package com.zlt.tourism.dto.org;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 机构传输类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 机构传输类
|
||||
* @create 2024/8/15 13:31
|
||||
**/
|
||||
@Data
|
||||
public class OrganizationDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
@ApiModelProperty(value = "自增id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 上级机构
|
||||
*/
|
||||
@ApiModelProperty(value = "上级机构")
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 机构名称
|
||||
*/
|
||||
@ApiModelProperty(value = "机构名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 机构等级
|
||||
*/
|
||||
@ApiModelProperty(value = "机构等级")
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 机构状态
|
||||
*/
|
||||
@ApiModelProperty(value = "机构状态,0:正常,1:禁用")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 机构唯一编码
|
||||
*/
|
||||
@ApiModelProperty(value = "机构唯一编码")
|
||||
private String uniqueId;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty(value = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/**
|
||||
* 海拔
|
||||
*/
|
||||
@ApiModelProperty(value = "海拔")
|
||||
private BigDecimal altitude;
|
||||
|
||||
private Long commonId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zlt.tourism.dto.org;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
|
||||
/**
|
||||
* 机构查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 机构查询类
|
||||
* @create 2024/7/15 15:17
|
||||
**/
|
||||
public class OrganizationQuery extends ParentQuery {
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.zlt.tourism.dto.org;
|
||||
|
||||
import com.zlt.tourism.dto.user.SysUserEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 机构查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 机构查询类
|
||||
* @create 2024/7/15 15:17
|
||||
**/
|
||||
@Data
|
||||
public class OrganizationTreeQuery extends OrganizationQuery{
|
||||
|
||||
@ApiModelProperty(value = "操作员Id")
|
||||
private SysUserEntity sysUser;
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.zlt.tourism.dto.other;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 行业实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 行业实体类
|
||||
* @create 2024/7/29 8:56
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("行业实体类")
|
||||
public class IndustryDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 行业类型
|
||||
*/
|
||||
@ApiModelProperty("行业类型")
|
||||
private String industryType;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty("编码")
|
||||
private String code;
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.zlt.tourism.dto.other;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模型列表查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 模型列表查询类
|
||||
* @create 2024/8/29 13:08
|
||||
**/
|
||||
@ApiModel("模型列表查询类")
|
||||
@Data
|
||||
public class ModelListQuery extends ParentQuery{
|
||||
|
||||
@ApiModelProperty(value = "机构Ids,数组")
|
||||
private List<Long> organizationIds;
|
||||
|
||||
@ApiModelProperty(value = "经度,需要做迁移的")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度,需要做偏移的")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "范围参数单位为米")
|
||||
private BigDecimal radius;
|
||||
|
||||
@ApiModelProperty(value = "0 pointCloud,1 model,2 KML,3 point-3mx, 4 model-3mx,5 MR,6 自定义 7 正射影像图")
|
||||
private List<Integer> mapTypes;
|
||||
|
||||
/**
|
||||
* 模型所属权(默认值1),1:内网,2:外网 add by mxw at 20220615
|
||||
*/
|
||||
@ApiModelProperty(value = "模型所属,1:内网 2:外网")
|
||||
private Integer ownership;
|
||||
/**
|
||||
* 按照time排序 1顺序 2 倒叙
|
||||
*/
|
||||
@ApiModelProperty(value = "按照time排序 1顺序 2 倒叙")
|
||||
private Integer orderByTime;
|
||||
|
||||
@ApiModelProperty(value = "时间筛选开始时间具体到天的时间戳")
|
||||
private Long startTimeAt;
|
||||
|
||||
@ApiModelProperty(value = "时间筛选结束时间具体到天的时间戳")
|
||||
private Long endTimeAt;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.zlt.tourism.dto.other;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
*/
|
||||
@Data
|
||||
public class ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "版本号,便于兼容低版本",required = true)
|
||||
@NotBlank(message = "版本号不能为空")
|
||||
private String version;
|
||||
|
||||
@ApiModelProperty(value = "请求渠道,1:pad,2:pc,3:drone,4:dock,99:第三方",required = true)
|
||||
@NotNull(message = "请求渠道不能为空")
|
||||
private Integer channel;
|
||||
|
||||
@ApiModelProperty(value = "行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
|
||||
private Integer industryType;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.zlt.tourism.dto.other;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author xulinfei
|
||||
* @date 2020/11/7 18:48
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("控制权限实体类")
|
||||
public class StationControlDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 控制类型
|
||||
*/
|
||||
@ApiModelProperty("控制类型")
|
||||
private Integer controlType;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty("编码")
|
||||
private String code;
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 位置信息实体
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 位置信息实体
|
||||
* @create 2024/8/16 13:45
|
||||
**/
|
||||
@ApiModel("位置信息实体")
|
||||
@Data
|
||||
public class RockerRouteDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty(value = "经度")
|
||||
@NotBlank(message = "经度不能为空")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty(value = "纬度")
|
||||
@NotBlank(message = "纬度不能为空")
|
||||
private String Latitude;
|
||||
|
||||
/**
|
||||
* 高度
|
||||
*/
|
||||
@ApiModelProperty(value = "高度")
|
||||
@NotBlank(message = "高度不能为空")
|
||||
private String altitude;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 文旅-摇臂
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 文旅-摇臂
|
||||
* @create 2024/8/16 13:40
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("文旅-摇臂查询类")
|
||||
public class RockerRouteQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 航点数组;([[经,纬,高], ...])
|
||||
*/
|
||||
@ApiModelProperty(value = "航点数组;([[经,纬,高], ...])", required = true)
|
||||
@NotNull(message = "航点数组不能为空")
|
||||
private List<List<BigDecimal>> waypoints;
|
||||
|
||||
/**
|
||||
* dist_thre
|
||||
*/
|
||||
@ApiModelProperty(value = "dist_thre")
|
||||
private Float dist_thre = 8f;
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.zlt.tourism.constant.RouteConstant;
|
||||
import com.zlt.tourism.vo.ActionVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 生成航线或者更新航线传输实体
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 生成航线或者更新航线传输实体
|
||||
* @create 2024/8/19 10:43
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("生成航线或者更新航线传输实体")
|
||||
public class RouteCreateOrUpdateDTO {
|
||||
|
||||
@ApiModelProperty(value = "设备sn", required = true)
|
||||
private String deviceId;
|
||||
|
||||
@ApiModelProperty(value = "电塔Sn")
|
||||
private String towerSn;
|
||||
|
||||
@ApiModelProperty(value = "机构id")
|
||||
private Long organizationId;
|
||||
|
||||
@ApiModelProperty(value = "航点code,十六进制,新增非必填,修改时必填")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
@ApiModelProperty(value = "航线名称,密文", required = true)
|
||||
private String routeName;
|
||||
|
||||
@ApiModelProperty(value = "航点名称")
|
||||
private String wayPointName;
|
||||
|
||||
@ApiModelProperty(value = "航线Id,route_id > 0 逻辑删除 route_id = 0 新建")
|
||||
private Integer routeId;
|
||||
|
||||
@ApiModelProperty(value = "航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检,留着是为了兼容旧版地面站")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "航线类型 2:固定起飞航线 3:固定返航航线 4:固定通道巡检 5:固定精细巡检 6 车载激光航线 7 车载通道巡检航线 8 车载精细巡检航线 9 车载倾斜航线 " +
|
||||
"10 车载正射航线 11 指点飞行 12 正射面状 13 正射带状 14 倾斜面状 15 倾斜带状 16 激光点云 17 机器人标准行线 18 机器人巡检行线 19 3D Scan精细扫描 20 山海经建模 " +
|
||||
"21:区域标绘航线 22:区域标绘拆分子航线 23 防火巡护 24 防虫害巡护 25 一重山巡检 26 图斑核查巡检 ", required = true)
|
||||
private Integer routeType;
|
||||
|
||||
@ApiModelProperty(value = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点 4激光航点不取数,5激光航点取数据", required = true)
|
||||
private Integer propertyType;
|
||||
|
||||
@ApiModelProperty(value = "航点序号", required = true)
|
||||
private Integer index;
|
||||
|
||||
@ApiModelProperty(value = "设备经度", required = true)
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "航点纬度", required = true)
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "航点高度", required = true)
|
||||
private String altitude;
|
||||
|
||||
@ApiModelProperty(value = "航点速度")
|
||||
private String speed;
|
||||
|
||||
@ApiModelProperty(value = "航点方向")
|
||||
private Float direction;
|
||||
|
||||
// 20210312 自动规划航线新增字段begin
|
||||
@ApiModelProperty(value = "转弯类型 1 定点转弯 2 协调转弯", required = true)
|
||||
private Integer turnType;
|
||||
|
||||
@ApiModelProperty(value = "协调转弯半径", required = true)
|
||||
private float coordinateRadius;
|
||||
|
||||
@ApiModelProperty(value = "是否单塔航线类型 0:代表旧版或者多塔航点,1:代表单塔航点", required = true)
|
||||
private Integer singleType;
|
||||
|
||||
@ApiModelProperty(value = "线路id(为了区分该航点在塔的左右侧", required = true)
|
||||
private long lineId;
|
||||
// 20210312 自动规划航线新增字段end
|
||||
|
||||
@ApiModelProperty(value = "相机动作")
|
||||
private List<ActionVo> action;
|
||||
|
||||
@ApiModelProperty(value = "航线长度,单位米")
|
||||
private Double routeLength;
|
||||
|
||||
@ApiModelProperty(value = "预计飞行时长,单位秒")
|
||||
private Double preFlyTime;
|
||||
|
||||
// 地面机器人航线参数begin
|
||||
@ApiModelProperty(value = "地面机器人地图内x")
|
||||
private String positionX;
|
||||
|
||||
@ApiModelProperty(value = "地面机器人地图内y")
|
||||
private String positionY;
|
||||
|
||||
// add by mxw at 20220510 for SE设备添加字段 begin
|
||||
@ApiModelProperty(value = "地图内z")
|
||||
private String positionZ;
|
||||
|
||||
@ApiModelProperty(value = "转向")
|
||||
private String yaw;
|
||||
// add by mxw at 20220510 for SE设备添加字段 end
|
||||
|
||||
@ApiModelProperty(value = "机器人的四元数之一")
|
||||
private String q1;
|
||||
|
||||
@ApiModelProperty(value = "机器人的四元数之一")
|
||||
private String q2;
|
||||
|
||||
@ApiModelProperty(value = "机器人的四元数之一")
|
||||
private String q3;
|
||||
|
||||
@ApiModelProperty(value = "机器人的四元数之一")
|
||||
private String q4;
|
||||
|
||||
// 地面机器人航线参数end
|
||||
|
||||
// add by mxw at 20220510 for 3D Scan 业务 begin
|
||||
@ApiModelProperty(value = "3D Scan 区域Id")
|
||||
private Long areaId;
|
||||
// add by mxw at 20220510 for 3D Scan 业务 end
|
||||
|
||||
// add by mxw at 20220815 for sheng se 业务 begin
|
||||
@ApiModelProperty(value = "设备柜编号")
|
||||
private String targetCode;
|
||||
@ApiModelProperty(value = "拍照个数")
|
||||
private Integer photo;
|
||||
@ApiModelProperty(value = "是否不显示,0:显示、1:不显示")
|
||||
private Integer isNotShow;
|
||||
// add by mxw at 20220815 for sheng se end
|
||||
|
||||
@ApiModelProperty(value = "飞机航点动作,0:无,正常执行,1:悬停,2:返航")
|
||||
private Integer droneActionType;
|
||||
|
||||
// add by mxw at 20231008 for 四川遂宁国网项目使用, 航线生成无需传参 begin
|
||||
/**
|
||||
* 杆塔名称(明文)
|
||||
*/
|
||||
private String towerName;
|
||||
|
||||
/**
|
||||
* 线路名称(明文)
|
||||
*/
|
||||
@ApiModelProperty(value = "线路名称,用来绑定杆塔和航迹对应关系")
|
||||
private String lineName;
|
||||
// add by mxw at 20231008 for 四川遂宁国网项目 end
|
||||
|
||||
@ApiModelProperty(value = "杆塔号,用来绑定杆塔和航迹对应关系")
|
||||
private String towerNum;
|
||||
|
||||
@ApiModelProperty(value = "航线生成类型 0:自动航线生成,1:ikingPowerLine")
|
||||
private Integer routeGenerateType = RouteConstant.RouteGenerateTypeEnum.AUTO_NODE.getCode();
|
||||
|
||||
@ApiModelProperty(value = "花瓣航线版本")
|
||||
private String version;
|
||||
|
||||
@ApiModelProperty(value = "航线面积")
|
||||
private BigDecimal routeArea;
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* 生成航线或者更新航线列表传输实体
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 生成航线或者更新航线列表传输实体
|
||||
* @create 2024/8/19 10:39
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("生成航线或者更新航线列表传输实体")
|
||||
public class RouteCreateOrUpdateListDTO extends ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "创建航线航点和动作")
|
||||
private JSONArray routAndWayPointAction;
|
||||
|
||||
@ApiModelProperty(value = "所有航点的总时长,航线时长,分钟")
|
||||
private Integer routeFlyTime;
|
||||
|
||||
@ApiModelProperty(value = "是否开启仿地")
|
||||
private Boolean isImitateGround = false;
|
||||
|
||||
@ApiModelProperty(value = "航线父id")
|
||||
private Long routeParentId;
|
||||
|
||||
@ApiModelProperty(value = "杆塔名")
|
||||
private String lineName;
|
||||
|
||||
@ApiModelProperty(value = "杆塔序列")
|
||||
private int towerIndex;
|
||||
|
||||
@ApiModelProperty(value = "物理杆塔号")
|
||||
private String towerNum;
|
||||
|
||||
@ApiModelProperty(value = "飞机设备类型 2005:圣飞机,2004:圣SE 2001 虎鲸飞机")
|
||||
private int deviceType;
|
||||
|
||||
@ApiModelProperty(value = "机场海拔高度,航时预估用,新建航线时没有机场则不传此字段")
|
||||
private String dockAltitude;
|
||||
|
||||
@ApiModelProperty(value = "机场纬度-加密,航时预估用,新建航线时没有机场则不传此字段")
|
||||
private String dockLatitude;
|
||||
|
||||
@ApiModelProperty(value = "机场精度-加密,航时预估用,新建航线时没有机场则不传此字段")
|
||||
private String dockLongitude;
|
||||
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 航线实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 航线实体类
|
||||
* @create 2024/7/19 14:33
|
||||
**/
|
||||
@Data
|
||||
public class RouteDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 航线名称
|
||||
*/
|
||||
@ApiModelProperty(value = "航线名称")
|
||||
private String routeName;
|
||||
|
||||
/**
|
||||
* 航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检
|
||||
*/
|
||||
@ApiModelProperty(value = "航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检")
|
||||
private Integer routeType;
|
||||
|
||||
/**
|
||||
* 航线所属机构id
|
||||
*/
|
||||
@ApiModelProperty(value = "航线所属机构id")
|
||||
private Long organizationId;
|
||||
|
||||
/**
|
||||
* 设备sn
|
||||
*/
|
||||
@ApiModelProperty(value = "设备sn")
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 航线所属用户
|
||||
*/
|
||||
@ApiModelProperty(value = "航线所属用户")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
/**
|
||||
* 航线执行次数
|
||||
*/
|
||||
@ApiModelProperty(value = "航线执行次数")
|
||||
private Integer routeRunNum;
|
||||
|
||||
/**
|
||||
* 航线长度
|
||||
*/
|
||||
@ApiModelProperty(value = "航线长度,单位米")
|
||||
private Double routeLength;
|
||||
|
||||
/**
|
||||
* 预计飞行时长
|
||||
*/
|
||||
@ApiModelProperty(value = "预计飞行时长,单位秒")
|
||||
private Double preFlyTime;
|
||||
|
||||
/**
|
||||
* 3D Scan 区域Id
|
||||
*/
|
||||
@ApiModelProperty(value = "3D Scan 区域Id")
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 保存航线时把前端传的参数全部保存在此字段
|
||||
*/
|
||||
@ApiModelProperty(value = "保存航线时把前端传的参数全部保存在此字段(方天用)")
|
||||
private String routeJson;
|
||||
|
||||
/**
|
||||
* 是否不显示
|
||||
*/
|
||||
@ApiModelProperty(value = "是否不显示 (默认是0),0:显示、1:不显示")
|
||||
private Integer isNotShow;
|
||||
|
||||
/**
|
||||
* 父航线id
|
||||
*/
|
||||
@ApiModelProperty(value = "父航线id")
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private Integer deviceType;
|
||||
|
||||
/**
|
||||
* 航线生成类型
|
||||
*/
|
||||
@ApiModelProperty(value = "航线生成类型 0:自动航线生成,1:ikingPowerLine")
|
||||
private Integer routeGenerateType;
|
||||
|
||||
/**
|
||||
* 花瓣航迹 版本
|
||||
*/
|
||||
@ApiModelProperty(value = "花瓣航迹 版本")
|
||||
private String petalRouteVersion;
|
||||
|
||||
/**
|
||||
* 航线面积
|
||||
*/
|
||||
@ApiModelProperty(value = "航线面积")
|
||||
private BigDecimal routeArea;
|
||||
|
||||
/**
|
||||
* 所属行业类型
|
||||
*/
|
||||
@ApiModelProperty(value = "所属行业类型")
|
||||
private Integer industryId;
|
||||
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@ApiModelProperty(value = "所属部门")
|
||||
private Long deptId;
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 航线分页查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 航线分页查询类
|
||||
* @create 2024/8/22 11:52
|
||||
**/
|
||||
@ApiModel("航线分页查询类")
|
||||
@Data
|
||||
public class RoutePageQuery extends ParentQuery {
|
||||
|
||||
@ApiModelProperty(value = "设备sn,查询当前机构及其子机构接口中返回的设备sn,非车载获取航线时必填")
|
||||
private String deviceSn;
|
||||
|
||||
@ApiModelProperty(value = "电塔名称,临时方案:现在电塔和航线没有强关联关系,临时用电塔名称做关联,后期有待优化")
|
||||
private String towerName;
|
||||
|
||||
@ApiModelProperty(value = "航线名称")
|
||||
private String routeName;
|
||||
|
||||
@ApiModelProperty(value = "航线类型,2:起飞航线,3:返航航线,注:起飞航线是飞机从起点到首航点的航线,自动生成航线时用到; 可多个航线类型,有英文逗号隔开")
|
||||
private String routeType;
|
||||
|
||||
@ApiModelProperty(value = "兴趣点Id,如果传了则查询的是兴趣点和设备所属航线")
|
||||
private Long targetId;
|
||||
|
||||
@ApiModelProperty(value = "经度,车载获取航线必填,刚开始是车载需求,现在扩展至所有场景" )
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "维度,车载获取航线必填,刚开始是车载需求,现在扩展至所有场景")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "获取半径内的所有航线,上送经纬度此半径内所有航线,单位米")
|
||||
private BigDecimal radius;
|
||||
|
||||
@ApiModelProperty(value = "航线id")
|
||||
private Long routeId;
|
||||
|
||||
@ApiModelProperty(value = "当前页,默认值1")
|
||||
private Integer page = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页大小,默认值10")
|
||||
private Integer limit = 10;
|
||||
|
||||
// 航线类型数组
|
||||
@JsonIgnore
|
||||
private List<Integer> routeTypes = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty(value = "创建航迹人Id,如果不传,则查询所有航迹,传了userId,则查询userId航迹")
|
||||
private Long userId;
|
||||
}
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 航点实体类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 航点实体类
|
||||
* @create 2024/7/19 14:48
|
||||
**/
|
||||
@Data
|
||||
public class WayPointDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 航点ID
|
||||
*/
|
||||
@ApiModelProperty(value = "航点ID")
|
||||
private Long pointId;
|
||||
|
||||
/**
|
||||
* 航线名称
|
||||
*/
|
||||
@ApiModelProperty(value = "航线名称")
|
||||
private String routeName;
|
||||
|
||||
/**
|
||||
* 航线ID
|
||||
*/
|
||||
@ApiModelProperty(value = "航线ID")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 航点类型
|
||||
*/
|
||||
@ApiModelProperty(value = "航点类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 航点序号
|
||||
*/
|
||||
@ApiModelProperty(value = "航点序号")
|
||||
private Integer index;
|
||||
|
||||
/**
|
||||
* 设备经度
|
||||
*/
|
||||
@ApiModelProperty(value = "设备经度")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 航点纬度
|
||||
*/
|
||||
@ApiModelProperty(value = "航点纬度")
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 航点高度
|
||||
*/
|
||||
@ApiModelProperty(value = "航点高度")
|
||||
private String altitude;
|
||||
|
||||
/**
|
||||
* 航点方向
|
||||
*/
|
||||
@ApiModelProperty(value = "航点方向")
|
||||
private Float direction;
|
||||
|
||||
/**
|
||||
* 航点速度
|
||||
*/
|
||||
@ApiModelProperty(value = "航点速度")
|
||||
private String speed;
|
||||
|
||||
/**
|
||||
* 航点动作
|
||||
*/
|
||||
@ApiModelProperty(value = "航点动作")
|
||||
private JSONArray action;
|
||||
|
||||
/**
|
||||
* 航点编码
|
||||
*/
|
||||
@ApiModelProperty(value = "航点编码")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点
|
||||
*/
|
||||
@ApiModelProperty(value = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点")
|
||||
private Integer propertyType;
|
||||
|
||||
/**
|
||||
* 1 定点转弯 2 协调转弯
|
||||
*/
|
||||
@ApiModelProperty(value = "1 定点转弯 2 协调转弯")
|
||||
private Integer turnType;
|
||||
|
||||
/**
|
||||
* 协调转弯半径
|
||||
*/
|
||||
@ApiModelProperty(value = "协调转弯半径")
|
||||
private Float coordinateRadius;
|
||||
|
||||
/**
|
||||
* 地面机器人地图内x
|
||||
*/
|
||||
@ApiModelProperty(value = "地面机器人地图内x")
|
||||
private String positionX;
|
||||
|
||||
/**
|
||||
* 地面机器人地图内y
|
||||
*/
|
||||
@ApiModelProperty(value = "地面机器人地图内y")
|
||||
private String positionY;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@ApiModelProperty(value = "机器人的四元数")
|
||||
private String q1;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@ApiModelProperty(value = "机器人的四元数")
|
||||
private String q2;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@ApiModelProperty(value = "机器人的四元数")
|
||||
private String q3;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@ApiModelProperty(value = "机器人的四元数")
|
||||
private String q4;
|
||||
|
||||
/**
|
||||
* 地图内z
|
||||
*/
|
||||
@ApiModelProperty(value = "地图内z")
|
||||
private String positionZ;
|
||||
|
||||
/**
|
||||
* 转向
|
||||
*/
|
||||
@ApiModelProperty(value = "转向")
|
||||
private String yaw;
|
||||
|
||||
/**
|
||||
* 拍照照片数
|
||||
*/
|
||||
@ApiModelProperty(value = "拍照照片数")
|
||||
private Integer photo;
|
||||
|
||||
/**
|
||||
* 航线类型
|
||||
*/
|
||||
@ApiModelProperty(value = "航线类型")
|
||||
private Integer routeType;
|
||||
|
||||
/**
|
||||
* 航点动作,0:无,1:悬停,2:返航
|
||||
*/
|
||||
@ApiModelProperty(value = "航点动作,0:无,1:悬停,2:返航")
|
||||
private Integer droneActionType;
|
||||
|
||||
/**
|
||||
* 航点ID
|
||||
*/
|
||||
@ApiModelProperty(value = "航点ID")
|
||||
private Integer wayPointId;
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package com.zlt.tourism.dto.route;
|
||||
|
||||
import com.zlt.tourism.dto.other.ParentQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 航点列表查询类
|
||||
*
|
||||
* @author caiji
|
||||
* @version 1.0
|
||||
* @description 航点列表查询类
|
||||
* @create 2024/7/19 15:53
|
||||
**/
|
||||
@ApiModel("文旅/航点列表查询类")
|
||||
@Data
|
||||
public class WayPointListQuery extends ParentQuery {
|
||||
|
||||
/**
|
||||
* 航线code,航点表中的code十六进制,飞机端获取航线入参
|
||||
*/
|
||||
@ApiModelProperty(value = "航线code,航点表中的code十六进制,飞机端获取航线入参")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* routeId,航线表中的id,unity获取航线入参
|
||||
*/
|
||||
@ApiModelProperty(value = "routeId,航线表中的id,unity获取航线入参")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 设备sn,用于查询设备的起飞/返航航点,自动生成航线时使用
|
||||
*/
|
||||
@ApiModelProperty(value = "设备sn,用于查询设备的起飞/返航航点,自动生成航线时使用")
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 航线类型 2:起飞航线 3:返航航线 用于查询设备的起飞/返航航点,自动生成航线时使用
|
||||
*/
|
||||
@ApiModelProperty(value = "航线类型 2:起飞航线 3:返航航线 用于查询设备的起飞/返航航点,自动生成航线时使用")
|
||||
private Integer routeType;
|
||||
|
||||
/**
|
||||
* 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城),覆盖非电力行业
|
||||
*/
|
||||
@ApiModelProperty(value = "行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城),覆盖非电力行业")
|
||||
private Integer industryId;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.zlt.tourism.dto.user;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-09-29 10:07
|
||||
* @Description: 新增文旅用户请求参数
|
||||
*/
|
||||
@Data
|
||||
public class CreatTourosmUserDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "真实姓名")
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty(value = "盐")
|
||||
private String salt;
|
||||
|
||||
@ApiModelProperty(value = "类型 1新增 2修改")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.zlt.tourism.dto.user;
|
||||
|
||||
import com.zlt.tourism.annotation.ValidPhoneNumber;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* APP登录实体
|
||||
* @author fucj
|
||||
* @description: APP登录实体
|
||||
* @date 2024/7/3 16:12
|
||||
*/
|
||||
@ApiModel("APP登录实体")
|
||||
@Data
|
||||
public class LoginDTO {
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
@ApiModelProperty(value = "用户名称")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@ApiModelProperty(value = "密码,需要密文,rsa加密")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 认证类型
|
||||
*/
|
||||
@ApiModelProperty(value = "认证类型 mobile_password:用户名+密码/手机号+密码 mobile_code:手机号验证码 ",required = true)
|
||||
@NotNull(message = "认证类型不能为空")
|
||||
private String grantType;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@ApiModelProperty(value = "手机号")
|
||||
@ValidPhoneNumber
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 客户端id
|
||||
*/
|
||||
@ApiModelProperty(value = "客户端 app",required = true)
|
||||
@NotNull(message = "客户端不能为空")
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
@ApiModelProperty(value = "验证码")
|
||||
@Size(min=4,max = 4,message = "验证码必须是4位")
|
||||
private String validCode;
|
||||
|
||||
/**
|
||||
* 前端唯一标识
|
||||
*/
|
||||
@ApiModelProperty(value = "前端唯一标识,需与获取验证码的一致,如果是用户名+密码+验证码授权模式为必填",required = true)
|
||||
@NotNull(message = "前端唯一标识不能为空")
|
||||
private String deviceId;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.zlt.tourism.dto.user;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 修改密码实体类
|
||||
*
|
||||
* @author lishilin
|
||||
*/
|
||||
@ApiModel("修改密码实体类")
|
||||
@Data
|
||||
public class PasswordUpdateDTO {
|
||||
|
||||
/**
|
||||
* 原密码
|
||||
*/
|
||||
@ApiModelProperty(value = "原密码不能为空", required = true)
|
||||
@NotBlank(message = "原密码不能为空")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 新密码
|
||||
*/
|
||||
@ApiModelProperty(value = "新密码", required = true)
|
||||
@NotBlank(message = "新密码不能为空")
|
||||
private String newPassword;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "类型 1 设置密码 2修改密码" , required = true)
|
||||
@NotNull(message = "新不能为空")
|
||||
private Integer type;
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
package com.zlt.tourism.dto.user;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统用户
|
||||
*
|
||||
* @author lishilin
|
||||
* @email lishilin4510@163.com
|
||||
* @date 2020-03-04 17:28:57
|
||||
*/
|
||||
@Data
|
||||
public class SysUserEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
public static final int STATUS_FORBIDDEN = 1;
|
||||
public static final int STATUS_NORMAL = 0;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "用户头像")
|
||||
private String avatarUrl;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "员工姓名")
|
||||
private String realName;
|
||||
/**
|
||||
* 盐
|
||||
*/
|
||||
private String salt;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 状态 0:禁用 1:正常
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
private Integer enabled;
|
||||
|
||||
/**
|
||||
* 角色ID列表
|
||||
*/
|
||||
private List<Long> roleIdList;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 机构ID
|
||||
*/
|
||||
private Long organizationId;
|
||||
|
||||
/**
|
||||
* 用户所属机构由之前的单选变成多选,一个用户可以属于多个机构
|
||||
* 机构IDs
|
||||
*/
|
||||
private List<Long> organizationIdList;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
private Long deptId;
|
||||
|
||||
@ApiModelProperty(value = "用户类型 :1 内部账户 2:外部账户 3:临时账户(有过期时间)")
|
||||
private Integer userType;
|
||||
|
||||
@ApiModelProperty("创建人")
|
||||
private Long createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
private String deptName;
|
||||
|
||||
@ApiModelProperty(value = "组织id")
|
||||
private Long commonId;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remake;
|
||||
|
||||
@ApiModelProperty(value = "钉钉用户userId")
|
||||
private String dingUserId;
|
||||
|
||||
private List<Object> deviceList;
|
||||
|
||||
@ApiModelProperty(value = "临时用户过期时间")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date temporaryTime;
|
||||
|
||||
/**
|
||||
* 部门 id集合
|
||||
*/
|
||||
private List<Long> deptIdList;
|
||||
|
||||
/**
|
||||
* 获取in条件数据
|
||||
* t * @return
|
||||
*/
|
||||
public static Long[] getUserIds(List<SysUserEntity> userList) {
|
||||
if (CollectionUtils.isNotEmpty(userList)) {
|
||||
Long[] deviceIds = new Long[userList.size()];
|
||||
for (int i = 0; i < userList.size(); i++) {
|
||||
deviceIds[i] = userList.get(i).getId();
|
||||
}
|
||||
return deviceIds;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user