fix[通用模块]:删除暂无使用的模块

This commit is contained in:
2025-02-10 09:35:15 +08:00
parent 3314ae3fea
commit f78cb47f93
408 changed files with 0 additions and 30833 deletions
-167
View File
@@ -1,167 +0,0 @@
<?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 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>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-common-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-db-spring-boot-starter</artifactId>
</dependency>
<!--<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-iot-spring-boot-starter</artifactId>
<version>6.0.0</version>
</dependency>-->
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-redis-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-loadbalancer-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<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>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version> <!-- 或者使用最新版本 -->
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<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.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.30</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>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<imageTags>
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
<forceTags>true</forceTags>
<baseImage>${docker.baseImage}</baseImage>
<volumes>${docker.volumes}</volumes>
<env>
<JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
</env>
<entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}</finalName>
</build>
</project>
@@ -1,76 +0,0 @@
<?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>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-db-spring-boot-starter</artifactId>
</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>org.springframework.statemachine</groupId>
<artifactId>spring-statemachine-core</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.83</version>
</dependency>
</dependencies>
<build>
</build>
</project>
@@ -1,41 +0,0 @@
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 "系统繁忙,请稍后再试.";
}
@@ -1,27 +0,0 @@
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 {}; // 负载信息
}
@@ -1,34 +0,0 @@
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 void initialize(ValidPhoneNumber validPhoneNumber) {
}
@Override
public boolean isValid(String phoneNumber, ConstraintValidatorContext context) {
// 当手机号为null时返回true,交给@Nullable等其他机制处理
// 如果需要处理null的情况,可以改为返回false
if (StringUtils.isBlank(phoneNumber)) {
return true;
}
return phoneNumber.matches(PHONE_PATTERN); // 校验手机号格式
}
}
@@ -1,64 +0,0 @@
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();
}
}
@@ -1,44 +0,0 @@
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);
}
}
@@ -1,34 +0,0 @@
//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;
//
//
////@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.#");
// }
//
//}
@@ -1,35 +0,0 @@
//package com.zlt.tourism.config;
//
//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();
// }
//}
@@ -1,133 +0,0 @@
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;
}
}
}
@@ -1,71 +0,0 @@
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;
}
}
@@ -1,61 +0,0 @@
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;
}
}
}
@@ -1,56 +0,0 @@
package com.zlt.tourism.core;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* @author: wdkk
* @create: 2023--02--28
* @Description: 基本分页类
*/
@Data
@Schema(description = "分页参数入参")
public class BasePage implements Serializable {
private static final long serialVersionUID = -8763101460523518389L;
@Schema(description = "分页参数 当前页数")
private int page;
@Schema(description = "分页参数 当前页容量")
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;
}
}
@@ -1,84 +0,0 @@
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;
}
}
@@ -1,141 +0,0 @@
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;
}
}
@@ -1,16 +0,0 @@
package com.zlt.tourism.dao;
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> {
}
@@ -1,29 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<BiaxVideoEntity> {
/**
* 获取扩展列表
* @param map 查询条件
* @return
*/
List<BiaxVideoExtListDO> getExtList(@Param("map") Map map);
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<BiaxVideoDownTagEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<BiaxVideoFeatureTagEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<BiaxVideoUpTagEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<FeaturedPhotoEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<FeaturedRouteEntity> {
}
@@ -1,29 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<IkDeviceEntity> {
/**
* 获取列表
* @param map 查询条件
* @return
*/
List<IkDeviceEntity> getList(@Param("map") Map map);
}
@@ -1,25 +0,0 @@
package com.zlt.tourism.dao;
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);
}
@@ -1,18 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<IkOrganizationEntity> {
}
@@ -1,41 +0,0 @@
package com.zlt.tourism.dao;
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.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 SuperMapper<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);
}
@@ -1,16 +0,0 @@
package com.zlt.tourism.dao;
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> {
}
@@ -1,28 +0,0 @@
package com.zlt.tourism.dao;
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);
}
@@ -1,16 +0,0 @@
package com.zlt.tourism.dao;
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> {
}
@@ -1,16 +0,0 @@
package com.zlt.tourism.dao;
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> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<MyFavoriteEntity> {
}
@@ -1,29 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<PanoramaPhotoEntity> {
/**
* 获取扩展列表
* @param map 查询条件
* @return
*/
List<PanoramaPhotoExtListDO> getExtList(@Param("map") Map map);
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<PanoramaPhotoFeatureTagEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<PanoramaPhotoTagEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<PopularScenicSpotEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<PopularTagEntity> {
}
@@ -1,32 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<ResourceRolesIndustryEntity> {
/**
* 根据用户ID获取行业信息
*
* @param map 用户ID
* @return
*/
List<IndustryDTO> findIndustryByUserId(@Param("map") Map map);
}
@@ -1,67 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<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);
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<ScenicSpotDeviceEntity> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<ScenicSpotTagEntity> {
}
@@ -1,30 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<StationControlEntity> {
/**
* 根据用户ID获取控制权限列表
*
* @param map 用户ID
* @return
*/
List<StationControlDTO> findControlByUserId(@Param("map") Map map);
}
@@ -1,16 +0,0 @@
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> {
}
@@ -1,15 +0,0 @@
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> {
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<TourismStreamerEntity> {
}
@@ -1,18 +0,0 @@
package com.zlt.tourism.dao;
import com.central.db.mapper.SuperMapper;
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 SuperMapper<TourismTagEntity> {
}
@@ -1,18 +0,0 @@
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> {
}
@@ -1,113 +0,0 @@
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.v3.oas.annotations.media.Schema;
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
@Schema(description = "文旅/双轴视频列表视图实体类")
public class BiaxVideoExtListDO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 双轴视频名称
*/
@Schema(description = "双轴视频名称")
private String biaxVideoName;
/**
* 景点ID
*/
@Schema(description = "景点ID")
private Long scenicSpotId;
/**
* 航线ID
*/
@Schema(description = "航线ID")
private Long routeId;
/**
* 视频文件
*/
@Schema(description = "视频文件")
private String videoFile;
/**
* 视频时长
*/
@Schema(description = "视频时长")
private String videoMins;
/**
* 备注
*/
@Schema(description = "备注")
private String remark;
/**
* 经度
*/
@Schema(description = "经度")
private BigDecimal longitude;
/**
* 纬度
*/
@Schema(description = "纬度")
private BigDecimal latitude;
/**
* 排序号
*/
@Schema(description = "排序号")
private Integer orderNumber;
/**
* 创建人员ID
*/
@Schema(description = "创建人员ID")
private Long createUserId;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新人员编码
*/
@Schema(description = "更新人员编码")
private Long updateUserId;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
}
@@ -1,120 +0,0 @@
package com.zlt.tourism.domain;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
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
@Schema(description = "文旅/全景照片扩展实体类")
public class PanoramaPhotoExtListDO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
/**
* 景点ID
*/
@Schema(description = "景点ID")
private Long scenicSpotId;
/**
* 照片名称
*/
@Schema(description = "照片名称")
private String photoName;
/**
* 备注
*/
@Schema(description = "备注")
private String remark;
/**
* 附件ID
*/
@Schema(description = "附件ID")
private String fileId;
/**
* 附件名称
*/
@Schema(description = "附件名称")
private String fileName;
/**
* 附件URL
*/
@Schema(description = "附件URL")
private String fileUrl;
/**
* 排序号
*/
@Schema(description = "排序号")
private Integer orderNumber;
/**
* 创建人员ID
*/
@Schema(description = "创建人员ID")
private Long createUserId;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@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;
/**
* 更新人员编码
*/
@Schema(description = "更新人员编码")
private Long updateUserId;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@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;
/**
* 经度
*/
@Schema(description = "经度")
private BigDecimal longitude;
/**
* 纬度
*/
@Schema(description = "纬度")
private BigDecimal latitude;
/**
* 高度
*/
@Schema(description = "高度")
private BigDecimal altitude;
}
@@ -1,32 +0,0 @@
package com.zlt.tourism.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* @Author: mengxianwang
* @Date: 2022-08-05-13:55
* @Description:
*/
@Schema(description = "附档信息")
@Data
public class FileInfoDto implements Serializable {
private static final long serialVersionUID = -1438078028040922174L;
@Schema(description = "文件id")
private String fileId;
/**
* 原始文件名
*/
@Schema(description ="文件名称")
private String fileName;
/**
* oss访问路径 oss需要设置公共读
*/
@Schema(description ="文件存储路径地址")
private String url;
}
@@ -1,126 +0,0 @@
package com.zlt.tourism.dto.device;
import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 设备传输实体
*
* @author caiji
* @version 1.0
* @description 设备传输实体
* @create 2024/7/24 9:40
**/
@Schema(description = "设备传输实体类")
@Data
public class DeviceDetailDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
/**
* 旧表sn
*/
@Schema(description = "旧表sn")
private String sn;
/**
* 设备SN
*/
@Schema(description = "设备id 与发货铭牌一致")
private String deviceSn;
/**
* 控制指令版本,0:v1.0(老) 1:v2.0(新)
*/
@Schema(description = "控制指令版本,0:v1.0(老ws) 1:v2.0(新mqtt")
private Integer cmdVersion;
/**
* 设备名称
*/
@Schema(description = "设备名称")
private String deviceName;
/**
* 设备类型 对于机库 1001:固定机库,1002:车载机库, 2001:旋翼飞机,2002:固定翼
*/
@Schema(description = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100, 4001:监控摄像头")
private Integer deviceType;
/**
* 设备位置 经度
*/
@Schema(description = "设备位置 经度,如果是圣机库,那么是机库中心经度")
private BigDecimal longitude;
/**
* 设备位置 纬度
*/
@Schema(description = "设备位置 纬度,如果是圣机库,那么是机库中心纬度")
private BigDecimal latitude;
/**
* 设备位置 海拔
*/
@Schema(description = "设备位置 海拔,如果是圣机库,那么是机库中心海拔")
private BigDecimal altitude;
/**
* 设备可用状态 0:维修 1:待命 2:停用 3:任务中
*/
@Schema(description = "设备可用状态 0:维修 1:待命 2:停用 3:任务中")
private Integer status;
/**
* 设备覆盖半径(<=5km) 单位为km
*/
@Schema(description = "设备覆盖半径(<=5km) 单位为km")
private Integer radius;
/**
* 设备相关信息描述
*/
@Schema(description = "设备相关信息描述")
@Excel(name = "设备相关信息描述", isImportField = "true")
private String descMsg;
/**
* 是否删除 0 正常 1 删除
*/
@Schema(description = "是否删除记录")
private Integer deleted;
/**
* 设备在线状态
*/
@Schema(description = "设备在线状态")
private Integer onlineStatus;
/**
* 用于标识飞机与机库的配对关系
*/
@Schema(description = "用于标识飞机与机库的配对关系,如果是圣机库,那么是左仓和飞机的配对关系")
private String pairedDevice;
/**
* 圣机库左仓与飞机的配对关系
*/
@Schema(description = "圣机库左仓与飞机的配对关系")
private String pairedDevice1;
/**
* 圣机库右仓与飞机的配对关系
*/
@Schema(description = "圣机库右仓与飞机的配对关系")
private String pairedDevice2;
}
@@ -1,23 +0,0 @@
package com.zlt.tourism.dto.device;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 设备详情查询实体
*
* @author caiji
* @version 1.0
* @description 设备详情查询实体
* @create 2024/7/24 9:29
**/
@Data
public class DeviceInfoQuery extends ParentQuery {
/**
* 设备序列号
*/
@Schema(description = "设备序列号")
private String sn;
}
@@ -1,29 +0,0 @@
package com.zlt.tourism.dto.device;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
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 {
@Schema(description = "经度,需要做迁移的")
private String longitude;
@Schema(description = "纬度,需要做偏移的")
private String latitude;
@Schema(description = "范围参数单位为米")
private BigDecimal radius;
@Schema(description = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100")
private List<String> deviceTypes;
}
@@ -1,29 +0,0 @@
package com.zlt.tourism.dto.device;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
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 {
@Schema(description = "经度,需要做迁移的")
private String longitude;
@Schema(description = "纬度,需要做偏移的")
private String latitude;
@Schema(description = "范围参数单位为米")
private BigDecimal radius;
@Schema(description = "设备类型: 对于机库 1001:固定机库,1002:车载机库,1003:圣机库, 2001:旋翼飞机,2002:固定翼, 2003:圣飞机,3001:ly-c100,3002:ly-d100")
private List<String> deviceTypes;
}
@@ -1,12 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DroneAlarmArray {
String data;
Integer type;
}
@@ -1,13 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DroneAttitude {
Double roll;
Double pitch;
Double yaw;
}
@@ -1,18 +0,0 @@
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; //低电量返航倒计时
}
@@ -1,25 +0,0 @@
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;
}
@@ -1,54 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import io.swagger.v3.oas.annotations.media.Schema;
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;
@Schema(description = "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; //飞机停下来动作
}
@@ -1,16 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DronePayloadHeaders {
String deviceName;
String productId;
String _uid;
}
@@ -1,14 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
import java.util.List;
/**
* @author xulinfei
*/
@Data
public class DronePodStatus {
List<Integer> podStatus;
}
@@ -1,17 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DronePosition {
Double latitude;
Double vel;
Double longitude;
Double height;
}
@@ -1,14 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DroneSignalInfo {
Integer rsrp;
String curlModel;
Integer sinr;
}
@@ -1,15 +0,0 @@
package com.zlt.tourism.dto.device.drone;
import lombok.Data;
/**
* @author xulinfei
*/
@Data
public class DroneSpeed {
Double verticalVelx;
Double verticalVel;
Double verticalVely;
Double verticalVelz;
}
@@ -1,227 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* 创建或编辑任务实体类
*
* @author caiji
* @version 1.0
* @description 创建或编辑任务实体类
* @create 2024/8/3 16:03
**/
@Schema(description = "创建或编辑任务实体类")
@Data
public class CreateOrUpdateMissionRequestDTO extends ParentQuery {
private static final long serialVersionUID = 1L;
/**
* 新建任务时为0,重新发布时当前任务Id
*/
@Schema(description = "新建任务时为0,重新发布时当前任务Id", required = true)
private Long id;
/**
* 任务名称
*/
@Schema(description = "任务名称")
private String name;
/**
* 区域Id(原),机构organizationId(现)
*/
@Schema(description = "区域Id(原),机构organizationId(现)")
private Integer regionId;
/**
* 任务起飞机库sn不能为空
*/
@Schema(description = "任务起飞机库sn", required = true)
@NotBlank(message = "任务起飞机库sn不能为空")
private String takeOffDockId;
/**
* 任务起飞飞机sn,businessType 为3时drone_id会被创建
*/
@Schema(description = "任务起飞飞机sn")
private String takeOffDroneId;
/**
* 任务挂载吊舱类型不能为空
*/
@Schema(description = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱(HJ可见光和小圣一英寸) 2:红外热成像吊舱(HJ红外和小圣双光) 3:外观识别(激光雷达HJ) 4:红外测温(喊话器HJ) 5:表记识别,11:圣机库左舱 22:圣机库右舱", required = true)
@NotNull(message = "任务挂载吊舱类型不能为空")
private Integer podType;
/**
* 圣机库降落舱 11左舱,22右舱
*/
@Schema(description = "圣机库降落舱 11左舱,22右舱")
private Integer landPod;
/**
* 任务类型巡检类型 0:通道巡检 1:精细巡检 2:定点巡检 3:正常巡检 4:异常巡检 5:特殊巡检 6:3D scan精细扫描 7 山海经建模 9 防火巡护 10 防虫害巡护 11 一重山巡检 12 图斑核查巡检
*/
@Schema(description = "任务类型巡检类型 0:通道巡检 1:精细巡检 2:定点巡检 3:正常巡检 4:异常巡检 5:特殊巡检 6:3D scan精细扫描 7 山海经建模 9 防火巡护 10 防虫害巡护 11 一重山巡检 12 图斑核查巡检 ")
private Integer type;
/**
* 航线id
*/
@Schema(description = "航线id", required = true)
@NotNull(message = "航线Id不能为空")
private Long routeId;
/**
* 航点code不能为空
*/
@Schema(description = "航点code,wayPoint表中的code", required = true)
@NotNull(message = "航点code不能为空")
private String code;
/**
* 任务降落机库Id不能为空
*/
@Schema(description = "任务降落机库Id", required = true)
@NotBlank(message = "任务降落机库Id不能为空")
private String landDockId;
/**
* 任务飞行距离
*/
@Schema(description = "任务飞行距离")
private Integer est_distance;
/**
* 任务执行时长
*/
@Schema(description = "任务执行时长")
private Integer est_timespan;
/**
* 任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位
*/
@Schema(description = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位")
private Integer status;
/**
* 用户ID
*/
@Schema(description = "用户ID")
private Long userId;
/**
* 执行起飞的设备sn不能为空
*/
@Schema(description = "执行起飞的sn 可能是飞机 可能是机库", required = true)
@NotBlank(message = "执行起飞的设备sn不能为空")
private String dstId;
/**
* 任务负责人,任务调度系统添加
*/
@Schema(description = "任务负责人,任务调度系统添加")
private String principalList;
/**
* 任务调度飞机起飞高度
*/
@Schema(description = "任务调度飞机起飞高度")
private Integer height;
/**
* 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)
*/
@Schema(description = "行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)")
private Integer businessType;
/**
* 用户计划清单Id
*/
@Schema(description = "用户计划清单Id")
private Long userMissionId;
/**
* 0 卸电不卸传,1 卸电不卸单光,2 卸电不卸红外
*/
@Schema(description = "0 卸电不卸传,1 卸电不卸单光,2 卸电不卸红外")
private Integer changeEquipment;
/**
* 指点飞行返航模式:1 自动返航 0 不自动返航,默认为1
*/
@Schema(description = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
private Integer rtlMode = 1;
/**
* 任务开始时间,格式yyyy-MM-dd HH:mm:ss
*/
@Schema(description = "任务开始时间,格式yyyy-MM-dd HH:mm:ss")
private String startTime;
/**
* 任务结束时间
*/
@Schema(description = "任务结束时间,格式yyyy-MM-dd HH:mm:ss")
private String finishTime;
/**
* 计划子任务id
*/
@Schema(description = "计划子任务id,即表 ik_user_mission_tower_device id")
private Long userMissionTowerDeviceId;
/**
* 猎鹰巡检区域
*/
@Schema(description = "猎鹰巡检区域")
private String missionAreaName;
/**
* 猎鹰巡检区域Id
*/
@Schema(description = "猎鹰巡检区域Id,对应ik_line中的id / 林业区域id(即towerId)")
private Long areaId;
/**
* 猎鹰巡检点位名称
*/
@Schema(description = "猎鹰巡检点位名称,多个用逗号,隔开")
private String pointName;
/**
* 3D Scan巡检区域Id
*/
@Schema(description = "3D Scan巡检区域Id,对应ik_td_scan_area中的id")
private Long tdAreaId;
/**
* 航线生成类型
*/
@Schema(description = "航线生成类型; 0:自动航线生成, 1:ikingPowerLine")
private Integer routeGenerateType;
/**
* 是否开启断点续飞
*/
@Schema(description = "是否开启断点续飞 默认不续飞:0 ,续飞:1")
private Integer resumeFlightEnabled;
/**
* 是否存在子任务
*/
@Schema(description = "是否存在子任务 默认不存在:0 ,存在:1")
private Integer hasSubmission;
/**
* 父任务Id
*/
@Schema(description = "父任务Id")
private Long parentId;
}
@@ -1,156 +0,0 @@
package com.zlt.tourism.dto.mission;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 执行任务实体类
*
* @author caiji
* @version 1.0
* @description 执行任务实体类
* @create 2024/8/3 16:17
**/
@Data
@Schema(description = "执行任务实体类")
public class ExecuteMissionDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 新建任务时为0,重新发布时当前任务Id
*/
@Schema(description = "新建任务时为0,重新发布时当前任务Id", required = true)
private Long id;
/**
* 任务挂载吊舱类型不能为空
*/
@Schema(description = "任务挂载吊舱类型 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:机库复位
*/
@Schema(description = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位")
private Integer status;
/**
* 航点code不能为空
*/
@Schema(description = "航点code,wayPoint表中的code", required = true)
@NotNull(message = "航点code不能为空")
private String code;
/**
* 圣机库降落舱 11左舱,22右舱
*/
@Schema(description = "圣机库降落舱 11左舱,22右舱")
private Integer landPod;
/**
* 任务航线ID(feign接口参数中没有)
*/
@Schema(description = "任务航线ID")
private String missionRouteId;
/**
* 任务起飞机库sn不能为空
*/
@Schema(description = "任务起飞机库sn", required = true)
@NotBlank(message = "任务起飞机库sn不能为空")
private String takeOffDockId;
/**
* 请求渠道
*/
@Schema(description = "请求渠道,1:pad,2:pc,3:drone,4:dock,99:第三方",required = true)
@NotNull(message = "请求渠道不能为空")
private Integer channel;
/**
* 任务降落机库Id不能为空
*/
@Schema(description = "任务降落机库Id", required = true)
@NotBlank(message = "任务降落机库Id不能为空")
private String landDockId;
/**
* 版本号
*/
@Schema(description = "版本号,便于兼容低版本",required = true)
@NotBlank(message = "版本号不能为空")
private String version;
/**
* 任务名称
*/
@Schema(description = "任务名称")
private String name;
/**
* 类型(feign 接口中没有)
*/
@Schema(description = "类型")
private Integer type;
/**
* 航线id
*/
@Schema(description = "航线id", required = true)
@NotNull(message = "航线Id不能为空")
private Long routeId;
/**
* 任务起飞飞机sn,businessType 为3时drone_id会被创建
*/
@Schema(description = "任务起飞飞机sn",required = true)
private String takeOffDroneId;
/**
* 高度(feign 接口中没有)
*/
@Schema(description = "高度")
private Integer height;
/**
* 指点飞行返航模式:1 自动返航 0 不自动返航,默认为1
*/
@Schema(description = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
private Integer rtlMode = 1;
/**
* 执行起飞的设备sn不能为空
*/
@Schema(description = "执行起飞的sn 可能是飞机 可能是机库", required = true)
@NotBlank(message = "执行起飞的设备sn不能为空")
private String dstId;
/**
* 任务开始时间,格式yyyy-MM-dd HH:mm:ss
*/
@Schema(description = "任务开始时间,格式yyyy-MM-dd HH:mm:ss")
private String startTime;
/**
* 用户ID
*/
@Schema(description = "用户ID")
private Long userId;
/**
* 机库类型( v4是宝莲灯机库 , v3是圣Max机库, v2是虎鲸机库)
*/
@Schema(description = "机库类型")
private String dockType;
@Schema(description = "景点Id")
@NotNull(message = "景点Id不能为空")
private Long scenicSpotId;
}
@@ -1,101 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;
/**
* 照片分页查询类
*
* @author caiji
* @version 1.0
* @description 照片分页查询类
* @create 2024/8/7 15:20
**/
@Schema(description = "照片分页查询类")
@Data
public class ImagePageQuery extends ParentQuery {
/**
* 当前页,默认值1
*/
@Schema(description = "当前页,默认值1")
private Integer page = 1;
/**
* 分页大小,默认值10
*/
@Schema(description = "分页大小,默认值10")
private Integer limit = 10;
/**
* 电塔sn
*/
@Schema(description = "电塔sn")
private String towerSn;
/**
* 设备sn
*/
@Schema(description = "设备sn")
private String deviceSn;
/**
* 任务id
*/
@Schema(description = "任务id")
private Long missionId;
/**
* 任务航线id
*/
@Schema(description = "任务航线id")
private Long routeId;
/**
* 设备Id后台承载字段,前端无需送上
*/
@Schema(description = "设备Id后台承载字段,前端无需送上")
private Long deviceId;
/**
* 设备Id后台承载字段list,前端无需送上
*/
@Schema(description = "设备Id后台承载字段list,前端无需送上")
private List<Long> deviceIds;
/**
* 任务开始时间,格式:yyyy-MM-dd HH:mm:ss
*/
@Schema(description = "任务开始时间,格式:yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private String startTime;
/**
* 任务结束时间,格式:yyyy-MM-dd HH:mm:ss
*/
@Schema(description = "任务结束时间,格式:yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private String endTime;
/**
* 任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱
*/
@Schema(description = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱")
private Integer podType;
/**
* 兴趣点
*/
@Schema(description = "兴趣点")
private Long targetId;
/**
* 任务图片Id
*/
@Schema(description = "任务图片Id")
private Long missionImageId;
}
@@ -1,366 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
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
*/
@Schema(description = "任务表")
@Data
public class MissionDTO implements Cloneable, Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "表id,自动递增,步长为1")
private Long id;
@Schema(description = "父任务Id")
private Long parentId;
@Schema(description = "md5(way_point_id&&pod_type),以此确认任务航线是否改变")
private String md5;
@Schema(description = "任务创建者")
private Long userId;
/**
* 用户任务表单id
*/
@Schema(description = "用户任务表单id")
private Long userMissionId;
/**
* 任务类型
*/
@Schema(description = "任务类型")
private Integer missionType;
/**
* 负责人列表(json格式)
*/
@Schema(description = "负责人列表(json格式),已经弃用20210324,使用")
private String principalList;
/**
* 负责人
*/
@Schema(description = "负责人")
private Long principalId;
/**
* 区域
*/
@Schema(description = "区域")
private String regionName;
/**
* 任务名称
*/
@Schema(description = "任务名称")
private String missionName;
/**
* 任务起飞机库Id
*/
@Schema(description = "任务起飞机库Id")
private Long takeOffDockId;
/**
* 任务降落机库铭牌号
*/
@Schema(description = "任务降落机库Id")
private Long landDockId;
/**
* 任务飞机id 集合 以“,”分割
*/
@Schema(description = "任务飞机id 集合 以“,”分割")
private String droneId;
/**
* 任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱
*/
@Schema(description = "任务挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱")
private Integer podType;
@Schema(description = "圣机库降落 舱11左舱,22右舱'")
private Integer landPod;
/**
* 0 单次任务 1 例行任务 2 紧急任务
*/
@Schema(description = "0 单次任务 1 例行任务 2 紧急任务")
private Object scheduleType;
/**
* 航线ids,以“,”
*/
@Schema(description = "航线ids,以“,”")
private String wayPointId;
/**
* 起飞航线Id
*/
@Schema(description = "起飞航线Id")
private Long takeOffRouteId;
/**
* 任务航线Id
*/
@Schema(description = "任务航线Id")
private Long missionRouteId;
/**
* 返航航线Id
*/
@Schema(description = "返航航线Id")
private Long landRouteId;
/**
* 任务开始时间
*/
@Schema(description = "任务开始时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
/**
* 任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库
*/
@Schema(description = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位 6:图片上传完成")
private Integer status;
/**
* 任务结束时间
*/
@Schema(description = "任务结束时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date finishTime;
/**
* 是否删除
*/
@Schema(description = "是否删除 0:正常;1:删除")
private Integer deleted;
/**
* 任务执行时长
*/
@Schema(description = "任务执行时长")
private Integer timespan;
/**
* 任务飞行距离
*/
@Schema(description = "任务飞行距离")
private Integer distance;
/**
* 是否蛙跳任务 0 否 1 是
*/
@Schema(description = "是否蛙跳任务 0 否 1 是")
private Integer isLeapFrogTask;
@Schema(description = "起飞设备")
private String dstId;
@Schema(description = "创建时间 格式:yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
@Schema(description = "更新时间 格式:yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
@TableField(exist = false)
@Schema(description = "任务开始日期 格式:yyyy-MM-dd")
@JSONField(format = "yyyy-MM-dd")
private Date startDate;
@Schema(description = "任务飞机起飞高度")
private Integer height;
@Schema(description = "返航动作:0 卸电不卸传,1卸电不卸单光,2 卸电不卸红外")
private Integer changeEquipment;
@Schema(description = "指点飞行返航模式:1 自动返航 0 不自动返航,默认为1")
private Integer rtlMode;
@Schema(description = "计划子任务id,即表 ik_user_mission_tower_device id")
private Long userMissionTowerDeviceId;
@TableField(exist = false)
@Schema(description = "航线名称")
private String routeName;
@TableField(exist = false)
@Schema(description = "起飞机库名称")
private String takeOffDockName;
@TableField(exist = false)
@Schema(description = "降落机库名称")
private String landDockName;
@TableField(exist = false)
@Schema(description = "起飞机库sn")
private String takeoffDockSn;
@TableField(exist = false)
@Schema(description = "降落机库sn")
private String landDockSn;
@TableField(exist = false)
@Schema(description = "任务创建人")
private String createMissionUser;
@TableField(exist = false)
@Schema(description = "任务执行人")
private String principalMissionUser;
@Schema(description = "猎鹰巡检区域")
private String missionAreaName;
@Schema(description = "猎鹰巡检区域Id,对应ik_line中的id")
private Long areaId;
@Schema(description = "猎鹰巡检点位名称,多个用逗号,隔开")
private String pointName;
// 缺陷分析 add by mxw at 20220316
@Schema(description = "图片缺陷审核状态, 0:未审核 1:审核完成")
private Integer imageApproveStatus;
@Schema(description = "清晰度数值")
private BigDecimal clarity;
@Schema(description = "准确度数值")
private BigDecimal accuracy;
@Schema(description = "图片分析审核人id")
private Long defectApprover;
// 缺陷分析 end
@Schema(description = "3D Scan巡检区域Id,对应ik_td_scan_area中的id")
private Long tdAreaId;
// word报告名称
@TableField(exist = false)
String reportName;
// 设备工作状态
@Schema(description = "设备工作状态;0:其他状态,1:FAT中")
private Integer deviceWorkStatus;
/**
* 任务起飞机库铭牌号
*/
@Schema(description = "任务起飞机库铭牌号")
@TableField(exist = false)
private String takeOffDeviceSn;
/**
* 任务降落机库铭牌号
*/
@Schema(description = "任务降落机库铭牌号")
@TableField(exist = false)
private String landDeviceSn;
/**
* 任务飞机铭牌号
*/
@Schema(description = "任务飞机铭牌号")
@TableField(exist = false)
private String droneSn;
/**
* 任务执行时长
*/
@Schema(description = "任务采集照片数,实际采集照片数")
private Integer picNums;
@Schema(description = "用户头像")
@TableField(exist = false)
private String avatarUrl;
@Schema(description = "用户真实姓名")
@TableField(exist = false)
private String realName;
@Schema(description = "数传视频数量(此统计记录srs flv视频数量)")
private Integer uploadVideoCount;
@Schema(description = "上传图片模式;1:边拍边传,2:飞机落库,由飞机上传,3:飞机落库,由机库即时上传, 4:飞机落库,由机库定时上传")
private Integer uploadImageMode;
@Schema(description = "设定上传图片时间(HH:mm:ss)")
private String uploadImageTime;
@Schema(description = "航线生成类型; 0:自动航线生成, 1:ikingPowerLine")
private Integer routeGenerateType;
@Schema(description = "杆塔id")
private Long towerId;
@Schema(description = "杆塔物理编号")
private String towerSn;
@Schema(description = "此任务应拍照的数量")
private Integer routeMaxPhotoNum;
@TableField(exist = false)
@Schema(description = "预期拍照的数量")
private Integer expectedNumberOfPhoto;
@TableField(exist = false)
@Schema(description = "实际拍照的数量")
private Integer actualNumberOfPhoto;
@Schema(description = "任务报告下载链接")
private String reportUrl;
@Schema(description = "任务飞机设备类型")
private Integer droneDeviceType;
@Schema(description = "飞机吊舱类型;1:华松, 2:红外, 3:一英寸, 4:双光, 5:其他")
private Integer detailPodType;
@Schema(description = "任务航线面积")
private BigDecimal routeArea;
@Schema(description = " 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
private Integer industryType;
@Schema(description = "任务报告下载链接")
private String imageZipUrl;
@Schema(description = "是否开启断点续飞 默认不续飞:0 ,续飞:1")
private Integer resumeFlightEnabled;
@Schema(description = "是否存在子任务 默认不存在:0 ,存在:1")
private Integer hasSubMission;
@Schema(description = "当前任务航线完成状态 0:航线已经飞完 1:航线未飞完")
private Integer overallStatus;
@TableField(exist = false)
@Schema(description = "任务状态全部")
private String statusAll;
@TableField(exist = false)
@Schema(description = "任务缺陷总数")
private Long defectsNum;
@TableField(exist = false)
@Schema(description = "机库设备类型")
private String dockType;
}
@@ -1,261 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
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
**/
@Schema(description = "任务图片传输类")
@Data
public class MissionImageDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
/**
* 任务id
*/
@Schema(description = "任务id")
private Long missionId;
/**
* 任务名
*/
@Schema(description = "任务名")
private String missionName;
/**
* 图片名称
*/
@Schema(description = "图片名称")
private String imageName;
/**
* 图片路径
*/
@Schema(description = "图片路径")
private String url;
/**
* 拍照时飞机的经度
*/
@Schema(description = "拍照时飞机的经度")
private BigDecimal longitude;
/**
* 拍照时飞机的纬度
*/
@Schema(description = "拍照时飞机的纬度")
private BigDecimal latitude;
/**
* 拍照时飞机的相对起飞点高度
*/
@Schema(description = "拍照时飞机的相对起飞点高度")
private BigDecimal altitude;
/**
* 塔编号
*/
@Schema(description = "塔编号")
private String towerId;
/**
* action编号
*/
@Schema(description = "action编号")
private Long actionId;
/**
* 线路编号
*/
@Schema(description = "线路编号")
private String lineId;
/**
* 绝缘子编号
*/
@Schema(description = "绝缘子编号")
private Long targetId;
/**
* 2023-10-17改为机场id
*/
@Schema(description = "机场id")
private Long deviceId;
/**
* 图片类型 0:jpg,1:gif,2:jpeg,3:tif
*/
@Schema(description = "图片类型 0:jpg,1:gif,2:jpeg,3:tif")
private Integer imageType;
/**
* 拍照时间
*/
@Schema(description = "拍照时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date takePhotoTime;
/**
* 图片尺寸宽度
*/
@Schema(description = "图片尺寸宽度")
private Integer imageWidth;
/**
* 图片尺寸高度
*/
@Schema(description = "图片尺寸高度")
private Integer imageHeight;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
@Schema(description = "图片缺陷审核状态 0:未审核 1:已审核")
private Integer approveStatus;
@Schema(description = "图片清晰度 0:不清晰 1:清晰")
private Integer isClear;
@Schema(description = "图片准确度 0:准确 1:不准确")
private Integer isAccurate;
@Schema(description = "审核人id")
private Long approverId;
@Schema(description = "3D Scan 区域id")
private Long areaId;
@Schema(description = "是否已AI探测识别,0:未探测, 1:已探测")
private Integer isAiDetect;
@Schema(description = "圣se拍照设备位置 1:上、2:中、3: 下载缺陷分析报告")
private Integer uploadStatus = 0;
@Schema(description = "sn")
private String sn;
@Schema(description = "是否是红外图片,1:是,2:否")
private Integer isInfrared;
@Schema(description = "红外图片中的最高温度")
private String max;
@Schema(description = "红外图片中的最低温度")
private String min;
@Schema(description = "红外图片中的最高温度的x坐标")
private String maxPosX;
@Schema(description = "红外图片中的最高温度的y坐标")
private String maxPosY;
@Schema(description = "红外图片中的最低温度的x坐标")
private String minPosX;
@Schema(description = "红外图片中的最低温度的y坐标")
private String minPosY;
@Schema(description = "缩略图访问路径")
private String thumbnailUrl;
@Schema(description = "拍摄目标经度")
private String targetLongitude;
@Schema(description = "拍摄目标纬度")
private String targetLatitude;
@Schema(description = "拍摄目标高度")
private String targetAltitude;
@Schema(description = "拍摄目标距离云台拍照距离")
private String targetDistance;
@Schema(description = "拍摄目标类型")
private Integer newTargetType;
@Schema(description = "杆塔id")
private Long towerKeyId;
@Schema(description = "原图或者缩略图,默认原图,0:缩略图,1:原图")
private Integer isSrcImage;
@Schema(description = "杆塔跨点左右端区分(跨点前半部航点分为左,后半部分为右);0是左边,1是右边,3是未知;默认值是3")
private Integer partitionLeftRight;
@Schema(description = "航点飞机朝向")
private Float yaw;
@Schema(description = "拍照动作俯仰角度")
private Float pitch;
@Schema(description = "拍照动作变焦倍数")
private Float zoom;
@Schema(description = "飞机航向")
private Float actionYaw;
@Schema(description = " 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
private Integer industryType;
@Schema(description = " 图片分类 0 任务图片 1 大模型图片 ")
private Integer bigModelType;
@Schema(description = " 林班 ")
private String forestryClass;
@Schema(description = " 大班 ")
private String bigClass;
@Schema(description = " 小班 ")
private String smallClass;
@Schema(description = " 石化图片表的id(大模型图片id) ")
private Long missionVideoShihuaId;
@Schema(description = "解析实时地址名称")
private String address;
@Schema(description = "缩略图是否上传;0:未上传, 1:上传")
private Integer thumbnailUp;
@Schema(description = "缩略图md5")
private String thumbnailMd5;
@Schema(description = "原图是否上传;0:未上传, 1:上传")
private Integer srcUp;
@Schema(description = "原图md5")
private String srcMd5;
@Schema(description = "图片uuid")
private String imageUuid;
}
@@ -1,48 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
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;
@Schema(description = "任务id")
private Long id;
@Schema(description = "任务名称")
private String missionName;
@Schema(description = "任务航线Id")
private Long missionRouteId;
@Schema(description = "任务开始时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
@Schema(description = "任务结束时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date finishTime;
@Schema(description = "起飞机库sn")
private String takeoffDockSn;
@Schema(description = "降落机库sn")
private String landDockSn;
@Schema(description = "飞机sn")
private String droneSn;
@Schema(description = "景点id")
private Long scenicSoptId;
}
@@ -1,207 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 任务视频传输实体类
*
* @author caiji
* @version 1.0
* @description 任务视频传输实体类
* @create 2024/8/8 8:25
**/
@Schema(description = "任务视频传输实体类")
@Data
public class MissionRecordVideoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@Schema(description = "主键")
private Long id;
/**
* 设备执行任务Id
*/
@Schema(description = "设备执行任务Id")
private Long missionId;
/**
* 设备SN
*/
@Schema(description = "设备SN")
private String deviceId;
/**
* 摄像机名称
*/
@Schema(description = "摄像机名称")
private String cameraName;
/**
* 视频url
*/
@Schema(description = "视频url")
private String url;
/**
* 视频类型 0:rtsp 1:rtmp 2:hls
*/
@Schema(description = "视频类型 0:rtsp 1:rtmp 2:hls ")
private Integer videoType;
/**
* 视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS
*/
@Schema(description = "视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS")
private Integer videoCodec;
/**
* 音频编码格式 0:AC3 1:DTS
*/
@Schema(description = "音频编码格式 0:AC3 1:DTS")
private Integer audioCodec;
/**
* 视频时长
*/
@Schema(description = "视频时长")
private Long timespan;
/**
* 视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误
*/
@Schema(description = "视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误")
private Integer status;
/**
* 0:正常 1:删除
*/
@Schema(description = "0:正常 1:删除")
private Integer deleted;
/**
* 开始时间
*/
@Schema(description = "开始时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
/**
* 结束时间
*/
@Schema(description = "结束时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
/**
* 视频文件md5值
*/
@Schema(description = "视频文件md5值")
private String videoMd5;
/**
* 视频文件名称
*/
@Schema(description = "视频文件名称")
private String videoName;
/**
* 视频文件分片总数
*/
@Schema(description = "视频文件分片总数")
private Integer videoChunks;
/**
* 视频缩略图路径
*/
@Schema(description = "视频缩略图路径")
private String videoImageUrl;
/**
* 视频文件当前已上传分片数
*/
@Schema(description = "视频文件当前已上传分片数")
private Integer videoChunk;
/**
* 设备sn
*/
@Schema(description = "设备sn")
private String deviceSn;
/**
* 上传状态,0:未上传, 1:上传中, 2:上传完成
*/
@Schema(description = "上传状态,0:未上传, 1:上传中, 2:上传完成")
private Integer uploadStatus;
/**
* uuid; (断点续传记录文件名)
*/
@Schema(description = "uuid; (断点续传记录文件名)")
private String uuid;
/**
* 机库id
*/
@Schema(description = "机库id")
private Long dockId;
/**
* 记录类型;1:设备上传视频, 2:srs视频
*/
@Schema(description = "记录类型;1:设备上传视频, 2:srs视频")
private Integer recordType;
/**
* 视频url
*/
@Schema(description = "压缩flv视频url")
private String flvUrl;
/**
* 行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建
*/
@Schema(description = "行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建")
private Integer industryType;
/**
* 视频摄像头分类:0 普通光 1 红外线 2 图传普通光 3 图传红外线 4 大模型识别流
*/
@Schema(description = "视频摄像头分类:0 普通光 1 红外线 2 图传普通光 3 图传红外线 4 大模型识别流")
private Integer videoCameraType;
/**
* 压缩和对象存储状态;0:私有化存储, 1:原视频上传对象存储未完成,2:原视频上传对象存储完成
*/
@Schema(description = "压缩和对象存储状态;0:私有化存储, 1:原视频上传对象存储未完成,2:原视频上传对象存储完成")
private Integer CompressStorageState;
/**
* 当前分片上传状态;0:待上传, 1:上传中, 2:上传成功,3:上传失败
*/
@Schema(description = "当前分片上传状态;0:待上传, 1:上传中, 2:上传成功,3:上传失败")
private Integer currentChunkState;
}
@@ -1,20 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.zlt.tourism.core.BasePage;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @Author: duzhichao
* @CreateTime: 2024-10-11 11:20
* @Description: 任务分页查询
*/
@Data
public class MissionStatusUpdateDTO extends BasePage {
@Schema(description = "任务id")
private Long missionId;
@Schema(description = "状态值")
private Integer missionStatus;
}
@@ -1,42 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 任务回放查询类
*
* @author caiji
* @version 1.0
* @description 任务回放查询类
* @create 2024/8/26 14:07
**/
@Schema(description = "文旅/任务回放查询类")
@Data
public class MissionTrackListQuery extends ParentQuery {
@Schema(description = "当前页,默认值1")
private Integer page = 1;
@Schema(description = "分页大小,默认值10")
private Integer limit = 10;
@Schema(description = "任务创建开始时间,格式yyyy-MM-dd HH:mm:ss")
private String startTime;
@Schema(description = "任务创建结束时间,格式yyyy-MM-dd HH:mm:ss")
private String endTime;
@Schema(description = "当前登录系统用户id,无需上送,后台自行处理")
private Long userId;
@Schema(description = "任务Id")
private Long missionId;
@Schema(description = "查询任务范围 1: 自己创建的任务,默认,2:所有")
private Integer isOwn=1;
@Schema(description = "任务状态 0:待处理,1:执行中, 2:已完成, 3:取消 4:飞机落库 5:机库复位 6: 图片上传完成")
private Integer status;
}
@@ -1,108 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
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
@Schema(description = "主键")
private Long id;
/**
* 设备执行任务Id
*/
@Schema(description = "设备执行任务Id")
private Long missionId;
/**
* 设备Id
*/
@Schema(description = "设备Id")
private Long deviceId;
/**
* 摄像机名称
*/
@Schema(description = "摄像机名称")
private String cameraName;
/**
* 视频url
*/
@Schema(description = "视频url")
private String url;
/**
* 视频类型 0:rtsp 1:rtmp 2:hls
*/
@Schema(description = "视频类型 0:rtsp 1:rtmp 2:hls")
private Integer videoType;
/**
* 视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS
*/
@Schema(description = "视频编码格式 0:H264 1:H265 2:mpeg4 3:AV1 4:AVS")
private Integer videoCodec;
/**
* 音频编码格式 0:AC3 1:DTS
*/
@Schema(description = "音频编码格式 0:AC3 1:DTS")
private Integer audioCodec;
/**
* 视频时长
*/
@Schema(description = "视频时长")
private Integer timespan;
/**
* 视频状态 0:直播未开始 1:正在直播 2:录播 -1:视频错误
*/
@Schema(description = "视频状态 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;
}
@@ -1,30 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 设备推流列表查询类
*
* @author caiji
* @version 1.0
* @description 设备推流列表查询类
* @create 2024/7/19 15:53
**/
@Schema(description = "文旅/设备推流列表查询类")
@Data
public class MissionVideoListQuery extends ParentQuery {
/**
* 设备Sn
*/
@Schema(description = "设备sn,查询当前机构及其子机构接口中返回的设备sn" ,required = true)
String deviceSn;
/**
* 设备类型
*/
@Schema(description = "设备类型,1001:固定机库,车载机库:1002,旋翼飞机:2001,固定翼飞机:2002")
private int deviceType;
}
@@ -1,42 +0,0 @@
package com.zlt.tourism.dto.mission;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 任务视频分页查询类
*
* @author caiji
* @version 1.0
* @description 任务视频分页查询类
* @create 2024/8/8 8:22
**/
@Schema(description = "任务视频分页查询类")
@Data
public class VideoPageQuery extends ParentQuery {
/**
* 飞机sn
*/
@Schema(description = "飞机sn", required = false)
private String deviceSn;
/**
* 任务id
*/
@Schema(description = "任务id", required = true)
private Long missionId;
/**
* 当前页,默认值1
*/
@Schema(description = "当前页,默认值1")
private Integer page = 1;
/**
* 分页大小,默认值10
*/
@Schema(description = "分页大小,默认值10")
private Integer limit = 10;
}
@@ -1,53 +0,0 @@
package com.zlt.tourism.dto.order;
import io.swagger.v3.oas.annotations.media.Schema;
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;
@Schema(description = "用户id")
private String userId;
@Schema(description = "航线code")
private String routeCode;
@Schema(description = "起飞机库")
private String takeOffDockSn;
@Schema(description = "降落机库")
private String landDockSn;
@Schema(description = "起飞飞机")
private String takeOffDroneSn;
@Schema(description = "订单状态:1:排队中 2:待支付 3:已支付 4:任务中 5:任务完成")
private Integer OrderStatus;
@Schema(description = "订单类型:暂定")
private Integer OrderType;
@Schema(description = "任务id")
private Long missionId;
@Schema(description = "套餐id")
private Long comboId;
@Schema(description = "订单金额")
private String orderNum;
@Schema(description = "景点Id")
private Long scenicSpotId;
@Schema(description = "打卡点Id")
private Long checkInPoint;
}
@@ -1,18 +0,0 @@
package com.zlt.tourism.dto.order;
import com.zlt.tourism.model.tourism.TourismOrderEnity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @Author: duzhichao
* @CreateTime: 2024-12-25 14:17
* @Description: 订单
*/
@Data
public class OrderInfoDTO extends TourismOrderEnity {
@Schema(description = "排队人数")
private Integer numberline;
}
@@ -1,94 +0,0 @@
package com.zlt.tourism.dto.org;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
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
*/
@Schema(description = "自增id")
private Long id;
/**
* 上级机构
*/
@Schema(description = "上级机构")
private Long parentId;
/**
* 机构名称
*/
@Schema(description = "机构名称")
private String name;
/**
* 机构等级
*/
@Schema(description = "机构等级")
private Integer level;
/**
* 机构状态
*/
@Schema(description = "机构状态,0:正常,1:禁用")
private Integer status;
/**
* 机构唯一编码
*/
@Schema(description = "机构唯一编码")
private String uniqueId;
/**
* 经度
*/
@Schema(description = "经度")
private BigDecimal longitude;
/**
* 纬度
*/
@Schema(description = "纬度")
private BigDecimal latitude;
/**
* 海拔
*/
@Schema(description = "海拔")
private BigDecimal altitude;
private Long commonId;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
}
@@ -1,14 +0,0 @@
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 {
}
@@ -1,20 +0,0 @@
package com.zlt.tourism.dto.org;
import com.zlt.tourism.dto.user.SysUserEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 机构查询类
*
* @author caiji
* @version 1.0
* @description 机构查询类
* @create 2024/7/15 15:17
**/
@Data
public class OrganizationTreeQuery extends OrganizationQuery{
@Schema(description = "操作员Id")
private SysUserEntity sysUser;
}
@@ -1,39 +0,0 @@
package com.zlt.tourism.dto.other;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* 行业实体类
*
* @author caiji
* @version 1.0
* @description 行业实体类
* @create 2024/7/29 8:56
**/
@Data
@Schema(description = "行业实体类")
public class IndustryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 行业类型
*/
@Schema(description = "行业类型")
private String industryType;
/**
* 名称
*/
@Schema(description = "名称")
private String name;
/**
* 编码
*/
@Schema(description = "编码")
private String code;
}
@@ -1,52 +0,0 @@
package com.zlt.tourism.dto.other;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
* 模型列表查询类
*
* @author caiji
* @version 1.0
* @description 模型列表查询类
* @create 2024/8/29 13:08
**/
@Schema(description = "模型列表查询类")
@Data
public class ModelListQuery extends ParentQuery{
@Schema(description = "机构Ids,数组")
private List<Long> organizationIds;
@Schema(description = "经度,需要做迁移的")
private String longitude;
@Schema(description = "纬度,需要做偏移的")
private String latitude;
@Schema(description = "范围参数单位为米")
private BigDecimal radius;
@Schema(description = "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
*/
@Schema(description = "模型所属,1:内网 2:外网")
private Integer ownership;
/**
* 按照time排序 1顺序 2 倒叙
*/
@Schema(description = "按照time排序 1顺序 2 倒叙")
private Integer orderByTime;
@Schema(description = "时间筛选开始时间具体到天的时间戳")
private Long startTimeAt;
@Schema(description = "时间筛选结束时间具体到天的时间戳")
private Long endTimeAt;
}
@@ -1,25 +0,0 @@
package com.zlt.tourism.dto.other;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @author xulinfei
*/
@Data
public class ParentQuery {
@Schema(description = "版本号,便于兼容低版本",required = true)
@NotBlank(message = "版本号不能为空")
private String version;
@Schema(description = "请求渠道,1:pad,2:pc,3:drone,4:dock,99:第三方",required = true)
@NotNull(message = "请求渠道不能为空")
private Integer channel;
@Schema(description = "行业类别 0 通用版本 1 电力 2 水利 3 油气行业 4 智慧城市 5 应急救援 7 圣MAX 8 林业巡护 9 工业园区 10 文旅 11 电建 ")
private Integer industryType;
}
@@ -1,36 +0,0 @@
package com.zlt.tourism.dto.other;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* @author xulinfei
* @date 2020/11/7 18:48
*/
@Data
@Schema(description = "控制权限实体类")
public class StationControlDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 控制类型
*/
@Schema(description = "控制类型")
private Integer controlType;
/**
* 名称
*/
@Schema(description = "名称")
private String name;
/**
* 编码
*/
@Schema(description = "编码")
private String code;
}
@@ -1,43 +0,0 @@
package com.zlt.tourism.dto.route;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import java.io.Serializable;
/**
* 位置信息实体
*
* @author caiji
* @version 1.0
* @description 位置信息实体
* @create 2024/8/16 13:45
**/
@Schema(description = "位置信息实体")
@Data
public class RockerRouteDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 经度
*/
@Schema(description = "经度")
@NotBlank(message = "经度不能为空")
private String longitude;
/**
* 纬度
*/
@Schema(description = "纬度")
@NotBlank(message = "纬度不能为空")
private String Latitude;
/**
* 高度
*/
@Schema(description = "高度")
@NotBlank(message = "高度不能为空")
private String altitude;
}
@@ -1,35 +0,0 @@
package com.zlt.tourism.dto.route;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
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
@Schema(description = "文旅-摇臂查询类")
public class RockerRouteQuery extends ParentQuery {
/**
* 航点数组;([[经,纬,高], ...])
*/
@Schema(description = "航点数组;([[经,纬,高], ...])", required = true)
@NotNull(message = "航点数组不能为空")
private List<List<BigDecimal>> waypoints;
/**
* dist_thre
*/
@Schema(description = "dist_thre")
private Float dist_thre = 8f;
}
@@ -1,169 +0,0 @@
package com.zlt.tourism.dto.route;
import com.zlt.tourism.constant.RouteConstant;
import com.zlt.tourism.vo.ActionVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
* 生成航线或者更新航线传输实体
*
* @author caiji
* @version 1.0
* @description 生成航线或者更新航线传输实体
* @create 2024/8/19 10:43
**/
@Data
@Schema(description = "生成航线或者更新航线传输实体")
public class RouteCreateOrUpdateDTO {
@Schema(description = "设备sn", required = true)
private String deviceId;
@Schema(description = "电塔Sn")
private String towerSn;
@Schema(description = "机构id")
private Long organizationId;
@Schema(description = "航点code,十六进制,新增非必填,修改时必填")
private String code;
@Schema(description = "设备名称")
private String deviceName;
@Schema(description = "航线名称,密文", required = true)
private String routeName;
@Schema(description = "航点名称")
private String wayPointName;
@Schema(description = "航线Id,route_id > 0 逻辑删除 route_id = 0 新建")
private Integer routeId;
@Schema(description = "航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检,留着是为了兼容旧版地面站")
private Integer type;
@Schema(description = "航线类型 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;
@Schema(description = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点 4激光航点不取数,5激光航点取数据", required = true)
private Integer propertyType;
@Schema(description = "航点序号", required = true)
private Integer index;
@Schema(description = "设备经度", required = true)
private String longitude;
@Schema(description = "航点纬度", required = true)
private String latitude;
@Schema(description = "航点高度", required = true)
private String altitude;
@Schema(description = "航点速度")
private String speed;
@Schema(description = "航点方向")
private Float direction;
// 20210312 自动规划航线新增字段begin
@Schema(description = "转弯类型 1 定点转弯 2 协调转弯", required = true)
private Integer turnType;
@Schema(description = "协调转弯半径", required = true)
private float coordinateRadius;
@Schema(description = "是否单塔航线类型 0:代表旧版或者多塔航点,1:代表单塔航点", required = true)
private Integer singleType;
@Schema(description = "线路id(为了区分该航点在塔的左右侧", required = true)
private long lineId;
// 20210312 自动规划航线新增字段end
@Schema(description = "相机动作")
private List<ActionVo> action;
@Schema(description = "航线长度,单位米")
private Double routeLength;
@Schema(description = "预计飞行时长,单位秒")
private Double preFlyTime;
// 地面机器人航线参数begin
@Schema(description = "地面机器人地图内x")
private String positionX;
@Schema(description = "地面机器人地图内y")
private String positionY;
// add by mxw at 20220510 for SE设备添加字段 begin
@Schema(description = "地图内z")
private String positionZ;
@Schema(description = "转向")
private String yaw;
// add by mxw at 20220510 for SE设备添加字段 end
@Schema(description = "机器人的四元数之一")
private String q1;
@Schema(description = "机器人的四元数之一")
private String q2;
@Schema(description = "机器人的四元数之一")
private String q3;
@Schema(description = "机器人的四元数之一")
private String q4;
// 地面机器人航线参数end
// add by mxw at 20220510 for 3D Scan 业务 begin
@Schema(description = "3D Scan 区域Id")
private Long areaId;
// add by mxw at 20220510 for 3D Scan 业务 end
// add by mxw at 20220815 for sheng se 业务 begin
@Schema(description = "设备柜编号")
private String targetCode;
@Schema(description = "拍照个数")
private Integer photo;
@Schema(description = "是否不显示,0:显示、1:不显示")
private Integer isNotShow;
// add by mxw at 20220815 for sheng se end
@Schema(description = "飞机航点动作,0:无,正常执行,1:悬停,2:返航")
private Integer droneActionType;
// add by mxw at 20231008 for 四川遂宁国网项目使用, 航线生成无需传参 begin
/**
* 杆塔名称(明文)
*/
private String towerName;
/**
* 线路名称(明文)
*/
@Schema(description = "线路名称,用来绑定杆塔和航迹对应关系")
private String lineName;
// add by mxw at 20231008 for 四川遂宁国网项目 end
@Schema(description = "杆塔号,用来绑定杆塔和航迹对应关系")
private String towerNum;
@Schema(description = "航线生成类型 0:自动航线生成,1:ikingPowerLine")
private Integer routeGenerateType = RouteConstant.RouteGenerateTypeEnum.AUTO_NODE.getCode();
@Schema(description = "花瓣航线版本")
private String version;
@Schema(description = "航线面积")
private BigDecimal routeArea;
}
@@ -1,54 +0,0 @@
package com.zlt.tourism.dto.route;
import com.alibaba.fastjson.JSONArray;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 生成航线或者更新航线列表传输实体
*
* @author caiji
* @version 1.0
* @description 生成航线或者更新航线列表传输实体
* @create 2024/8/19 10:39
**/
@Data
@Schema(description = "生成航线或者更新航线列表传输实体")
public class RouteCreateOrUpdateListDTO extends ParentQuery {
@Schema(description = "创建航线航点和动作")
private JSONArray routAndWayPointAction;
@Schema(description = "所有航点的总时长,航线时长,分钟")
private Integer routeFlyTime;
@Schema(description = "是否开启仿地")
private Boolean isImitateGround = false;
@Schema(description = "航线父id")
private Long routeParentId;
@Schema(description = "杆塔名")
private String lineName;
@Schema(description = "杆塔序列")
private int towerIndex;
@Schema(description = "物理杆塔号")
private String towerNum;
@Schema(description = "飞机设备类型 2005:圣飞机,2004:圣SE 2001 虎鲸飞机")
private int deviceType;
@Schema(description = "机场海拔高度,航时预估用,新建航线时没有机场则不传此字段")
private String dockAltitude;
@Schema(description = "机场纬度-加密,航时预估用,新建航线时没有机场则不传此字段")
private String dockLatitude;
@Schema(description = "机场精度-加密,航时预估用,新建航线时没有机场则不传此字段")
private String dockLongitude;
}
@@ -1,155 +0,0 @@
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.v3.oas.annotations.media.Schema;
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
*/
@Schema(description = "主键ID")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 航线名称
*/
@Schema(description = "航线名称")
private String routeName;
/**
* 航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检
*/
@Schema(description = "航线类型 2:起飞航线 3:返航航线 4:通道巡检 5:精细巡检")
private Integer routeType;
/**
* 航线所属机构id
*/
@Schema(description = "航线所属机构id")
private Long organizationId;
/**
* 设备sn
*/
@Schema(description = "设备sn")
private String deviceSn;
/**
* 航线所属用户
*/
@Schema(description = "航线所属用户")
private Long userId;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
/**
* 航线执行次数
*/
@Schema(description = "航线执行次数")
private Integer routeRunNum;
/**
* 航线长度
*/
@Schema(description = "航线长度,单位米")
private Double routeLength;
/**
* 预计飞行时长
*/
@Schema(description = "预计飞行时长,单位秒")
private Double preFlyTime;
/**
* 3D Scan 区域Id
*/
@Schema(description = "3D Scan 区域Id")
private Long areaId;
/**
* 保存航线时把前端传的参数全部保存在此字段
*/
@Schema(description = "保存航线时把前端传的参数全部保存在此字段(方天用)")
private String routeJson;
/**
* 是否不显示
*/
@Schema(description = "是否不显示 (默认是0),0:显示、1:不显示")
private Integer isNotShow;
/**
* 父航线id
*/
@Schema(description = "父航线id")
private Long parentId;
/**
* 设备类型
*/
@Schema(description = "设备类型")
private Integer deviceType;
/**
* 航线生成类型
*/
@Schema(description = "航线生成类型 0:自动航线生成,1:ikingPowerLine")
private Integer routeGenerateType;
/**
* 花瓣航迹 版本
*/
@Schema(description = "花瓣航迹 版本")
private String petalRouteVersion;
/**
* 航线面积
*/
@Schema(description = "航线面积")
private BigDecimal routeArea;
/**
* 所属行业类型
*/
@Schema(description = "所属行业类型")
private Integer industryId;
/**
* 所属部门
*/
@Schema(description = "所属部门")
private Long deptId;
}
@@ -1,63 +0,0 @@
package com.zlt.tourism.dto.route;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
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
**/
@Schema(description = "航线分页查询类")
@Data
public class RoutePageQuery extends ParentQuery {
@Schema(description = "设备sn,查询当前机构及其子机构接口中返回的设备sn,非车载获取航线时必填")
private String deviceSn;
@Schema(description = "电塔名称,临时方案:现在电塔和航线没有强关联关系,临时用电塔名称做关联,后期有待优化")
private String towerName;
@Schema(description = "航线名称")
private String routeName;
@Schema(description = "航线类型,2:起飞航线,3:返航航线,注:起飞航线是飞机从起点到首航点的航线,自动生成航线时用到; 可多个航线类型,有英文逗号隔开")
private String routeType;
@Schema(description = "兴趣点Id,如果传了则查询的是兴趣点和设备所属航线")
private Long targetId;
@Schema(description = "经度,车载获取航线必填,刚开始是车载需求,现在扩展至所有场景" )
private String longitude;
@Schema(description = "维度,车载获取航线必填,刚开始是车载需求,现在扩展至所有场景")
private String latitude;
@Schema(description = "获取半径内的所有航线,上送经纬度此半径内所有航线,单位米")
private BigDecimal radius;
@Schema(description = "航线id")
private Long routeId;
@Schema(description = "当前页,默认值1")
private Integer page = 1;
@Schema(description = "分页大小,默认值10")
private Integer limit = 10;
// 航线类型数组
@JsonIgnore
private List<Integer> routeTypes = new ArrayList<>();
@Schema(description = "创建航迹人Id,如果不传,则查询所有航迹,传了userId,则查询userId航迹")
private Long userId;
}
@@ -1,183 +0,0 @@
package com.zlt.tourism.dto.route;
import com.alibaba.fastjson.JSONArray;
import io.swagger.v3.oas.annotations.media.Schema;
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
*/
@Schema(description = "航点ID")
private Long pointId;
/**
* 航线名称
*/
@Schema(description = "航线名称")
private String routeName;
/**
* 航线ID
*/
@Schema(description = "航线ID")
private Long routeId;
/**
* 航点类型
*/
@Schema(description = "航点类型")
private Integer type;
/**
* 航点序号
*/
@Schema(description = "航点序号")
private Integer index;
/**
* 设备经度
*/
@Schema(description = "设备经度")
private String longitude;
/**
* 航点纬度
*/
@Schema(description = "航点纬度")
private String latitude;
/**
* 航点高度
*/
@Schema(description = "航点高度")
private String altitude;
/**
* 航点方向
*/
@Schema(description = "航点方向")
private Float direction;
/**
* 航点速度
*/
@Schema(description = "航点速度")
private String speed;
/**
* 航点动作
*/
@Schema(description = "航点动作")
private JSONArray action;
/**
* 航点编码
*/
@Schema(description = "航点编码")
private String code;
/**
* 航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点
*/
@Schema(description = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点")
private Integer propertyType;
/**
* 1 定点转弯 2 协调转弯
*/
@Schema(description = "1 定点转弯 2 协调转弯")
private Integer turnType;
/**
* 协调转弯半径
*/
@Schema(description = "协调转弯半径")
private Float coordinateRadius;
/**
* 地面机器人地图内x
*/
@Schema(description = "地面机器人地图内x")
private String positionX;
/**
* 地面机器人地图内y
*/
@Schema(description = "地面机器人地图内y")
private String positionY;
/**
* 机器人的四元数
*/
@Schema(description = "机器人的四元数")
private String q1;
/**
* 机器人的四元数
*/
@Schema(description = "机器人的四元数")
private String q2;
/**
* 机器人的四元数
*/
@Schema(description = "机器人的四元数")
private String q3;
/**
* 机器人的四元数
*/
@Schema(description = "机器人的四元数")
private String q4;
/**
* 地图内z
*/
@Schema(description = "地图内z")
private String positionZ;
/**
* 转向
*/
@Schema(description = "转向")
private String yaw;
/**
* 拍照照片数
*/
@Schema(description = "拍照照片数")
private Integer photo;
/**
* 航线类型
*/
@Schema(description = "航线类型")
private Integer routeType;
/**
* 航点动作,0:无,1:悬停,2:返航
*/
@Schema(description = "航点动作,0:无,1:悬停,2:返航")
private Integer droneActionType;
/**
* 航点ID
*/
@Schema(description = "航点ID")
private Integer wayPointId;
}
@@ -1,48 +0,0 @@
package com.zlt.tourism.dto.route;
import com.zlt.tourism.dto.other.ParentQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 航点列表查询类
*
* @author caiji
* @version 1.0
* @description 航点列表查询类
* @create 2024/7/19 15:53
**/
@Schema(description = "文旅/航点列表查询类")
@Data
public class WayPointListQuery extends ParentQuery {
/**
* 航线code,航点表中的code十六进制,飞机端获取航线入参
*/
@Schema(description = "航线code,航点表中的code十六进制,飞机端获取航线入参")
private String code;
/**
* routeId,航线表中的id,unity获取航线入参
*/
@Schema(description = "routeId,航线表中的id,unity获取航线入参")
private Long routeId;
/**
* 设备sn,用于查询设备的起飞/返航航点,自动生成航线时使用
*/
@Schema(description = "设备sn,用于查询设备的起飞/返航航点,自动生成航线时使用")
private String deviceSn;
/**
* 航线类型 2:起飞航线 3:返航航线 用于查询设备的起飞/返航航点,自动生成航线时使用
*/
@Schema(description = "航线类型 2:起飞航线 3:返航航线 用于查询设备的起飞/返航航点,自动生成航线时使用")
private Integer routeType;
/**
* 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城),覆盖非电力行业
*/
@Schema(description = "行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城),覆盖非电力行业")
private Integer industryId;
}
@@ -1,37 +0,0 @@
package com.zlt.tourism.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
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;
@Schema(description = "用户名")
private String userName;
@Schema(description = "密码")
private String password;
@Schema(description = "真实姓名")
private String realName;
@Schema(description = "手机号")
private String mobile;
@Schema(description = "盐")
private String salt;
@Schema(description = "类型 1新增 2修改")
private Integer type;
@Schema(description = "用户id")
private Long userId;
}
@@ -1,66 +0,0 @@
package com.zlt.tourism.dto.user;
import com.zlt.tourism.annotation.ValidPhoneNumber;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* APP登录实体
* @author fucj
* @description: APP登录实体
* @date 2024/7/3 16:12
*/
@Schema(description = "APP登录实体")
@Data
public class LoginDTO {
/**
* 用户名称
*/
@Schema(description = "用户名称")
private String userName;
/**
* 密码
*/
@Schema(description = "密码,需要密文,rsa加密")
private String password;
/**
* 认证类型
*/
@Schema(description = "认证类型 mobile_password:用户名+密码/手机号+密码 mobile_code:手机号验证码 ",required = true)
@NotNull(message = "认证类型不能为空")
private String grantType;
/**
* 手机号
*/
@Schema(description = "手机号")
@ValidPhoneNumber
private String mobile;
/**
* 客户端id
*/
@Schema(description = "客户端 app",required = true)
@NotNull(message = "客户端不能为空")
private String clientId;
/**
* 验证码
*/
@Schema(description = "验证码")
@Size(min=4,max = 4,message = "验证码必须是4位")
private String validCode;
/**
* 前端唯一标识
*/
@Schema(description = "前端唯一标识,需与获取验证码的一致,如果是用户名+密码+验证码授权模式为必填",required = true)
@NotNull(message = "前端唯一标识不能为空")
private String deviceId;
}
@@ -1,36 +0,0 @@
package com.zlt.tourism.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* 修改密码实体类
*
* @author lishilin
*/
@Schema(description = "修改密码实体类")
@Data
public class PasswordUpdateDTO {
/**
* 原密码
*/
@Schema(description = "原密码不能为空", required = true)
@NotBlank(message = "原密码不能为空")
private String password;
/**
* 新密码
*/
@Schema(description = "新密码", required = true)
@NotBlank(message = "新密码不能为空")
private String newPassword;
@Schema(description = "类型 1 设置密码 2修改密码" , required = true)
@NotNull(message = "新不能为空")
private Integer type;
}
@@ -1,158 +0,0 @@
package com.zlt.tourism.dto.user;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
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;
@Schema(description = "用户头像")
private String avatarUrl;
/**
* 密码
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String password;
@Schema(description = "员工姓名")
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;
@Schema(description = "用户类型 :1 内部账户 2:外部账户 3:临时账户(有过期时间)")
private Integer userType;
@Schema(description = "创建人")
private Long createUserId;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/**
* 更新时间
*/
@Schema(description = "更新时间")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
/**
* 部门名称
*/
private String deptName;
@Schema(description = "组织id")
private Long commonId;
@Schema(description = "备注")
private String remake;
@Schema(description = "钉钉用户userId")
private String dingUserId;
private List<Object> deviceList;
@Schema(description = "临时用户过期时间")
@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;
}
}
@@ -1,33 +0,0 @@
package com.zlt.tourism.dto.user;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 更新用户实体类
*
* @author lishilin
*/
@Schema(description = "更新用户实体类")
@Data
public class UserUpdateDTO {
/**
* 用户名字
*/
@Schema(description = "用户名字")
private String realName;
/**
* 图片路径
*/
@Schema(description = "图片路径")
private String avatarUrl;
/**
* 电话号码
*/
@Schema(description = "电话号码")
private String mobile;
}
@@ -1,135 +0,0 @@
package com.zlt.tourism.enums;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 机场类型枚举类
*
* @author caiji
* @version 1.0
* @description 机场类型枚举类
* @create 2024/8/7 8:30
**/
public enum DockTypeEnum {
/**
* 固定机库
*/
FIXED_DOCK(1001, "固定机库"),
/**
* 车载机库
*/
VEHICLE_DOCK(1002, "车载机库"),
/**
* 圣MAX机库
*/
MAX_DOCK(1003, "圣MAX机库"),
/**
* 宝莲灯
*/
MAGIC_LAMP_DOCK(1004, "宝莲灯"),
/**
* 圣MAX孪生机场
*/
MAX_TWIN_DOCK(1005, "圣MAX孪生机场"),
/**
* 数据母舰
*/
DATA_WARSHIP(1006, "数据母舰"),
/**
* 圣SE机库
*/
SE_DOCK(1007, "圣SE机库"),
/**
* 宝莲灯孪生机库
*/
MAGIC_LAMP_TWIN_DOCK(1008, "宝莲灯孪生机库"),
/**
* 宝莲樽
*/
MAGIC_GOBLET(1009, "宝莲樽");
private final Integer key;
private final String value;
DockTypeEnum(Integer key, String value) {
this.key = key;
this.value = value;
}
static Map<Integer, DockTypeEnum> valueMap = new HashMap<>();
static {
for (DockTypeEnum e : DockTypeEnum.values()) {
valueMap.put(e.key, e);
}
}
public Integer getKey() {
return key;
}
public String getValue() {
return value;
}
public static DockTypeEnum getEnum(Integer key) {
return valueMap.get(key);
}
public static Map<Integer, Object> getAllValueMap() {
Map<Integer, Object> map = new HashMap<>();
for (DockTypeEnum e : DockTypeEnum.values()) {
map.put(e.getKey(), e.getValue());
}
return map;
}
/**
* 判断key是否存在
*
* @param key key
* @return 存在true,不存在false
*/
public static boolean hasKey(Integer key) {
return valueMap.containsKey(key);
}
/**
* 根据key获取value,存在直接返回value,不存在返回null
*
* @param key key
* @return 存在直接返回value,不存在返回null
*/
public static String getValueByKey(Integer key) {
if (hasKey(key)) {
return valueMap.get(key).value;
}
return null;
}
/**
* 获取key集合
* @return
*/
public static List<Integer> getKeyList(){
List<Integer> keyList = new ArrayList<>();
for (DockTypeEnum e : DockTypeEnum.values()) {
keyList.add(e.getKey());
}
return keyList;
}
}
@@ -1,108 +0,0 @@
package com.zlt.tourism.enums;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 文件存储媒介枚举类
*
* @author caiji
* @version 1.0
* @description 文件存储媒介枚举类
* @create 2024/8/7 13:36
**/
public enum StorageMediumEnum {
/**
* 硬盘
*/
DISK("disk", "硬盘"),
/**
* 数据库
*/
DATABASE("database", "数据库"),
/**
* OSS
*/
OSS("oss", "OSS"),
/**
* MinIO
*/
MinIO("minio", "MinIO文件存储");
private final String key;
private final String value;
StorageMediumEnum(String key, String value) {
this.key = key;
this.value = value;
}
static Map<String, StorageMediumEnum> valueMap = new HashMap<>();
static {
for (StorageMediumEnum e : StorageMediumEnum.values()) {
valueMap.put(e.key, e);
}
}
public String getKey() {
return key;
}
public String getValue() {
return value;
}
public static StorageMediumEnum getEnum(String key) {
return valueMap.get(key);
}
public static Map<String, Object> getAllValueMap() {
Map<String, Object> map = new HashMap<>();
for (StorageMediumEnum e : StorageMediumEnum.values()) {
map.put(e.getKey(), e.getValue());
}
return map;
}
/**
* 判断key是否存在
*
* @param key key
* @return 存在true,不存在false
*/
public static boolean hasKey(String key) {
return valueMap.containsKey(key);
}
/**
* 根据key获取value,存在直接返回value,不存在返回null
*
* @param key key
* @return 存在直接返回value,不存在返回null
*/
public static String getValueByKey(String key) {
if (hasKey(key)) {
return valueMap.get(key).value;
}
return null;
}
/**
* 获取key集合
* @return
*/
public static List<String> getKeyList(){
List<String> keyList = new ArrayList<>();
for (StorageMediumEnum e : StorageMediumEnum.values()) {
keyList.add(e.getKey());
}
return keyList;
}
}

Some files were not shown because too many files have changed in this diff Show More