diff --git a/zlt-business/tourism-center/README.md b/zlt-business/tourism-center/README.md deleted file mode 100644 index e69de29b..00000000 diff --git a/zlt-business/tourism-center/pom.xml b/zlt-business/tourism-center/pom.xml deleted file mode 100644 index 602b6adc..00000000 --- a/zlt-business/tourism-center/pom.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - 4.0.0 - - com.zlt - zlt-business - 6.0.0 - - tourism-center - 文旅中心 - pom - - tourism-core - tourism-service - tourism-open-api - - - - com.zlt - zlt-config - - - com.zlt - zlt-common-spring-boot-starter - - - com.zlt - zlt-db-spring-boot-starter - - - - - com.zlt - zlt-redis-spring-boot-starter - - - com.zlt - zlt-loadbalancer-spring-boot-starter - - - com.zlt - zlt-sentinel-spring-boot-starter - - - com.zlt - zlt-oss-spring-boot-starter - - - com.alibaba.cloud - spring-cloud-starter-alibaba-nacos-discovery - - - io.swagger.core.v3 - swagger-annotations-jakarta - - - org.springframework.boot - spring-boot-starter-actuator - - - - javax.validation - validation-api - 2.0.1.Final - - - - io.micrometer - micrometer-registry-prometheus - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-validation - - - - org.freemarker - freemarker - 2.3.30 - - - - mysql - mysql-connector-java - - - - javax.validation - validation-api - 1.1.0.Final - - - - org.apache.shiro - shiro-core - 1.7.1 - - - - junit - junit - 4.11 - test - - - - - - - com.zlt - tourism-core - 1.0.0 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - repackage - - - - - - com.spotify - docker-maven-plugin - - ${docker.image.prefix}/${project.artifactId} - - ${project.version} - latest - - true - ${docker.baseImage} - ${docker.volumes} - - ${docker.java.opts} - - ["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"] - - - / - ${project.build.directory} - ${project.build.finalName}.jar - - - - - - ${project.artifactId} - - diff --git a/zlt-business/tourism-center/tourism-core/pom.xml b/zlt-business/tourism-center/tourism-core/pom.xml deleted file mode 100644 index 65368fb8..00000000 --- a/zlt-business/tourism-center/tourism-core/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - tourism-center - com.zlt - 6.0.0 - - - 4.0.0 - tourism-core - tourism-core - jar - - - - - - - - - com.github.pagehelper - pagehelper-spring-boot-starter - 1.4.6 - - - com.github.jsqlparser - jsqlparser - - - org.mybatis - mybatis - - - - - - com.zlt - zlt-db-spring-boot-starter - - - - org.springframework.boot - spring-boot-starter-validation - - - - org.apache.shiro - shiro-core - 1.7.1 - - - - org.springframework.statemachine - spring-statemachine-core - 2.5.1 - - - - - javax.servlet - javax.servlet-api - 4.0.1 - compile - - - com.alibaba - fastjson - 1.2.83 - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/Limit.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/Limit.java deleted file mode 100644 index e0964697..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/Limit.java +++ /dev/null @@ -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 "系统繁忙,请稍后再试."; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/ValidPhoneNumber.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/ValidPhoneNumber.java deleted file mode 100644 index 00f4b99b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/ValidPhoneNumber.java +++ /dev/null @@ -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[] payload() default {}; // 负载信息 -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/validator/PhoneNumberValidator.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/validator/PhoneNumberValidator.java deleted file mode 100644 index dfbb8de2..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/annotation/validator/PhoneNumberValidator.java +++ /dev/null @@ -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 { - - // 手机号正则表达式(以中国手机号为例) - 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); // 校验手机号格式 - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/aop/LimitAop.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/aop/LimitAop.java deleted file mode 100644 index d4bc646c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/aop/LimitAop.java +++ /dev/null @@ -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 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 resultData = Result.failed(-1, limit.msg()); - return resultData; - } - } - return joinPoint.proceed(); - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/OrderStatusMachineConfig.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/OrderStatusMachineConfig.java deleted file mode 100644 index c4827643..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/OrderStatusMachineConfig.java +++ /dev/null @@ -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 { - - /** - * 配置状态 - */ - @Override - public void configure(StateMachineStateConfigurer 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 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); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/QueueConfig.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/QueueConfig.java deleted file mode 100644 index 2e6f3eab..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/QueueConfig.java +++ /dev/null @@ -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.#"); -// } -// -//} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/WebSocketConfig.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/WebSocketConfig.java deleted file mode 100644 index 5925e3f3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/config/WebSocketConfig.java +++ /dev/null @@ -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(); -// } -//} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/DeviceConstant.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/DeviceConstant.java deleted file mode 100644 index 47392778..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/DeviceConstant.java +++ /dev/null @@ -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; - } - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/OrderConstant.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/OrderConstant.java deleted file mode 100644 index 53e75bbe..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/OrderConstant.java +++ /dev/null @@ -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; - } - - } diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/RouteConstant.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/RouteConstant.java deleted file mode 100644 index fe9861f3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/constant/RouteConstant.java +++ /dev/null @@ -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; - } - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/BasePage.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/BasePage.java deleted file mode 100644 index 7c9e7c6d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/BasePage.java +++ /dev/null @@ -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; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/Pager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/Pager.java deleted file mode 100644 index 4c883b6b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/Pager.java +++ /dev/null @@ -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; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/StationResult.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/StationResult.java deleted file mode 100644 index 96a70b1c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/core/StationResult.java +++ /dev/null @@ -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 { - 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 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; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/AudioFileInfoDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/AudioFileInfoDao.java deleted file mode 100644 index ec3a366b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/AudioFileInfoDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDao.java deleted file mode 100644 index d73ff8e3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDao.java +++ /dev/null @@ -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 { - - /** - * 获取扩展列表 - * @param map 查询条件 - * @return - */ - List getExtList(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDownTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDownTagDao.java deleted file mode 100644 index 47726b93..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoDownTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoFeatureTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoFeatureTagDao.java deleted file mode 100644 index 8299fbca..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoFeatureTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoUpTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoUpTagDao.java deleted file mode 100644 index 1e0b6840..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/BiaxVideoUpTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedPhotoDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedPhotoDao.java deleted file mode 100644 index f1b01c9e..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedPhotoDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedRouteDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedRouteDao.java deleted file mode 100644 index 988c5ab4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/FeaturedRouteDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkDeviceDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkDeviceDao.java deleted file mode 100644 index f7a94511..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkDeviceDao.java +++ /dev/null @@ -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 { - - /** - * 获取列表 - * @param map 查询条件 - * @return - */ - List getList(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkMissionDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkMissionDao.java deleted file mode 100644 index 2cb6741e..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkMissionDao.java +++ /dev/null @@ -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 { - - IPage getPage(Page queryPage, @Param("params") MissionServicePageQuery params); - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkOrganizationDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkOrganizationDao.java deleted file mode 100644 index 4e89e349..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkOrganizationDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkRouteDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkRouteDao.java deleted file mode 100644 index deb2d51d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkRouteDao.java +++ /dev/null @@ -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 { - - /** - * 获取坐标附近的航线列表 - * - * @param map 坐标信息 - * @return - */ - List getNearbyRouteList(@Param("map") Map map); - - /** - * 我收藏景点分页 - * - * @param page 分页信息 - * @param map 查询条件 - * @return - */ - IPage getNearbyRoutePageList(Page page, @Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkSysUserDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkSysUserDao.java deleted file mode 100644 index 02eaafbb..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/IkSysUserDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageDao.java deleted file mode 100644 index 0545b44e..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageDao.java +++ /dev/null @@ -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 { - - /** - * 根据设备ID获取最新一张照片 - * @param map 设备ID - * @return - */ - MissionImageEntity getLastOneByDeviceId(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageUserDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageUserDao.java deleted file mode 100644 index daaf6d8c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionImageUserDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionRecordVideoUserDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionRecordVideoUserDao.java deleted file mode 100644 index 00c52fcf..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MissionRecordVideoUserDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MyFavoriteDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MyFavoriteDao.java deleted file mode 100644 index abb2628c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/MyFavoriteDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoDao.java deleted file mode 100644 index 342ec7c1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoDao.java +++ /dev/null @@ -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 { - - /** - * 获取扩展列表 - * @param map 查询条件 - * @return - */ - List getExtList(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoFeatureTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoFeatureTagDao.java deleted file mode 100644 index 5385f0a5..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoFeatureTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoTagDao.java deleted file mode 100644 index aaa8b08b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PanoramaPhotoTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularScenicSpotDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularScenicSpotDao.java deleted file mode 100644 index 38d08978..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularScenicSpotDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularTagDao.java deleted file mode 100644 index 3dbb3133..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/PopularTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ResourceRolesIndustryDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ResourceRolesIndustryDao.java deleted file mode 100644 index 57d9582d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ResourceRolesIndustryDao.java +++ /dev/null @@ -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 { - - /** - * 根据用户ID获取行业信息 - * - * @param map 用户ID - * @return - */ - List findIndustryByUserId(@Param("map") Map map); - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDao.java deleted file mode 100644 index 850821ff..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDao.java +++ /dev/null @@ -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{ - - /** - * 景点分页 - * - * @param page 分页信息 - * @param map 查询条件 - * @return - */ - IPage getScenicSpotPageList(Page page, @Param("map") Map map); - - /** - * 热门景点分页 - * - * @param page 分页信息 - * @param map 查询条件 - * @return - */ - IPage getPopularScenicSpotPageList(Page page, @Param("map") Map map); - - /** - * 热门标签景点分页 - * - * @param page 分页信息 - * @param map 查询条件 - * @return - */ - IPage getPopularTagPageList(Page page, @Param("map") Map map); - - /** - * 我收藏景点分页 - * - * @param page 分页信息 - * @param map 查询条件 - * @return - */ - IPage getMyFavoritePageList(Page page, @Param("map") Map map); - - /** - * 获取附近景点列表 - * - * @param map 查询条件 - * @return - */ - List getNearbyList(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDeviceDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDeviceDao.java deleted file mode 100644 index befbcee0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotDeviceDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotTagDao.java deleted file mode 100644 index 9f130dc1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/ScenicSpotTagDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/StationControlDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/StationControlDao.java deleted file mode 100644 index 37b8a6d7..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/StationControlDao.java +++ /dev/null @@ -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 { - - /** - * 根据用户ID获取控制权限列表 - * - * @param map 用户ID - * @return - */ - List findControlByUserId(@Param("map") Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderDao.java deleted file mode 100644 index 3ed41761..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderDao.java +++ /dev/null @@ -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 { - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderStatusDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderStatusDao.java deleted file mode 100644 index 64a2eaad..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismOrderStatusDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismStreamerDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismStreamerDao.java deleted file mode 100644 index 4830d530..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismStreamerDao.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismTagDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismTagDao.java deleted file mode 100644 index 1a4aac18..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismTagDao.java +++ /dev/null @@ -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 { - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismUserDao.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismUserDao.java deleted file mode 100644 index f8d8cc19..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dao/TourismUserDao.java +++ /dev/null @@ -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 { - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/BiaxVideoExtListDO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/BiaxVideoExtListDO.java deleted file mode 100644 index b7e94abf..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/BiaxVideoExtListDO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/PanoramaPhotoExtListDO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/PanoramaPhotoExtListDO.java deleted file mode 100644 index fe1f3cce..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/domain/PanoramaPhotoExtListDO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/FileInfoDto.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/FileInfoDto.java deleted file mode 100644 index ebf48e80..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/FileInfoDto.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceDetailDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceDetailDTO.java deleted file mode 100644 index 5bd32b7b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceDetailDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceInfoQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceInfoQuery.java deleted file mode 100644 index 8cbff67b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceInfoQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceListQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceListQuery.java deleted file mode 100644 index 5f1e3d00..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceListQuery.java +++ /dev/null @@ -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 deviceTypes; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceQuery.java deleted file mode 100644 index 2e04b853..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/DeviceQuery.java +++ /dev/null @@ -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 deviceTypes; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAlarmArray.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAlarmArray.java deleted file mode 100644 index 347f7ffb..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAlarmArray.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.zlt.tourism.dto.device.drone; - -import lombok.Data; - -/** - * @author xulinfei - */ -@Data -public class DroneAlarmArray { - String data; - Integer type; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAttitude.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAttitude.java deleted file mode 100644 index 6a241b5b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneAttitude.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneCountDown.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneCountDown.java deleted file mode 100644 index 59711e63..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneCountDown.java +++ /dev/null @@ -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; //低电量返航倒计时 -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneMessage.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneMessage.java deleted file mode 100644 index 1f15502a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneMessage.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadData.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadData.java deleted file mode 100644 index ca48fc45..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadData.java +++ /dev/null @@ -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 podStatus; - DronePosition position; //实时位置经纬高 - DroneAttitude attitude; - Integer imageIndex; - DroneCountDown droneCountdown; //飞机停下来动作 - -} - diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadHeaders.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadHeaders.java deleted file mode 100644 index 1c367f6f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePayloadHeaders.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePodStatus.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePodStatus.java deleted file mode 100644 index 00ecb774..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePodStatus.java +++ /dev/null @@ -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 podStatus; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePosition.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePosition.java deleted file mode 100644 index 0654d470..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DronePosition.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSignalInfo.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSignalInfo.java deleted file mode 100644 index 0cd2fbc4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSignalInfo.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSpeed.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSpeed.java deleted file mode 100644 index 314f4123..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/device/drone/DroneSpeed.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/CreateOrUpdateMissionRequestDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/CreateOrUpdateMissionRequestDTO.java deleted file mode 100644 index 8c7f56f5..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/CreateOrUpdateMissionRequestDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ExecuteMissionDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ExecuteMissionDTO.java deleted file mode 100644 index bd6278e4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ExecuteMissionDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ImagePageQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ImagePageQuery.java deleted file mode 100644 index 581fedca..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/ImagePageQuery.java +++ /dev/null @@ -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 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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionDTO.java deleted file mode 100644 index b5465cdc..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionImageDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionImageDTO.java deleted file mode 100644 index a4915675..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionImageDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionPageDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionPageDTO.java deleted file mode 100644 index cd78f20a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionPageDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionRecordVideoDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionRecordVideoDTO.java deleted file mode 100644 index 3e68e466..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionRecordVideoDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionStatusUpdateDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionStatusUpdateDTO.java deleted file mode 100644 index a24b7cfe..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionStatusUpdateDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionTrackListQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionTrackListQuery.java deleted file mode 100644 index b2b21b31..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionTrackListQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoDTO.java deleted file mode 100644 index 213d6893..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoListQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoListQuery.java deleted file mode 100644 index 82fb07c8..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/MissionVideoListQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/VideoPageQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/VideoPageQuery.java deleted file mode 100644 index 6a37a0c1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/mission/VideoPageQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/CreateOrderDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/CreateOrderDTO.java deleted file mode 100644 index 8fc684bb..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/CreateOrderDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/OrderInfoDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/OrderInfoDTO.java deleted file mode 100644 index 0abea2f0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/order/OrderInfoDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationDTO.java deleted file mode 100644 index 066fc761..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationQuery.java deleted file mode 100644 index adfd48f0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationQuery.java +++ /dev/null @@ -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 { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationTreeQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationTreeQuery.java deleted file mode 100644 index 6afb1d4a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/org/OrganizationTreeQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/IndustryDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/IndustryDTO.java deleted file mode 100644 index 17d27842..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/IndustryDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ModelListQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ModelListQuery.java deleted file mode 100644 index 03ca5a90..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ModelListQuery.java +++ /dev/null @@ -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 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 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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ParentQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ParentQuery.java deleted file mode 100644 index ce158972..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/ParentQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/StationControlDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/StationControlDTO.java deleted file mode 100644 index 4a2ea01a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/other/StationControlDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteDTO.java deleted file mode 100644 index 8cc56015..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteQuery.java deleted file mode 100644 index 286b99e1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RockerRouteQuery.java +++ /dev/null @@ -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> waypoints; - - /** - * dist_thre - */ - @Schema(description = "dist_thre") - private Float dist_thre = 8f; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateDTO.java deleted file mode 100644 index cfe83d35..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateDTO.java +++ /dev/null @@ -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 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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateListDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateListDTO.java deleted file mode 100644 index bea6d27b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteCreateOrUpdateListDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteDTO.java deleted file mode 100644 index 6a8ab650..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RouteDTO.java +++ /dev/null @@ -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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RoutePageQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RoutePageQuery.java deleted file mode 100644 index 8aeaa426..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/RoutePageQuery.java +++ /dev/null @@ -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 routeTypes = new ArrayList<>(); - - @Schema(description = "创建航迹人Id,如果不传,则查询所有航迹,传了userId,则查询userId航迹") - private Long userId; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointDTO.java deleted file mode 100644 index e660639c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointListQuery.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointListQuery.java deleted file mode 100644 index 52084810..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/route/WayPointListQuery.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/CreatTourosmUserDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/CreatTourosmUserDTO.java deleted file mode 100644 index ebb8638a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/CreatTourosmUserDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/LoginDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/LoginDTO.java deleted file mode 100644 index 820b9f48..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/LoginDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/PasswordUpdateDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/PasswordUpdateDTO.java deleted file mode 100644 index 44c6778f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/PasswordUpdateDTO.java +++ /dev/null @@ -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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/SysUserEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/SysUserEntity.java deleted file mode 100644 index 570de409..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/SysUserEntity.java +++ /dev/null @@ -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 roleIdList; - - /** - * 设备id - */ - private Long deviceId; - - /** - * 设备名称 - */ - private String deviceName; - - /** - * 机构ID - */ - private Long organizationId; - - /** - * 用户所属机构由之前的单选变成多选,一个用户可以属于多个机构 - * 机构IDs - */ - private List 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 deviceList; - - @Schema(description = "临时用户过期时间") - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date temporaryTime; - - /** - * 部门 id集合 - */ - private List deptIdList; - - /** - * 获取in条件数据 - * t * @return - */ - public static Long[] getUserIds(List 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; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/UserUpdateDTO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/UserUpdateDTO.java deleted file mode 100644 index 15b940ad..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/dto/user/UserUpdateDTO.java +++ /dev/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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/DockTypeEnum.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/DockTypeEnum.java deleted file mode 100644 index 1d5bcab4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/DockTypeEnum.java +++ /dev/null @@ -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 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 getAllValueMap() { - Map 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 getKeyList(){ - List keyList = new ArrayList<>(); - for (DockTypeEnum e : DockTypeEnum.values()) { - keyList.add(e.getKey()); - } - return keyList; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/StorageMediumEnum.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/StorageMediumEnum.java deleted file mode 100644 index 40805a80..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/enums/StorageMediumEnum.java +++ /dev/null @@ -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 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 getAllValueMap() { - Map 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 getKeyList(){ - List keyList = new ArrayList<>(); - for (StorageMediumEnum e : StorageMediumEnum.values()) { - keyList.add(e.getKey()); - } - return keyList; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/exception/GlobalExceptionHandler.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/exception/GlobalExceptionHandler.java deleted file mode 100644 index 9ecfacc4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/exception/GlobalExceptionHandler.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.zlt.tourism.exception; - - -import com.central.common.model.Result; -import com.zlt.tourism.util.ParamsErrorUtil; -import org.apache.poi.ss.formula.functions.T; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.MethodArgumentNotValidException; -import org.springframework.web.bind.annotation.ExceptionHandler; -import org.springframework.web.bind.annotation.RestControllerAdvice; - -import java.util.Map; - -@RestControllerAdvice -public class GlobalExceptionHandler { - - @ExceptionHandler(MethodArgumentNotValidException.class) - public Result handleValidationExceptions(MethodArgumentNotValidException ex) { - BindingResult result = ex.getBindingResult(); - Map map = ParamsErrorUtil.getErrors(result); - return Result.failed(map.values().toString()); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/StationWebService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/StationWebService.java deleted file mode 100644 index 320c6a70..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/StationWebService.java +++ /dev/null @@ -1,216 +0,0 @@ -package com.zlt.tourism.feign; - -import com.central.common.constant.ServiceNameConstants; -import com.central.common.model.Result; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.FileInfoDto; -import com.zlt.tourism.dto.device.DeviceInfoQuery; -import com.zlt.tourism.dto.device.DeviceListQuery; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.dto.org.OrganizationQuery; -import com.zlt.tourism.dto.other.ModelListQuery; -import com.zlt.tourism.dto.route.RockerRouteQuery; -import com.zlt.tourism.dto.route.RouteCreateOrUpdateListDTO; -import com.zlt.tourism.dto.route.RoutePageQuery; -import com.zlt.tourism.dto.route.WayPointListQuery; -import com.zlt.tourism.dto.user.PasswordUpdateDTO; -import com.zlt.tourism.dto.user.UserUpdateDTO; -import com.zlt.tourism.feign.fallback.StationWebServiceFallbackFactory; -import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; - -import java.io.IOException; - -/** - * station-web模块远程调用 - * - * @author caiji - * @version 1.0 - * @description station-web模块远程调用 - * @create 2024/7/3 16:19 - **/ -@FeignClient(name = ServiceNameConstants.DEVICE_SERVICE, fallbackFactory = StationWebServiceFallbackFactory.class, dismiss404 = true) -public interface StationWebService { - - - /** - * 获取登录的用户信息 - * - * @return 用户信息 - */ - @GetMapping("/info") - StationResult info(); - - /** - * 个人头像上传 - * - * @param file 文件 - * @return 附档信息 - * @throws Exception - */ - @PostMapping(value = "/uploadAvatar", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - Result uploadAvatar(@RequestPart("file") MultipartFile file) throws Exception; - - /** - * 修改用户手机号和头像和用户名 - * - * @param form 修改信息 - * @return 执行结果 - */ - @PostMapping("/mobileAndAvatarUrlAndRealName") - StationResult phoneNumAndAvatarUrl(@RequestBody UserUpdateDTO form); - - /** - * 修改登录用户密码 - * - * @param form 修改实体 - * @param token token - * @return 是否成功 - */ - @PostMapping("/password") - StationResult password(@RequestBody PasswordUpdateDTO form, @RequestHeader(value = "Authorization") String token); - - /** - * 根据用户ID获取设备列表 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/device/query") - StationResult queryDevice(@RequestBody DeviceListQuery requestParam); - - /** - * 根据用户ID获取机构列表 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/organization") - StationResult getOrganizationList(@RequestBody OrganizationQuery requestParam); - - /** - * 根据航线ID获取航点列表 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/way_point") - Object getWayPointList(@RequestBody WayPointListQuery requestParam); - - /** - * 根据设备SN获取推流列表 - * - * @param requestParam - * @return - */ - @PostMapping("/api/v1/open/rtmp_url") - StationResult getDeviceRtmpUrl(@RequestBody MissionVideoListQuery requestParam); - - /** - * 根据设备SN获取设备信息 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/device/info") - StationResult getDeviceInfo(@RequestBody DeviceInfoQuery requestParam); - - /** - * 订阅机库飞机Socke时候用的token - * - * @return - */ - @GetMapping(value = "/api/v1/token/_query") - StationResult token(); - - /** - * 新增或更新任务 - * - * @param token token - * @param requestParam 查下参数 - * @return - */ - @PostMapping("/api/v1/open/mission/save_update") - StationResult createOrUpdateMission(@RequestHeader("Authorization") String token, @RequestBody CreateOrUpdateMissionRequestDTO requestParam); - - /** - * v4.0版本,一库一机专用 - * - * @param missionId - * @return - * @throws IOException - */ - @GetMapping("/api/v1/device/v4/mission/{missionId}") - StationResult execMissionV4(@PathVariable("missionId") Long missionId) throws IOException; - - /** - * 获取图片分页 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/image/list") - StationResult queryImageList(@RequestBody ImagePageQuery requestParam); - - /** - * 获取任务视频分页 - * - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/new/video/list") - Result getVideoList(@RequestBody VideoPageQuery requestParam); - - /** - * 上传文件 - * - * @param file 文件 - * @return - */ - @PostMapping(value = "/api/v1/open/upload/file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - Result uploadFile(@RequestPart("file") MultipartFile file); - - /** - * 文旅-摇臂获取位置信息 - * - * @param query 查询条件 - * @return - */ - @PostMapping("/api/v1/open/cultural/tourism/route") - StationResult culturalTourismRockerRoute(@RequestBody RockerRouteQuery query); - - /** - * 生成航线或者更新航线 - * - * @param requestParam 参数 - * @return - */ - @PostMapping(value = "/api/v1/open/route/save_update", produces = MediaType.APPLICATION_JSON_VALUE) - StationResult createRouteSaveOrUpdate(@RequestBody RouteCreateOrUpdateListDTO requestParam); - - /** - * 获取航线分页 - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/route") - Object getRouteList(@RequestBody RoutePageQuery requestParam); - - /** - * 任务回放,任务列表 - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/history/mission/_list") - StationResult getTrackMissionList(@RequestBody MissionTrackListQuery requestParam); - - /** - * 获取模型列表 - * @param requestParam 查询条件 - * @return - */ - @PostMapping("/api/v1/open/models") - StationResult queryModel(@RequestBody ModelListQuery requestParam); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UaaService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UaaService.java deleted file mode 100644 index 20030161..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UaaService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.zlt.tourism.feign; - -import com.central.common.constant.ServiceNameConstants; -import com.central.common.model.Result; -import com.zlt.tourism.dto.user.LoginDTO; -import com.zlt.tourism.feign.fallback.UaaServiceFallbackFactory; -import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.HttpRequestMethodNotSupportedException; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestHeader; - -/** - * uaa-server模块远程调用 - * - * @author caiji - * @version 1.0 - * @description uaa-server模块远程调用 - * @create 2024/7/3 16:19 - **/ -@FeignClient(name = ServiceNameConstants.UAA_SERVICE, fallbackFactory = UaaServiceFallbackFactory.class, dismiss404 = true) -public interface UaaService { - - /** - * 登录 - * - * @param req 登录实体 - * @return - * @throws HttpRequestMethodNotSupportedException - */ - @PostMapping(value = "/oauth/login/tourism") - Object login(@RequestBody LoginDTO req) throws HttpRequestMethodNotSupportedException; - - /** - * 退出登录 - * @param token token - * @return - */ - @PostMapping(value = "/oauth/logout") - Result logOut(@RequestHeader(value = "Authorization") String token); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UserCenterService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UserCenterService.java deleted file mode 100644 index 697bf6f3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/UserCenterService.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.feign; - -import com.central.common.constant.ServiceNameConstants; -import com.central.common.model.SysUser; -import com.zlt.tourism.feign.fallback.UserCenterServiceFallbackFactory; -import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestParam; - -/** - * user-center模块远程调用 - * - * @author caiji - * @version 1.0 - * @description user-center模块远程调用 - * @create 2024/8/6 11:29 - **/ -@FeignClient(name = ServiceNameConstants.USER_SERVICE, fallbackFactory = UserCenterServiceFallbackFactory.class, dismiss404 = true) -public interface UserCenterService { - - /** - * 通过手机号查询用户、角色信息 - * - * @param mobile 手机号 - * @return - */ - @GetMapping(value = "/users-anon/mobile") - SysUser findByMobile(@RequestParam("mobile") String mobile); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/StationWebServiceFallbackFactory.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/StationWebServiceFallbackFactory.java deleted file mode 100644 index faa377a5..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/StationWebServiceFallbackFactory.java +++ /dev/null @@ -1,149 +0,0 @@ -package com.zlt.tourism.feign.fallback; - -import com.central.common.model.Result; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.device.DeviceInfoQuery; -import com.zlt.tourism.dto.device.DeviceListQuery; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.dto.org.OrganizationQuery; -import com.zlt.tourism.dto.other.ModelListQuery; -import com.zlt.tourism.dto.route.RockerRouteQuery; -import com.zlt.tourism.dto.route.RouteCreateOrUpdateListDTO; -import com.zlt.tourism.dto.route.RoutePageQuery; -import com.zlt.tourism.dto.route.WayPointListQuery; -import com.zlt.tourism.dto.user.PasswordUpdateDTO; -import com.zlt.tourism.dto.user.UserUpdateDTO; -import com.zlt.tourism.feign.StationWebService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.cloud.openfeign.FallbackFactory; -import org.springframework.stereotype.Component; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestHeader; -import org.springframework.web.bind.annotation.RequestPart; -import org.springframework.web.multipart.MultipartFile; - -import javax.validation.Valid; -import java.io.IOException; - -/** - * station-web服务调用失败回调 - * - * @author caiji - * @version 1.0 - * @description station-web服务调用失败回调 - * @create 2024/7/3 16:22 - **/ -@Slf4j -@Component -public class StationWebServiceFallbackFactory implements FallbackFactory { - - @Override - public StationWebService create(Throwable cause) { - return new StationWebService() { - @Override - public StationResult info() { - return StationResult.error("feign 获取用户失败,请重试!"); - } - - @Override - public Result uploadAvatar(@RequestPart("file") MultipartFile file) { - return Result.failed("feign 上传头像失败,请重试!"); - } - - @Override - public StationResult phoneNumAndAvatarUrl(@RequestBody UserUpdateDTO form) { - return StationResult.error("feign 更新用户信息失败,请重试!"); - } - - @Override - public StationResult password(@RequestBody PasswordUpdateDTO form, @RequestHeader(value = "Authorization") String token) { - return StationResult.error("feign 更新用户信息失败,请重试!"); - } - - @Override - public StationResult queryDevice(@RequestBody @Valid DeviceListQuery requestParam) { - return StationResult.error("feign 获取设备信息失败,请重试!"); - } - - @Override - public StationResult getOrganizationList(@Valid OrganizationQuery requestParam) { - return StationResult.error("feign 获取机构列表失败,请重试!"); - } - - @Override - public Object getWayPointList(WayPointListQuery requestParam) { - return StationResult.error("feign 获取航点列表失败,请重试!"); - } - - @Override - public StationResult getDeviceRtmpUrl(MissionVideoListQuery requestParam) { - return StationResult.error("feign 获取推流列表失败,请重试!"); - } - - @Override - public StationResult getDeviceInfo(DeviceInfoQuery requestParam) { - return StationResult.error("feign 获取设备信息失败,请重试!"); - } - - @Override - public StationResult token() { - return StationResult.error("feign 订阅机库飞机Socke时候用的token失败,请重试!"); - } - - @Override - public StationResult createOrUpdateMission(String token, CreateOrUpdateMissionRequestDTO requestParam) { - return StationResult.error("feign 创建或更新任务失败,请重试!"); - } - - @Override - public StationResult execMissionV4(Long missionId) throws IOException { - return StationResult.error("feign 执行任务失败,请重试!"); - } - - /** - * 获取图片分页 - * @param requestParam 查询条件 - * @return - */ - @Override - public StationResult queryImageList(ImagePageQuery requestParam) { - return StationResult.error("feign 获取任务图片分页失败,请重试!"); - } - - @Override - public Result getVideoList(VideoPageQuery requestParam) { - return Result.failed("feign 获取任务视频分页失败,请重试!"); - } - - @Override - public Result uploadFile(MultipartFile file) { - return Result.failed("feign 上传文件失败,请重试!"); - } - - @Override - public StationResult culturalTourismRockerRoute(RockerRouteQuery query) { - return StationResult.error("feign 获取摇臂位置信息失败,请重试!"); - } - - @Override - public StationResult createRouteSaveOrUpdate(@RequestBody RouteCreateOrUpdateListDTO requestParam) { - return StationResult.error("feign 生成航线或者更新航线失败,请重试!"); - } - - @Override - public Object getRouteList(RoutePageQuery requestParam) { - return StationResult.error("feign 获取航线分页失败,请重试!"); - } - - @Override - public StationResult getTrackMissionList(MissionTrackListQuery requestParam) { - return StationResult.error("feign 获取任务回放,任务列表失败,请重试!"); - } - - @Override - public StationResult queryModel(ModelListQuery requestParam) { - return StationResult.error("feign 获取模型列表失败,请重试!"); - } - }; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UaaServiceFallbackFactory.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UaaServiceFallbackFactory.java deleted file mode 100644 index e2d3a603..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UaaServiceFallbackFactory.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zlt.tourism.feign.fallback; - -import com.central.common.model.Result; -import com.zlt.tourism.dto.user.LoginDTO; -import com.zlt.tourism.feign.UaaService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.cloud.openfeign.FallbackFactory; -import org.springframework.stereotype.Component; -import org.springframework.web.bind.annotation.RequestBody; - -/** - * 认证服务调用失败回调 - * - * @author caiji - * @version 1.0 - * @description 认证服务调用失败回调 - * @create 2024/7/3 16:22 - **/ -@Slf4j -@Component -public class UaaServiceFallbackFactory implements FallbackFactory { - - @Override - public UaaService create(Throwable cause) { - return new UaaService() { - @Override - public Object login(@RequestBody LoginDTO req) { - return Result.failed("feign 登录失败,请重试!"); - } - - @Override - public Result logOut(String token) { - return Result.failed("feign 登录失败,请重试!"); - } - }; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UserCenterServiceFallbackFactory.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UserCenterServiceFallbackFactory.java deleted file mode 100644 index 7ec8e811..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/feign/fallback/UserCenterServiceFallbackFactory.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.zlt.tourism.feign.fallback; - -import com.central.common.model.SysUser; -import com.zlt.tourism.feign.UserCenterService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.cloud.openfeign.FallbackFactory; -import org.springframework.stereotype.Component; -import org.springframework.web.bind.annotation.RequestParam; - -/** - * 用户中心调用失败回调 - * - * @author caiji - * @version 1.0 - * @description 用户中心调用失败回调 - * @create 2024/8/6 11:33 - **/ -@Slf4j -@Component -public class UserCenterServiceFallbackFactory implements FallbackFactory { - - @Override - public UserCenterService create(Throwable cause) { - return new UserCenterService() { - @Override - public SysUser findByMobile(@RequestParam("mobile") String mobile) { - return null; - } - }; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/listener/OrderStatusListener.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/listener/OrderStatusListener.java deleted file mode 100644 index b009dc17..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/listener/OrderStatusListener.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.zlt.tourism.listener; - -import com.alibaba.fastjson.JSON; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.service.TourismOrderService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.messaging.Message; -import org.springframework.statemachine.annotation.OnTransition; -import org.springframework.statemachine.annotation.WithStateMachine; -import org.springframework.stereotype.Component; -import org.springframework.transaction.annotation.Transactional; - -import javax.annotation.Resource; -import java.util.Objects; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-05 19:41 - * @Description: 订单状态监听 - */ - -@Component -@Transactional -@WithStateMachine -@Slf4j -public class OrderStatusListener { - -// @Resource -// NotifyMsgProducer notifyMsgProducer; - - @Resource - TourismOrderService tourismOrderService; - - - - @OnTransition(source = "WAITING_IN_LINE", target = "TASK_IN_PROGRESS") - public void waitTransition(Message message) throws Exception { - /* log.info("开始把任务中的订单推送到rabbitMq"); - TourismOrderEnity order = (TourismOrderEnity) message.getHeaders().get("tourismOrder"); - log.info("获取到的订单是:{}",order.getId()); - //把订单状态为任务中的订单存入到rabbitMq - notifyMsgProducer.send(JSON.toJSONString(order)); - log.info("结束把任务中的订单推送到rabbitMq");*/ - log.info("订单状态为任务中,开始订阅webSocket"); - TourismOrderEnity order = (TourismOrderEnity) message.getHeaders().get("tourismOrder"); - tourismOrderService.monitorOrderStatus(JSON.toJSONString(order)); - log.info("订单状态为任务中,结束订阅webSocket"); - } - - - @OnTransition(source = "TASK_IN_PROGRESS", target = "TASK_COMPLETED") - public void taskTransition(Message message) { - log.info("任务完成,结束订阅"); - TourismOrderEnity order = (TourismOrderEnity) message.getHeaders().get("tourismOrder"); - if(Objects.nonNull(order)){ - tourismOrderService.cancelSubscribe(order.getTakeOffDroneSn()); - } - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/DeviceManager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/DeviceManager.java deleted file mode 100644 index 39b9c902..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/DeviceManager.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.device.DeviceDetailDTO; -import com.zlt.tourism.dto.device.DeviceInfoQuery; -import com.zlt.tourism.feign.StationWebService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -/** - * 设备业务类 - * - * @author caiji - * @version 1.0 - * @description 设备业务类 - * @create 2024/7/24 9:37 - **/ -@Slf4j -@Service -public class DeviceManager { - - /** - * Station-web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 根据设备Sn获取设备信息 - * @param deviceSn 设备Sn - * @return - */ - public DeviceDetailDTO getEntityByDeviceSn(String deviceSn){ - DeviceDetailDTO model = new DeviceDetailDTO(); - if(StrUtil.isNotEmpty(deviceSn)){ - DeviceInfoQuery query = new DeviceInfoQuery(); - query.setSn(deviceSn); - query.setChannel(2); - query.setVersion("1.1"); - /*query.setIndustryType(10);*/ - StationResult result = stationWebService.getDeviceInfo(query); - if (result != null && 0 == result.getFlag() && result.get("data") != null) { - Object data = result.get("data"); - String dataStr = JSONObject.toJSONString(data); - JSONObject jsonObject = JSONObject.parseObject(dataStr); - model = JSONObject.toJavaObject(jsonObject, DeviceDetailDTO.class); - } - } - return model; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/MissionManager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/MissionManager.java deleted file mode 100644 index ebf5da49..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/MissionManager.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.feign.StationWebService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - * 任务业务类 - * - * @author caiji - * @version 1.0 - * @description 任务业务类 - * @create 2024/7/19 16:33 - **/ -@Slf4j -@Service -public class MissionManager { - - /** - * Station-web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 根据设备SN获取视频列表 - * - * @param deviceSn 任务SN - * @return - */ - public List getListByDeviceSn(String deviceSn) { - List list = new ArrayList<>(); - if (StrUtil.isNotEmpty(deviceSn)) { - MissionVideoListQuery query = new MissionVideoListQuery(); - query.setDeviceSn(deviceSn); - query.setChannel(2); - query.setVersion("1.1"); - /*query.setIndustryType(10);*/ - StationResult result = stationWebService.getDeviceRtmpUrl(query); - if (result != null && 0 == result.getFlag() && result.get("data") != null) { - Object data = result.get("data"); - JSONArray jsonArray = JSONArray.parseArray(JSONObject.toJSONString(data)); - if (jsonArray != null && jsonArray.size() > 0) { - for (int i = 0; i < jsonArray.size(); i++) { - MissionVideoDTO model = JSONObject.toJavaObject(jsonArray.getJSONObject(i), MissionVideoDTO.class); - list.add(model); - } - } - } - } - return list; - } - - /** - * 查询任务图片分页 - * - * @param query 查询条件 - * @return - */ - public PageInfo getImagePageList(ImagePageQuery query) { - PageInfo imagePage = new PageInfo(); - int total = 0; - int pageNum = query.getPage(); - int pageSize = query.getLimit(); - int pages = 0; - List list = new ArrayList<>(); - StationResult result = stationWebService.queryImageList(query); - if (result != null && 0 == result.getFlag() && result.get("data") != null) { - Object data = result.get("data"); - JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(data)); - if (jsonObject.containsKey("total")) { - total = jsonObject.getInteger("total"); - } - if (jsonObject.containsKey("current")) { - pageNum = jsonObject.getInteger("current"); - } - if (jsonObject.containsKey("size")) { - pageSize = jsonObject.getInteger("size"); - } - if (jsonObject.containsKey("pages")) { - pages = jsonObject.getInteger("pages"); - } - if (jsonObject.containsKey("records")) { - Object records = jsonObject.get("records"); - JSONArray jsonArray = JSONArray.parseArray(JSONObject.toJSONString(records)); - if (jsonArray != null && jsonArray.size() > 0) { - for (int i = 0; i < jsonArray.size(); i++) { - MissionImageDTO model = JSONObject.toJavaObject(jsonArray.getJSONObject(i), MissionImageDTO.class); - list.add(model); - } - } - } - } - imagePage.setList(list); - imagePage.setPages(pages); - imagePage.setPageSize(pageSize); - imagePage.setPageNum(pageNum); - imagePage.setTotal(total); - return imagePage; - } - - /** - * 查询任务视频分页 - * - * @param query 查询条件 - * @return - */ - public PageInfo getVideoPageList(VideoPageQuery query) { - PageInfo imagePage = new PageInfo(); - int total = 0; - int pageNum = query.getPage(); - int pageSize = query.getLimit(); - int pages = 0; - List list = new ArrayList<>(); - Result result = stationWebService.getVideoList(query); - if (result != null && 0 == result.getResp_code() && result.getDatas() != null) { - Object data = result.getDatas(); - JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(data)); - if (jsonObject.containsKey("totalCount")) { - total = jsonObject.getInteger("totalCount"); - } - if (jsonObject.containsKey("currPage")) { - pageNum = jsonObject.getInteger("currPage"); - } - if (jsonObject.containsKey("pageSize")) { - pageSize = jsonObject.getInteger("pageSize"); - } - if (jsonObject.containsKey("totalPage")) { - pages = jsonObject.getInteger("totalPage"); - } - if (jsonObject.containsKey("list")) { - Object records = jsonObject.get("list"); - JSONArray jsonArray = JSONArray.parseArray(JSONObject.toJSONString(records)); - if (jsonArray != null && jsonArray.size() > 0) { - for (int i = 0; i < jsonArray.size(); i++) { - MissionRecordVideoDTO model = JSONObject.toJavaObject(jsonArray.getJSONObject(i), MissionRecordVideoDTO.class); - list.add(model); - } - } - } - } - imagePage.setList(list); - imagePage.setPages(pages); - imagePage.setPageSize(pageSize); - imagePage.setPageNum(pageNum); - imagePage.setTotal(total); - return imagePage; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/RouteManager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/RouteManager.java deleted file mode 100644 index 2b3efeb1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/RouteManager.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.zlt.tourism.manager; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.route.RockerRouteQuery; -import com.zlt.tourism.dto.route.WayPointDTO; -import com.zlt.tourism.dto.route.WayPointListQuery; -import com.zlt.tourism.feign.StationWebService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - * 航线业务类 - * - * @author caiji - * @version 1.0 - * @description 航线业务类 - * @create 2024/7/19 14:13 - **/ -@Slf4j -@Service -public class RouteManager { - - /** - * Station-admin远程调用业务类 - */ -// @Autowired -// private StationAdminService stationAdminService; - - /** - * Station-web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 根据主键ID获取航线实体 - * - * @param id 主键ID - * @return - */ - /*public RouteDTO getById(Long id) { - RouteDTO model = new RouteDTO(); - StationResult result = stationAdminService.getByRouteId(id); - if (result != null && 0 == result.getFlag() && result.get("route") != null) { - if (result.containsKey("route") && result.get("route") != null) { - Object object = result.get("route"); - String dataStr = JSONObject.toJSONString(object); - JSONObject jsonObject = JSONObject.parseObject(dataStr); - if (jsonObject != null && jsonObject.containsKey("id")) { - model = JSONObject.toJavaObject(jsonObject, RouteDTO.class); - } - } - } - return model; - }*/ - - /** - * 根据航线ID获取航点列表 - * - * @param routeId 航线ID - * @return - */ - public List getPointListByRoutId(Long routeId) { - List list = new ArrayList<>(); - if (routeId != null) { - WayPointListQuery query = new WayPointListQuery(); - query.setRouteId(routeId); - query.setChannel(2); - query.setVersion("1.1"); - query.setIndustryType(10); - list = getPointList(query); - } - return list; - } - - /** - * 根据条件获取航点列表 - * - * @param query 查询条件 - * @return - */ - public List getPointList(WayPointListQuery query) { - List list = new ArrayList<>(); - Object result = stationWebService.getWayPointList(query); - if (result != null) { - String dataStr = JSONObject.toJSONString(result); - JSONObject resultJson = JSONObject.parseObject(dataStr); - if (resultJson != null && resultJson.containsKey("flag") && 0 == resultJson.getInteger("flag")) { - if (resultJson.containsKey("data") && resultJson.get("data") != null) { - String jsonArray = resultJson.getString("data"); - list = JSONArray.parseArray(jsonArray, WayPointDTO.class); - } - } - } - return list; - } - - /** - * 获取摇臂位置列表 - * - * @param query 查询条件 - * @return - */ - public StationResult getRockerRouteList(RockerRouteQuery query) { - StationResult result = stationWebService.culturalTourismRockerRoute(query); - return result; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/TourismOrderManager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/TourismOrderManager.java deleted file mode 100644 index 955f0048..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/TourismOrderManager.java +++ /dev/null @@ -1,242 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.Result; -import com.central.common.utils.StringUtils; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.constant.OrderConstant; -import com.zlt.tourism.dto.mission.ExecuteMissionDTO; -import com.zlt.tourism.dto.mission.MissionImageDTO; -import com.zlt.tourism.dto.order.CreateOrderDTO; -import com.zlt.tourism.dto.order.OrderInfoDTO; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.model.tourism.TourismOrderStatusEnity; -import com.zlt.tourism.query.TourismOrderImagesQuery; -import com.zlt.tourism.query.TourismOrderWebSocketQuery; -import com.zlt.tourism.service.IkMissionService; -import com.zlt.tourism.service.MissionImageService; -import com.zlt.tourism.service.TourismOrderService; -import com.zlt.tourism.vo.TourismOrderUnFinishVo; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections.CollectionUtils; -import org.springframework.messaging.Message; -import org.springframework.messaging.support.MessageBuilder; -import org.springframework.statemachine.StateMachine; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Objects; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-04 17:50 - * @Description: 订单业务处理类 - */ -@Slf4j -@Service -public class TourismOrderManager { - - - @Resource - StateMachine orderStateMachine; - - @Resource - TourismOrderService orderService; - - @Resource - IkMissionService ikMissionService; - - @Resource - MissionImageService missionImageService; - - public Result createOrderByCode(ExecuteMissionDTO model) { - CreateOrderDTO createOrderDTO = getOrderDTO(model); - //需要判断是否已经排队了 如果已经排队 则不需要再排队 直接返回 - - //扫码后判断是否有任务中订单 - List taskList = orderService.getOrderListByOrderStatus(OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode(), model.getTakeOffDockId(), null); - if (taskList.size() > 0) { - //说明有任务中,则订单状态为排队中 - createOrderDTO.setOrderStatus(OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode()); - createOrderDTO.setMissionId(taskList.get(0).getMissionId()); - orderService.createOrder(createOrderDTO); - } else { - //如果没有任务中的订单则再次判断是否有排队中的订单 - List lineList = orderService.getOrderListByOrderStatus(OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode(), model.getTakeOffDockId(), null); - if (lineList.size() > 0) { - //说明有排队中,则订单状态为排队中 - createOrderDTO.setOrderStatus(OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode()); - createOrderDTO.setMissionId(lineList.get(0).getMissionId()); - orderService.createOrder(createOrderDTO); - } else { - Boolean isSuccess = dockCreateOrder(createOrderDTO, model); - if (!isSuccess) { - return Result.failed("创建任务执行失败!请联系管理员"); - } - } - } - - return Result.succeed("创建成功"); - } - - private CreateOrderDTO getOrderDTO(ExecuteMissionDTO model){ - CreateOrderDTO createOrderDTO = new CreateOrderDTO(); - createOrderDTO.setUserId(String.valueOf(Objects.isNull(model.getUserId())?LoginUserContextHolder.getUser().getId():model.getUserId())); - createOrderDTO.setRouteCode(model.getCode()); - createOrderDTO.setLandDockSn(model.getLandDockId()); - createOrderDTO.setTakeOffDockSn(model.getTakeOffDockId()); - createOrderDTO.setTakeOffDroneSn(model.getTakeOffDroneId()); - createOrderDTO.setOrderType(OrderConstant.OrderTypeEnum.SCAN_CODE.getCode()); - createOrderDTO.setScenicSpotId(model.getScenicSpotId()); - return createOrderDTO; - } - - private Boolean dockCreateOrder(CreateOrderDTO createOrderDTO,ExecuteMissionDTO model) { - Long missionId = ikMissionService.dockExecuteMission(model); - if (Objects.isNull(missionId)) { - return false; - } - //如果没有排队中 则说明是第一个扫码的 则就需要把订单状态改为任务中 - createOrderDTO.setOrderStatus(OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode()); - createOrderDTO.setMissionId(missionId); - TourismOrderEnity tourismOrder = orderService.createOrder(createOrderDTO); - if (Objects.nonNull(tourismOrder)) { - Message message = MessageBuilder.withPayload(OrderConstant.OrderStatusChangeEventEnum.TASK).setHeader("tourismOrder", tourismOrder).build(); - if (!sendEvent(message)) { - log.info("执行任务失败!任务id为:{}", tourismOrder.getId()); - } - } - return true; - } - - /** - * 发送状态转换事件 - * @param message - * @return - */ - private synchronized boolean sendEvent(Message message) { - boolean result = false; - try { - orderStateMachine.start(); - result = orderStateMachine.sendEvent(message); - } catch (Exception e) { - e.printStackTrace(); - } finally { - if (Objects.nonNull(message)) { - TourismOrderEnity order = (TourismOrderEnity) message.getHeaders().get("tourismOrder"); - if (Objects.nonNull(order) && Objects.equals(order.getOrderStatus(), OrderConstant.OrderStatusEnum.TASK_COMPLETED)) { - orderStateMachine.stop(); - } - } - } - return result; - } - - - public TourismOrderEnity getOrderById(Long id){ - TourismOrderEnity order = ikMissionService.execMissionByCodeOrderId(id); - if(Objects.nonNull(order)){ - Message message = MessageBuilder.withPayload(OrderConstant.OrderStatusChangeEventEnum.TASK).setHeader("tourismOrder", order).build(); - if (!sendEvent(message)) { - log.info("执行任务失败!任务id为:{}", order.getId()); - } - return order; - } - return null; - } - - public Result queryExecutionOrder(String deviceSn){ - if(StringUtils.isNotBlank(deviceSn)){ - TourismOrderEnity order = orderService.queryExecutionOrder(deviceSn); - return Result.succeed(order); - } - return Result.failed("机库sn不能为空"); - } - - - public Result queryUnFinishOrderByDeviceSn(String deviceSn){ - TourismOrderUnFinishVo vo = new TourismOrderUnFinishVo(); - List list = orderService.queryUnFinishOrderByDeviceSn(deviceSn); - List orderInfoDTOS = new ArrayList<>(); - if(CollectionUtils.isNotEmpty(list)){ - //遍历list查询前面排队人数 - for (TourismOrderEnity orderEnity : list){ - if(Objects.nonNull(orderEnity)){ - OrderInfoDTO orderInfoDTO = BeanUtil.copyProperties(orderEnity,OrderInfoDTO.class); - List lineList = orderService.getWaitOrderListByDate(orderEnity.getCreatedAt()); - if(CollectionUtils.isNotEmpty(lineList)) orderInfoDTO.setNumberline(lineList.size()); - orderInfoDTOS.add(orderInfoDTO); - } - } - TourismOrderEnity orderEnity = list.get(0); - if(Objects.nonNull(orderEnity)){ - List lineList = orderService.getOrderListByOrderStatus(OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode(),orderEnity.getTakeOffDockSn(),null); - vo.setWaitingPersonNums(CollectionUtils.isNotEmpty(lineList)?lineList.size():0); - } - } - vo.setList(orderInfoDTOS); - return Result.succeed(vo); - } - - public Boolean cancelWaitOrder(Long id){ - return orderService.cancelWaitOrder(id); - } - - public Boolean cancelSubscribe(TourismOrderWebSocketQuery query){ - return orderService.cancelSubscribe(query); - } - - public Result> execImagesPage(TourismOrderImagesQuery query){ - TourismOrderEnity orderEnity = orderService.getById(query.getOrderId()); - if(Objects.isNull(orderEnity)){ - return Result.failed("订单不存在"); - } - TourismOrderStatusEnity statusEnity = orderService.getOrderStatus(orderEnity.getId(),OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode()); - TourismOrderStatusEnity finshStatusEnity = orderService.getOrderStatus(orderEnity.getId(),OrderConstant.OrderStatusEnum.TASK_COMPLETED.getCode()); - PageInfo pageInfo = missionImageService.getMissionImageById( - orderEnity.getMissionId(), - Objects.nonNull(statusEnity)?statusEnity.getCreatedAt():orderEnity.getCreatedAt(), - Objects.nonNull(finshStatusEnity)?finshStatusEnity.getCreatedAt():null, - query.getPage(), - query.getLimit()); - return Result.succeed(pageInfo); - } - - public Result finishExecuteMission(Long id){ - //首先找出正在执行的订单 - TourismOrderEnity order = orderService.getById(id); - if(Objects.isNull(order)){ - return Result.failed("订单不存在"); - } - if(Objects.equals(order.getOrderStatus(), OrderConstant.OrderStatusEnum.TASK_COMPLETED.getCode())){ - return Result.failed("订单已执行完成"); - } - //修改订单状态为已完成 - order.setUpdatedAt(new Date()); - order.setOrderStatus(OrderConstant.OrderStatusEnum.TASK_COMPLETED.getCode()); - orderService.updateById(order); - orderService.saveOrderStatus(id,OrderConstant.OrderStatusEnum.TASK_COMPLETED.getCode()); - //查询下一个排队中的订单 - List lineList = orderService.getOrderListByOrderStatus(OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode(), order.getTakeOffDockSn(),null); - if(CollectionUtils.isNotEmpty(lineList)){ - TourismOrderEnity lineOrder = lineList.get(0); - Boolean execute = orderService.executeWaitMission(lineOrder); - if(execute){ - lineOrder.setUpdatedAt(new Date()); - lineOrder.setOrderStatus(OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode()); - orderService.updateById(lineOrder); - orderService.saveOrderStatus(id,OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode()); - Message message = MessageBuilder.withPayload(OrderConstant.OrderStatusChangeEventEnum.TASK).setHeader("tourismOrder", lineOrder).build(); - if (!sendEvent(message)) { - log.info("执行排队任务失败!任务id为:{}", lineOrder.getId()); - } - return Result.succeed(lineOrder); - } - } - return Result.failed("执行失败"); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/UserManager.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/UserManager.java deleted file mode 100644 index b10d7517..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/manager/UserManager.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.zlt.tourism.manager; - -/** - * @Author: duzhichao - * @CreateTime: 2024-09-27 17:42 - * @Description: 用户业务类 - */ -public class UserManager { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/AudioFileInfoEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/AudioFileInfoEntity.java deleted file mode 100644 index b9100773..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/AudioFileInfoEntity.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.ToString; - -import java.io.Serializable; -import java.util.Date; - -/** - * 喊话音频文件 - * - * @author ccg - * @email caochangguo@ikingtec.com - * @date 2024-01-25 10:58:26 - */ -@Schema(description = "喊话音频文件") -@Data -@ToString -@TableName("ik_audio_file_info") -public class AudioFileInfoEntity implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * 文件md5 - */ - @TableId - @Schema(description = "文件md5") - private String id; - /** - * - */ - private String name; - /** - * - */ - private Boolean isImg; - /** - * - */ - private String contentType; - /** - * - */ - private Long size; - /** - * 物理路径 - */ - @Schema(description = "物理路径") - private String path; - /** - * - */ - private String url; - /** - * - */ - private String source; - /** - * - */ - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date createdAt; - /** - * - */ - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date updatedAt; - /** - * 0 否 1 删除 - */ - @Schema(description = "0 否 1 删除") - private Integer deleted; - /** - * 租户字段 - */ - @Schema(description = "租户字段") - private String tenantId; - /** - * 飞机sn - */ - @Schema(description = "飞机sn") - private String deviceSn; - /** - * 音频类型 01 实时喊话 02 音频列表 - */ - @Schema(description = "音频类型 01 实时喊话 02 音频列表") - private String audioType; - /** - * 操作人id - */ - @Schema(description = "操作人id") - private Long userId; - } diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkDeviceEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkDeviceEntity.java deleted file mode 100644 index cb3626ff..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkDeviceEntity.java +++ /dev/null @@ -1,293 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * 设备实体类 - * - * @author caiji - * @version 1.0 - * @description 设备实体类 - * @create 2024/7/25 16:18 - **/ -@TableName("ik_device") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -@Schema(description = "设备实体类") -public class IkDeviceEntity implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @TableId - private Long id; - - /** - * 交付使用用户 - */ - @Schema(description = "交付使用用户") - private Long userId; - - /** - * 所属的用户列表,包括测试 - */ - @Schema(description = "所属的用户列表,包括测试") - private String users; - - /** - * 旧表sn - */ - @Schema(description = "旧表sn") - private String sn; - - /** - * 设备SN与发货铭牌一致 - */ - @Schema(description = "设备SN 与发货铭牌一致") - 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; - - /** - * 用于标识飞机与机库的配对关系 - */ - @Schema(description = "用于标识飞机与机库的配对关系,如果是圣机库,那么是左仓和飞机的配对关系") - private String pairedDevice; - - @Schema(description = "圣机库左巢经度") - private BigDecimal longitude1; - - /** - * 圣机库左巢纬度 - */ - @Schema(description = "圣机库左巢纬度") - private BigDecimal latitude1; - - /** - * 圣机库左巢海拔 - */ - @Schema(description = "圣机库左巢海拔") - private BigDecimal altitude1; - - /** - * 圣机库右巢经度 - */ - @Schema(description = "圣机库右巢经度") - private BigDecimal longitude2; - - /** - * 圣机库右巢纬度 - */ - @Schema(description = "圣机库右巢纬度") - private BigDecimal latitude2; - - /** - * 圣机库右巢海拔 - */ - @Schema(description = "圣机库右巢海拔") - private BigDecimal altitude2; - - /** - * 圣机库左仓与飞机的配对关系 - */ - @Schema(description = "圣机库左仓与飞机的配对关系") - private String pairedDevice1; - - /** - * 圣机库右仓与飞机的配对关系 - */ - @Schema(description = "圣机库右仓与飞机的配对关系") - private String pairedDevice2; - - /** - * 设备朝向 主要用于机库 以正北为0度,顺时针0~359 - */ - @Schema(description = "设备朝向 主要用于机库 以正北为0度,顺时针0~359") - private Float heading; - - /** - * 设备朝向 功能和heading字段一样,主要还是用heading - */ - @Schema(description = "设备朝向 功能和heading字段一样,主要还是用heading") - private String direction; - - /** - * 设备所在区域位置描述 - */ - @Schema(description = "设备所在区域位置描述,历史原因该字段也存了设备名称") - private String location; - - /** - * 设备所在区域的点云或者倾斜摄影模型区域名称 - */ - @Schema(description = "设备所在区域的点云或者倾斜摄影模型区域名称") - private String regionId; - - /** - * 扩展字段 - */ - @Schema(description = "扩展内容") - private String expansionContent; - - /** - * 设备可用状态 0:维修 1:待命 2:停用 3:任务中 - */ - @Schema(description = "设备可用状态 0:维修 1:待命 2:停用 3:任务中") - private Integer status; - - /** - * 设备覆盖半径(<=5km) 单位为km - */ - @Schema(description = "设备覆盖半径(<=5km) 单位为km") - private Integer radius; - /** - * 设备相关信息描述 - */ - @Schema(description = "设备相关信息描述") - private String descMsg; - - /** - * 是否删除 0 正常 1 删除 - */ - @Schema(description = "是否删除记录") - private Integer deleted; - - /** - * 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城) - */ - @Schema(description = "这是用的ik_industry这张表,行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)") - private Long industryId; - - /** - * 创建时间 - */ - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date createdAt; - - /** - * 更新时间 - */ - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date updatedAt; - - /** - * iot产品id - */ - @Schema(description = "iot产品id") - private String productId; - - /** - * 设备vpdn的IP - */ - @Schema(description = "设备vpdn的IP") - private String vpdnIp; - - /** - * 物联网卡号 - */ - @Schema(description = "物联网卡号") - private String iotSimCard; - - /** - * 物联网卡的状态 - */ - @Schema(description = "物联网卡的状态") - private String iotSimStatus; - - /** - * 设备在线状态 - */ - @Schema(description = "设备在线状态") - private Integer onlineStatus; - - /** - * 上传图片模式;1:边拍边传,2:飞机落库,由飞机上传,3:飞机落库,由机库即时上传, 4:飞机落库,由机库定时上传 - */ - @Schema(description = "上传图片模式;1:边拍边传,2:飞机落库,由飞机上传,3:飞机落库,由机库即时上传, 4:飞机落库,由机库定时上传") - private Integer uploadImageMode; - - /** - * 设定上传图片时间(HH:mm:ss) - */ - @Schema(description = "设定上传图片时间(HH:mm:ss)") - private String uploadImageTime; - - /** - * 无人机碰撞检测是否开启 - */ - @Schema(description = "无人机碰撞检测是否开启") - private Integer openUavDetect; - - /** - * 航线碰撞检测服务是否开启 - */ - @Schema(description = "航线碰撞检测服务是否开启") - private Integer openRouteDetect; - - /** - * 无人机碰撞发送指令 - */ - @Schema(description = "无人机碰撞发送指令") - private Integer openUavHover; - - /** - * 是否默认启用ai大模型 0 不启用 1 启用 - */ - @Schema(description = "是否默认启用ai大模型 0 不启用 1 启用 ") - private int useAiModel; - - /** - * 一键起飞航点高度 单位米 - */ - @Schema(description = " 一键起飞航点高度 单位米") - private BigDecimal firstPointHeight; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkMissionEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkMissionEntity.java deleted file mode 100644 index 1c573068..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkMissionEntity.java +++ /dev/null @@ -1,374 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.fasterxml.jackson.annotation.JsonInclude; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.ToString; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; -import java.util.List; - -/** - * - * - * @author lishilin - * @email lishilin4510@163.com - * @date 2020-08-31 18:11:44 - */ -@Schema(description = "任务表") -@Data -@ToString -@TableName("ik_mission") -@JsonInclude(JsonInclude.Include.NON_EMPTY) -public class IkMissionEntity implements Serializable { - private static final long serialVersionUID = 1L; - - - @Schema(description = "表id,自动递增,步长为1") - @TableId - 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) - private List missionImageVos; - - @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; - - @Schema(description = "标会id") - private Long drawId; - - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkOrganizationEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkOrganizationEntity.java deleted file mode 100644 index 23949c34..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkOrganizationEntity.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * 机构实体类 - * - * @author caiji - * @version 1.0 - * @description 机构实体类 - * @create 2024/7/25 16:18 - **/ -@TableName("ik_sys_organization") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -@Schema(description = "机构实体类") -public class IkOrganizationEntity implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 自增id - */ - @TableId - @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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkRouteEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkRouteEntity.java deleted file mode 100644 index 075e1f64..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkRouteEntity.java +++ /dev/null @@ -1,186 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * 航线实体类 - * - * @author caiji - * @version 1.0 - * @description 航线实体类 - * @create 2024/7/25 16:18 - **/ -@TableName("ik_route") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -@Schema(description = "航线实体类") -public class IkRouteEntity implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId - @Schema(description = "主键") - private Long id; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 航线描述 - */ - @Schema(description = "航线描述") - private String routeDesc; - - /** - * 航线类型 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 = "是否删除 0 正常 1 删除") - private Integer deleted; - - /** - * 航线距离 km - */ - @Schema(description = "航线距离 km") - private Double routeDistance; - - /** - * 创建时间 - */ - @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; - - /** - * 样板间内外网航线数据同步不使用表ID关联使用uniqueId - */ - @Schema(description = "样板间内外网航线数据同步不使用表ID关联使用uniqueId") - private String uniqueId; - - /** - * 航线执行次数 - */ - @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; - - /** - * 是否不显示 (默认是0),0:显示、1:不显示 - */ - @Schema(description = "是否不显示 (默认是0),0:显示、1:不显示") - private Integer isNotShow; - - /** - * 父航线id - */ - @Schema(description = "父航线id") - private Long parentId; - - /** - * 设备类型 - */ - @Schema(description = "设备类型") - private Integer deviceType; - - /** - * 航线生成类型 0:自动航线生成,1:ikingPowerLine - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkSysUserEntity.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkSysUserEntity.java deleted file mode 100644 index 23a885f4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/model/iking/IkSysUserEntity.java +++ /dev/null @@ -1,191 +0,0 @@ -package com.zlt.tourism.model.iking; - -import com.alibaba.fastjson.annotation.JSONField; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.zlt.tourism.dto.user.SysUserEntity; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import lombok.Data; -import org.apache.commons.collections.CollectionUtils; - -import javax.validation.constraints.NotNull; -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 -@TableName("ik_sys_user") -public class IkSysUserEntity implements Serializable { - private static final long serialVersionUID = 1L; - public static final int STATUS_FORBIDDEN = 1; - public static final int STATUS_NORMAL = 0; - - /** - * 用户ID - */ - @TableId - private Long id; - - /** - * 用户名 - */ - @NotBlank(message="用户名不能为空") - private String username; - - - @Schema(description = "用户头像") - private String avatarUrl; - - @Schema(description = "类型为内部子用户的父id") - private Long parentId; - - @TableField(exist=false) - private String parentUserName; - - /** - * 密码 - */ - @NotBlank(message="密码不能为空") - @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列表 - */ - @TableField(exist=false) - private List roleIdList; - - /** - * 设备id - */ - @TableField(exist=false) - private Long deviceId; - - /** - * 设备名称 - */ - @TableField(exist=false) - private String deviceName; - - /** - * 机构ID - */ - private Long organizationId; - - /** - * 用户所属机构由之前的单选变成多选,一个用户可以属于多个机构 - * 机构IDs - */ - @NotNull(message="机构Ids不能为空") - @TableField(exist=false) - private List organizationIdList; - - /** - * 部门ID - */ -// @NotNull(message="部门不能为空", groups = {AddGroup.class, UpdateGroup.class}) - private Long deptId; - - @Schema(description = "用户类型 :1 内部账户 2:外部账户 3:临时账户(有过期时间) 11:内部子账户") - private Integer userType; - - @Schema(description = "创建人") - private Long createUserId; - - - @Schema(description = "账户来源 ldap mgnt") - private String type; - - /** - * 创建时间 - */ - @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; - /** - * 部门名称 - */ - @TableField(exist=false) - private String deptName; - - @Schema(description = "组织id") - private Long commonId; - - @Schema(description = "备注") - private String remake; - - @Schema(description = "钉钉用户userId") - private String dingUserId; - - @TableField(exist = false) - private List deviceList; - - @Schema(description = "临时用户过期时间") - @JSONField(format = "yyyy-MM-dd HH:mm:ss") - private Date temporaryTime; - - /** - * 部门 id集合 - */ - @TableField(exist=false) - private List deptIdList; - - @TableField(exist=false) - private Integer tourism; - - - /** - * 获取in条件数据 -t * @return - */ - public static Long[] getUserIds(List userList) { - if (CollectionUtils.isNotEmpty(userList)){ - Long[] deviceIds = new Long[userList.size()]; - for (int i = 0; i map; - - private String content; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdParam.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdParam.java deleted file mode 100644 index 48d8b6d8..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdParam.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.zlt.tourism.req.bridge; - -import lombok.Data; - -@Data -public class BridgeTakeOffCmdParam { - private String version; - private String dstId; - private String routeCode; - private String missionId; - private String dockId; - private String srcId; - private Long clientId; - private Integer podType; - private Integer routeMode; - private Double dockLongitude; - private Double dockLatitude; - private Double dockAltitude; - private Double dockDirection; - private Integer height; - private BridgeTakeOffCmdV10 data; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdV10.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdV10.java deleted file mode 100644 index e399bcc7..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/bridge/BridgeTakeOffCmdV10.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.zlt.tourism.req.bridge; - -import lombok.Data; - -@Data -public class BridgeTakeOffCmdV10 { - private Integer height; - private Integer rtlMode; - private Double landLongitude; - private Double landLatitude; - private Double landAltitude; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetDingTalkUserReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetDingTalkUserReq.java deleted file mode 100644 index ff6b2ba0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetDingTalkUserReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.zlt.tourism.req.dingTalk; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * @author duzhichao - * @description: TODO - * @date 2022/10/27 10:16 - */ -@Data -public class GetDingTalkUserReq implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "是否立即同步钉钉数据 1:不立即(默认) 2:立即") - private Integer type; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetSysUserReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetSysUserReq.java deleted file mode 100644 index 2af0cfe4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/GetSysUserReq.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.zlt.tourism.req.dingTalk; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * @author duzhichao - * @description: TODO - * @date 2022/11/4 14:36 - */ -@Data -public class GetSysUserReq { - - @Schema(description = "用户userId,对应钉钉userId") - private String userId; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateDingTalkUserStatusReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateDingTalkUserStatusReq.java deleted file mode 100644 index c81f4a58..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateDingTalkUserStatusReq.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.zlt.tourism.req.dingTalk; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * @author duzhichao - * @description: TODO - * @date 2022/10/27 17:03 - */ -@Data -public class UpdateDingTalkUserStatusReq { - - @Schema(description = "状态值 10:未添加 9:待激活 8:正常 7:禁用") - private Integer userStatus; - - @Schema(description = "用户userId") - private String userId; - - @Schema(description = "用户账号") - private String userName; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateSuperAccountReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateSuperAccountReq.java deleted file mode 100644 index 75842a5a..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/dingTalk/UpdateSuperAccountReq.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.zlt.tourism.req.dingTalk; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * @author duzhichao - * @description: TODO - * @date 2022/10/27 17:03 - */ -@Data -public class UpdateSuperAccountReq { - - @Schema(description = "密码") - private String passWord; - - @Schema(description = "用户userId") - private String userId; - - @Schema(description = "用户账号") - private String userName; - - @Schema(description = "修改类型 1:短信修改 2:手动修改") - private Integer updateType; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/ldap/updateLdapPwdReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/ldap/updateLdapPwdReq.java deleted file mode 100644 index 82ffb694..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/ldap/updateLdapPwdReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.req.ldap; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * @author duzhichao - * @description: TODO - * @date 2022/10/19 18:26 - */ -@Data -public class updateLdapPwdReq implements Serializable { - - private static final long serialVersionUID = 1L; - - @Schema(description = "用户名") - private String userName; - - - @Schema(description = "密码") - private String passWord; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/vpdn/QueryVpdnUserReq.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/vpdn/QueryVpdnUserReq.java deleted file mode 100644 index c1d87bd8..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/req/vpdn/QueryVpdnUserReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.req.vpdn; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * @author duzhichao - * @description: TODO - * @date 2023/5/31 11:56 - */ -@Data -public class QueryVpdnUserReq implements Serializable { - - private static final long serialVersionUID = 1L; - - @Schema(description = "设备名称") - private String userId; - - - @Schema(description = "设备IP") - private String userIp; - - @Schema(description = "设备类别") - private String userDevice; - - @Schema(description = "在线情况") - private Integer userOnline; - - @Schema(description = "是否启用") - private Integer userEnable; - - @Schema(description = "使用地址") - private String userAddress; - - @Schema(description = "当前页码") - private Integer page; - - @Schema(description = "每页显示记录数") - private Integer limit; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoDownTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoDownTagService.java deleted file mode 100644 index c97168c3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoDownTagService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.BiaxVideoDownTagEntity; - -import java.util.List; - -/** - * 双轴视频下轴标记业务接口类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频下轴标记业务接口类 - * @create 2024/7/18 8:55 - **/ -public interface BiaxVideoDownTagService extends ISuperService { - - /** - * 根据双轴视频ID删除记录 - * @param biaxVideoId 双轴视频ID - * @return - */ - boolean deleteByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID获取列表 - * @param biaxVideoId 双轴视频ID - * @return - */ - List getByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID集合删除记录 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - boolean deleteByBiaxVideoIdList(List biaxVideoIdList); - - /** - * 根据双轴视频ID集合获取列表 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - List getListByBiaxVideoIdList(List biaxVideoIdList); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoFeatureTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoFeatureTagService.java deleted file mode 100644 index aaab4d48..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoFeatureTagService.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.BiaxVideoFeatureTagEntity; - -import java.util.List; - -/** - * 双轴视频特色景观标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频特色景观标签业务接口类 - * @create 2024/7/18 8:44 - **/ -public interface BiaxVideoFeatureTagService extends ISuperService { - - /** - * 根据双轴视频ID删除记录 - * - * @param biaxVideoId 双轴视频ID - */ - boolean deleteByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID获取列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - List getListByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID列表删除记录 - * - * @param biaxVideoIdList 双轴视频ID列表 - */ - boolean deleteByBiaxVideoIdList(List biaxVideoIdList); - - /** - * 根据双轴视频ID集合获取列表 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - List getListByBiaxVideoIdList(List biaxVideoIdList); - - /** - * 判断记录是否存在 - * @param entity 记录 - * @return - */ - boolean existRecord(BiaxVideoFeatureTagEntity entity); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoService.java deleted file mode 100644 index b19498e1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoService.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.domain.BiaxVideoExtListDO; -import com.zlt.tourism.model.tourism.BiaxVideoEntity; - -import java.util.List; - -/** - * 双轴视频业务接口类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频业务接口类 - * @create 2024/7/18 8:29 - **/ -public interface BiaxVideoService extends ISuperService { - - /** - * 根据景点ID删除记录(包括关联表) - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取双轴视频列表 - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); - - - /** - * 获取扩展列表 - * @param biaxVideoName 双轴视频名称 - * @return - */ - List getExtList(String biaxVideoName); - - /** - * 根据景点ID集合获取双轴视频列表 - * @param scenicSpotIdList 景点ID集合 - * @return - */ - List getListByScenicSpotIdList(List scenicSpotIdList); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoUpTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoUpTagService.java deleted file mode 100644 index 5f2a21b0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/BiaxVideoUpTagService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.BiaxVideoUpTagEntity; - -import java.util.List; - -/** - * 双轴视频上轴标记业务接口类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记业务接口类 - * @create 2024/7/18 8:55 - **/ -public interface BiaxVideoUpTagService extends ISuperService { - - /** - * 根据双轴视频ID删除记录 - * @param biaxVideoId 双轴视频ID - * @return - */ - boolean deleteByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID获取列表 - * @param biaxVideoId 双轴视频ID - * @return - */ - List getListByBiaxVideoId(Long biaxVideoId); - - /** - * 根据双轴视频ID集合删除记录 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - boolean deleteByBiaxVideoIdList(List biaxVideoIdList); - - /** - * 根据双轴视频ID集合获取列表 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - List getListByBiaxVideoIdList(List biaxVideoIdList); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedPhotoService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedPhotoService.java deleted file mode 100644 index 8b6e8840..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedPhotoService.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.FeaturedPhotoEntity; - -import java.util.List; - -/** - * 景点精选图片业务接口类 - * - * @author caiji - * @version 1.0 - * @description 景点精选图片业务接口类 - * @create 2024/7/18 8:23 - **/ -public interface FeaturedPhotoService extends ISuperService { - - /** - * 根据景点ID删除精选图片 - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取列表 - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedRouteService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedRouteService.java deleted file mode 100644 index da7b098d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/FeaturedRouteService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.FeaturedRouteEntity; - -import java.util.List; - -/** - * 景点精选图片业务接口类 - * - * @author caiji - * @version 1.0 - * @description 景点精选图片业务接口类 - * @create 2024/7/18 8:23 - **/ -public interface FeaturedRouteService extends ISuperService { - - /** - * 根据景点ID删除精选图片 - * - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取列表 - * - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkDeviceService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkDeviceService.java deleted file mode 100644 index 7facf1c9..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkDeviceService.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.iking.IkDeviceEntity; - -import java.util.List; -import java.util.Map; - -/** - * 设备业务接口类 - * - * @author caiji - * @version 1.0 - * @description 设备业务接口类 - * @create 2024/7/25 16:30 - **/ -public interface IkDeviceService extends ISuperService { - - /** - * 根据设备SN获取配对设备列表 - * @param deviceSn 设备SN - * @return - */ - List getPairedListByDeviceSn(String deviceSn); - - /** - * 根据设备SN获取记录 - * @param deviceSn 设备SN - * @return - */ - IkDeviceEntity getByDeviceSn(String deviceSn); - - /** - * 根据SN获取记录 - * @param sn sn - * @return - */ - IkDeviceEntity getBySn(String sn); - - /** - * 获取列表 - * @param map 查询条件 - * @return - */ - List getList(Map map); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkMissionService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkMissionService.java deleted file mode 100644 index 3dedf483..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkMissionService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.zlt.tourism.service; - -import com.github.pagehelper.PageInfo; -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.model.iking.AudioFileInfoEntity; -import com.zlt.tourism.model.iking.IkMissionEntity; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.query.AudioFileRequestQuery; -import com.zlt.tourism.query.MissionPageQuery; -import com.zlt.tourism.query.MissionServicePageQuery; - -import java.util.List; - -/** - * @Author: duzhichao - * @CreateTime: 2024-10-11 - * @Description: 任务业务方法 - * @Version: 1.0 - */ - -public interface IkMissionService extends ISuperService{ - - PageInfo getMissionPage(MissionPageQuery query); - - Boolean updateMissionStatus(MissionStatusUpdateDTO query); - - PageInfo queryPage(MissionServicePageQuery params); - - PageInfo getVideoPageList(VideoPageQuery query); - - String getDeviceStatus(String deviceSn,String property); - - List audioList(AudioFileRequestQuery query); - - Long dockExecuteMission(ExecuteMissionDTO model); - - TourismOrderEnity execMissionByCodeOrderId(Long orderId); - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkOrganizationService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkOrganizationService.java deleted file mode 100644 index 25d2edd2..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkOrganizationService.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.iking.IkOrganizationEntity; - -/** - * 机构业务接口类 - * - * @author caiji - * @version 1.0 - * @description 机构业务接口类 - * @create 2024/8/7 14:34 - **/ -public interface IkOrganizationService extends ISuperService { -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkRouteService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkRouteService.java deleted file mode 100644 index 6ccad9b2..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/IkRouteService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.zlt.tourism.service; - -import com.github.pagehelper.PageInfo; -import com.central.common.service.ISuperService; -import com.zlt.tourism.core.Pager; -import com.zlt.tourism.model.iking.IkRouteEntity; - -import java.math.BigDecimal; -import java.util.List; -import java.util.Map; - -/** - * 航线业务接口类 - * - * @author caiji - * @version 1.0 - * @description 航线业务接口类 - * @create 2024/8/7 9:55 - **/ -public interface IkRouteService extends ISuperService { - - /** - * 根据坐标获取附近的航线列表 - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - List getNearbyRouteList(BigDecimal longitude, BigDecimal latitude); - - /** - * 获取景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - PageInfo getNearbyRoutePageList(Pager pager, Map queryMap); - - /** - * 根据用户ID获取航线列表 - * @param userId 用户ID - * @return - */ - List getListByUserId(Long userId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MissionImageService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MissionImageService.java deleted file mode 100644 index 36d12637..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MissionImageService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.service; - -import com.github.pagehelper.PageInfo; -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.mission.MissionImageDTO; -import com.zlt.tourism.model.iking.MissionImageEntity; -import com.zlt.tourism.query.MissionImagesPageQuery; -import com.zlt.tourism.query.MissionPageQuery; - -import java.util.Date; - -/** - * 任务图片业务接口类 - * - * @author caiji - * @version 1.0 - * @description 任务图片业务接口类 - * @create 2024/8/31 11:31 - **/ -public interface MissionImageService extends ISuperService { - - /** - * 根据设备ID获取最新一张照片 - * - * @param deviceId 设备ID - * @return - */ - MissionImageEntity getLastOneByDeviceId(Long deviceId); - - - PageInfo getMissionImageById(MissionImagesPageQuery query); - - PageInfo getMissionImageByUserId(MissionPageQuery query); - - PageInfo getImagesByUserId(MissionPageQuery query); - - PageInfo getMissionImageById(Long missionId, Date createTime, Date finshTime, Integer page, Integer limit); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MyFavoriteService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MyFavoriteService.java deleted file mode 100644 index b9becdd2..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/MyFavoriteService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.MyFavoriteEntity; - -/** - * 我的收藏业务接口类 - * - * @author caiji - * @version 1.0 - * @description 我的收藏业务接口类 - * @create 2024/7/18 9:13 - **/ -public interface MyFavoriteService extends ISuperService { - - /** - * 根据景点ID删除记录 - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取用户ID获取记录数 - * @param scenicSpotId 景点ID - * @param userId 任用ID - * @return - */ - long countByScenicSpotIdAndUserId(Long scenicSpotId, Long userId); - - /** - * 根据用户ID和景点ID判断是否存在 - * @param myFavoriteEntity 用户ID和景点ID - * @return - */ - boolean existByUserId(MyFavoriteEntity myFavoriteEntity); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoFeatureTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoFeatureTagService.java deleted file mode 100644 index d50d3df1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoFeatureTagService.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity; - -import java.util.List; - -/** - * 全景照片特色景观标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片特色景观标签业务接口类 - * @create 2024/7/18 8:44 - **/ -public interface PanoramaPhotoFeatureTagService extends ISuperService { - - /** - * 根据全景照片ID删除记录 - * - * @param panoramaPhotoId 景照片ID - */ - boolean deleteByPanoramaPhotoId(Long panoramaPhotoId); - - /** - * 根据景照片ID获取列表 - * - * @param panoramaPhotoId 景照片视频ID - * @return - */ - List getListByPanoramaPhotoId(Long panoramaPhotoId); - - /** - * 根据全景照片ID列表删除记录 - * @param photoIdList 全景照片ID列表 - * @return - */ - boolean deleteByPhotoIdList(List photoIdList); - - /** - * 根据全景照片ID集合获取列表 - * @param panoramaPhotoIdList 全景照片ID集合 - * @return - */ - List getListByPanoramaPhotoIdList(List panoramaPhotoIdList); - - /** - * 判断记录是否存在 - * @param entity 实体 - * @return - */ - boolean existRecord(PanoramaPhotoFeatureTagEntity entity); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoService.java deleted file mode 100644 index af2678ab..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoService.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.domain.PanoramaPhotoExtListDO; -import com.zlt.tourism.model.tourism.PanoramaPhotoEntity; - -import java.util.List; - -/** - * 全景照片业务接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片业务接口类 - * @create 2024/7/18 8:34 - **/ -public interface PanoramaPhotoService extends ISuperService { - - /** - * 根据景点ID删除记录(包括关联关系) - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取列表 - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); - - /** - * 获取扩展列表 - * @param photoName 照片名称 - * @return - */ - List getExtList(String photoName); - - /** - * 根据景点ID集合获取列表 - * @param scenicSpotIdList 景点ID集合 - * @return - */ - List getListByScenicSpotIdList(List scenicSpotIdList); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoTagService.java deleted file mode 100644 index 5f3140a6..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PanoramaPhotoTagService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.PanoramaPhotoTagEntity; - -import java.util.List; - -/** - * 全景照片标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片标签业务接口类 - * @create 2024/7/18 8:34 - **/ -public interface PanoramaPhotoTagService extends ISuperService { - - /** - * 根据全景照片ID删除记录 - * @param panoramaPhotoId 全景照片ID - * @return - */ - boolean deleteByPanoramaPhotoId(Long panoramaPhotoId); - - /** - * 根据全景照片ID获取列表 - * @param panoramaPhotoId 全景照片ID - * @return - */ - List getListByPanoramaPhotoId(Long panoramaPhotoId); - - /** - * 根据全景照片ID集合删除记录 - * @param photoIdList 根据全景照片ID集合 - * @return - */ - boolean deleteByPhotoIdList(List photoIdList); - - /** - * 根据全景照片ID集合获取列表 - * @param photoIdList 全景照片ID集合 - * @return - */ - List getListByPanoramaPhotoIdList(List photoIdList); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularScenicSpotService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularScenicSpotService.java deleted file mode 100644 index 58733784..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularScenicSpotService.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.PopularScenicSpotEntity; - -/** - * 热门景点业务接口类 - * - * @author caiji - * @version 1.0 - * @description 热门景点业务接口类 - * @create 2024/7/18 8:49 - **/ -public interface PopularScenicSpotService extends ISuperService { - - /** - * 根据景点ID删除记录 - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 判断景点是否已存在 - * @param entity 景点ID - * @return - */ - boolean existScenicSpot(PopularScenicSpotEntity entity); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularTagService.java deleted file mode 100644 index 4aa311d8..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/PopularTagService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.PopularTagEntity; - -/** - * 热门标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 热门标签业务接口类 - * @create 2024/7/18 8:49 - **/ -public interface PopularTagService extends ISuperService { - - /** - * 根据标签编码删除记录 - * - * @param tagCode 标签编码 - * @return - */ - boolean deleteByTagCode(String tagCode); - - /** - * 判断标签是否已存在 - * - * @param entity 标签编码 - * @return - */ - boolean existTag(PopularTagEntity entity); - - /** - * 根据标签编码获取记录数 - * @param tagCode 标签编码 - * @return - */ - long countByTagCode(String tagCode); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ResourceRolesIndustryService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ResourceRolesIndustryService.java deleted file mode 100644 index a5b38db5..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ResourceRolesIndustryService.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.other.IndustryDTO; -import com.zlt.tourism.model.tourism.ResourceRolesIndustryEntity; - -import java.util.List; - -/** - * 资源角色与行业类型对应关系业务类 - * - * @author caiji - * @version 1.0 - * @description 资源角色与行业类型对应关系业务类 - * @create 2024/7/29 9:20 - **/ -public interface ResourceRolesIndustryService extends ISuperService { - - /** - * 根据用户ID获取行业信息 - * - * @param userId 用户ID - * @return - */ - List findIndustryByUserId(Long userId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotDeviceService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotDeviceService.java deleted file mode 100644 index 50a6a09f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotDeviceService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.ScenicSpotDeviceEntity; - -import java.util.List; - -/** - * 景点与设备关系业务接口类 - * - * @author caiji - * @version 1.0 - * @description 景点与设备关系业务接口类 - * @create 2024/7/18 8:39 - **/ -public interface ScenicSpotDeviceService extends ISuperService { - - /** - * 根据景点ID删除景点与设备关系 - * @param scenicSpotId 景点ID - * @return - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据设备Sn获取列表 - * @param deviceSn 设备Sn - * @return - */ - List getListByDeviceSn(String deviceSn); - - /** - * 根据景点ID获取列表 - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotService.java deleted file mode 100644 index 00faa45f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotService.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.zlt.tourism.service; - -import com.github.pagehelper.PageInfo; -import com.central.common.service.ISuperService; -import com.zlt.tourism.core.Pager; -import com.zlt.tourism.model.tourism.ScenicSpotEntity; - -import java.math.BigDecimal; -import java.util.List; -import java.util.Map; - -/** - * 景点业务接口类 - * - * @author caiji - * @version 1.0 - * @description 景点业务接口类 - * @create 2024/7/17 16:07 - **/ -public interface ScenicSpotService extends ISuperService { - - /** - * 判断名称是否重复 - * - * @param entity 名称 - * @return - */ - boolean existName(ScenicSpotEntity entity); - - /** - * 获取景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - PageInfo getScenicSpotPageList(Pager pager, Map queryMap); - - /** - * 获取热门景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - PageInfo getPopularScenicSpotPageList(Pager pager, Map queryMap); - - /** - * 获取我收藏的景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - PageInfo getMyFavoritePageList(Pager pager, Map queryMap); - - /** - * 获取热门标签景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - PageInfo getPopularTagPageList(Pager pager, Map queryMap); - - /** - * 根据经纬度获取附近5公里内的景点列表 - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - List getNearbyList(BigDecimal longitude, BigDecimal latitude); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotTagService.java deleted file mode 100644 index c028f614..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/ScenicSpotTagService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.ScenicSpotTagEntity; - -import java.util.List; - -/** - * 景点标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 景点标签业务接口类 - * @create 2024/7/18 8:44 - **/ -public interface ScenicSpotTagService extends ISuperService { - - /** - * 根据景点ID删除记录 - * @param scenicSpotId 景点ID - */ - boolean deleteByScenicSpotId(Long scenicSpotId); - - /** - * 根据景点ID获取列表 - * @param scenicSpotId 景点ID - * @return - */ - List getListByScenicSpotId(Long scenicSpotId); - - /** - * 根据标签编码获取记录数 - * @param tagCode 标签编码 - * @return - */ - long countByTagCode(String tagCode); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/StationControlService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/StationControlService.java deleted file mode 100644 index d4e6c59c..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/StationControlService.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.other.StationControlDTO; -import com.zlt.tourism.model.tourism.StationControlEntity; - -import java.util.List; - -/** - * 用户控制权限业务类 - * - * @author caiji - * @version 1.0 - * @description 用户控制权限业务类 - * @create 2024/7/29 10:11 - **/ -public interface StationControlService extends ISuperService { - - /** - * 根据用户ID获取控制权限信息 - * - * @param userId 用户ID - * @return - */ - List findControlByUserId(Long userId); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderService.java deleted file mode 100644 index 856e14f0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderService.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.order.CreateOrderDTO; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.model.tourism.TourismOrderStatusEnity; -import com.zlt.tourism.query.TourismOrderWebSocketQuery; - -import java.io.IOException; -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-04 17:36 - * @Description: 订单方法 - */ -public interface TourismOrderService extends ISuperService { - - List getOrderListByOrderStatus(Integer orderStatus,String deviceSn,String sort); - - TourismOrderEnity createOrder (CreateOrderDTO createOrderDTO); - - void monitorOrderStatus(String message) throws Exception; - - Map sendExecRoute(String routeCode, String userName ,String deviceId) throws IOException; - - void cancelSubscribe(String deviceId); - - Map sendHoverCommand(String userName ,String deviceId) throws IOException; - - TourismOrderEnity queryExecutionOrder(String deviceSn); - - List queryUnFinishOrderByDeviceSn(String deviceSn); - - Boolean cancelWaitOrder(Long id); - - Boolean cancelSubscribe(TourismOrderWebSocketQuery query); - - Boolean executeWaitMission(TourismOrderEnity order); - - List getWaitOrderListByDate(Date createTime); - - Boolean saveOrderStatus(Long orderId,Integer status); - - TourismOrderStatusEnity getOrderStatus(Long orderId,Integer status); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderStatusService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderStatusService.java deleted file mode 100644 index a4bc9fcb..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismOrderStatusService.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.TourismOrderStatusEnity; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-26 19:26 - * @Description: 订单状态方法 - */ -public interface TourismOrderStatusService extends ISuperService { - - TourismOrderStatusEnity saveOrderStatusByOrderId(Long orderId, Integer orderStatus); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismStreamerService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismStreamerService.java deleted file mode 100644 index d2620ac9..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismStreamerService.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.TourismStreamerEntity; - -/** - * 文旅主播业务接口类 - * - * @author caiji - * @version 1.0 - * @description 文旅主播业务接口类 - * @create 2024/7/18 9:04 - **/ -public interface TourismStreamerService extends ISuperService { - - /** - * 判断主播是否存在 - * @param entity 用户ID - * @return - */ - boolean existUserId(TourismStreamerEntity entity); - - /** - * 判断主播是否存在 - * @param userId 用户ID - * @return - */ - boolean existUserId(Long userId); - - /** - * 判断手机号是否已存在 - * @param mobile 手机号 - * @return - */ - boolean existMobile(String mobile); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismTagService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismTagService.java deleted file mode 100644 index 4f001b77..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismTagService.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.service.ISuperService; -import com.zlt.tourism.model.tourism.TourismTagEntity; - -import java.util.List; - -/** - * 标签业务接口类 - * - * @author caiji - * @version 1.0 - * @description 标签业务接口类 - * @create 2024/7/17 10:22 - **/ -public interface TourismTagService extends ISuperService { - - /** - * 判断名称是否已存在 - * - * @param model 名称 - * @return - */ - boolean existName(TourismTagEntity model); - - /** - * 根据ID集合获取集合 - * @param tagIdList id集合 - * @return - */ - List getListByIdList(List tagIdList); - - /** - * 判断编码是否已存在 - * @param model 编码 - * @return - */ - boolean existCode(TourismTagEntity model); - - /** - * 根据编码集合获取列表 - * @param tagCodeList 编码集合 - * @return - */ - List getListByCodeList(List tagCodeList); - - /** - * 根据编码集合获取名称列表 - * @param tagCodeList 编码集合 - * @return - */ - List getNameListByCodeList(List tagCodeList); - - /** - * 判断标签是否已使用 - * @param tagCode 标签编码 - * @return - */ - boolean isUse(String tagCode); - - /** - * 根据编码获取实体 - * @param tagCode 标签编码 - * @return - */ - TourismTagEntity getByCode(String tagCode); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismUserService.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismUserService.java deleted file mode 100644 index b7b09688..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/TourismUserService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.service; - -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.github.pagehelper.PageInfo; -import com.central.common.service.ISuperService; -import com.zlt.tourism.dto.user.CreatTourosmUserDTO; -import com.zlt.tourism.dto.user.LoginDTO; -import com.zlt.tourism.model.tourism.TourismUserEntity; -import com.zlt.tourism.query.TourismUserPageQuery; -import com.zlt.tourism.vo.TourismUserPageVO; -import org.springframework.web.HttpRequestMethodNotSupportedException; - -/** - * @Author: duzhichao - * @CreateTime: 2024-09-27 - * @Description: 用户 - * @Version: 1.0 - */ -public interface TourismUserService extends ISuperService { - - - TourismUserEntity getUser(); - - Long getUserId(); - - SysUser findByMobile(String mobile); - - Result getCodeByPhone(String mobile); - - Object userLoginAndRegister(LoginDTO req) throws HttpRequestMethodNotSupportedException; - - Boolean createTourismUser(CreatTourosmUserDTO creatTourosmUserReq); - - void logOutGiveToken(String token); - - PageInfo findUserPageList(TourismUserPageQuery query); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoDownTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoDownTagServiceImpl.java deleted file mode 100644 index 5670709f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoDownTagServiceImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.BiaxVideoDownTagDao; -import com.zlt.tourism.model.tourism.BiaxVideoDownTagEntity; -import com.zlt.tourism.service.BiaxVideoDownTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 双轴视频下轴标记业务实现类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频下轴标记业务实现类 - * @create 2024/7/18 8:55 - **/ -@Service -public class BiaxVideoDownTagServiceImpl extends SuperServiceImpl implements BiaxVideoDownTagService { - - /** - * 持久层接口类 - */ - @Resource - private BiaxVideoDownTagDao dao; - - /** - * 根据双轴视频ID删除记录 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - @Override - public boolean deleteByBiaxVideoId(Long biaxVideoId) { - boolean result = false; - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoDownTagEntity::getBiaxVideoId, biaxVideoId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID获取列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - @Override - public List getByBiaxVideoId(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoDownTagEntity::getBiaxVideoId, biaxVideoId); - qw.orderByAsc(BiaxVideoDownTagEntity::getOrderNumber); - list = this.list(qw); - } - return list; - } - - /** - * 根据双轴视频ID集合删除记录 - * - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - @Override - public boolean deleteByBiaxVideoIdList(List biaxVideoIdList) { - boolean result = false; - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoDownTagEntity::getBiaxVideoId, biaxVideoIdList); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID集合获取列表 - * - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - @Override - public List getListByBiaxVideoIdList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoDownTagEntity::getBiaxVideoId, biaxVideoIdList); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoFeatureTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoFeatureTagServiceImpl.java deleted file mode 100644 index 42d00106..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoFeatureTagServiceImpl.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.BiaxVideoFeatureTagDao; -import com.zlt.tourism.model.tourism.BiaxVideoFeatureTagEntity; -import com.zlt.tourism.service.BiaxVideoFeatureTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 上轴视频特色标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 上轴视频特色标签业务实现类 - * @create 2024/7/17 10:23 - **/ -@Service -public class BiaxVideoFeatureTagServiceImpl extends SuperServiceImpl implements BiaxVideoFeatureTagService { - - /** - * 持久层接口类 - */ - @Resource - private BiaxVideoFeatureTagDao dao; - - /** - * 根据双轴视频ID删除记录 - * - * @param biaxVideoId 双轴视频ID - */ - @Override - public boolean deleteByBiaxVideoId(Long biaxVideoId) { - boolean result = false; - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoFeatureTagEntity::getBiaxVideoId, biaxVideoId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID获取列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - @Override - public List getListByBiaxVideoId(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoFeatureTagEntity::getBiaxVideoId, biaxVideoId); - list = this.list(qw); - } - return list; - } - - /** - * 根据双轴视频ID列表删除记录 - * @param biaxVideoIdList 双轴视频ID列表 - */ - @Override - public boolean deleteByBiaxVideoIdList(List biaxVideoIdList) { - boolean result = false; - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoFeatureTagEntity::getBiaxVideoId, biaxVideoIdList); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID集合获取列表 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - @Override - public List getListByBiaxVideoIdList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoFeatureTagEntity::getBiaxVideoId, biaxVideoIdList); - list = this.list(qw); - } - return list; - } - - /** - * 判断记录是否存在 - * @param entity 记录 - * @return - */ - @Override - public boolean existRecord(BiaxVideoFeatureTagEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoFeatureTagEntity::getBiaxVideoId, entity.getBiaxVideoId()); - qw.eq(BiaxVideoFeatureTagEntity::getTagCode, entity.getTagCode()); - long count = this.count(qw); - return count > 0; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoServiceImpl.java deleted file mode 100644 index 49196eda..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoServiceImpl.java +++ /dev/null @@ -1,136 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.BiaxVideoDao; -import com.zlt.tourism.domain.BiaxVideoExtListDO; -import com.zlt.tourism.model.tourism.BiaxVideoEntity; -import com.zlt.tourism.service.BiaxVideoDownTagService; -import com.zlt.tourism.service.BiaxVideoFeatureTagService; -import com.zlt.tourism.service.BiaxVideoService; -import com.zlt.tourism.service.BiaxVideoUpTagService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 双轴视频业务实现类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频业务实现类 - * @create 2024/7/18 8:30 - **/ -@Service -public class BiaxVideoServiceImpl extends SuperServiceImpl implements BiaxVideoService { - - /** - * 持久层接口类 - */ - @Resource - private BiaxVideoDao dao; - - /** - * 上轴标记业务类 - */ - @Autowired - private BiaxVideoUpTagService upTagService; - - /** - * 下轴标记业务类 - */ - @Autowired - private BiaxVideoDownTagService downTagService; - - /** - * 特色景观标签业务类 - */ - @Autowired - private BiaxVideoFeatureTagService featureTagService; - - /** - * 根据景点ID删除记录(包括关联表) - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoEntity::getScenicSpotId, scenicSpotId); - List list = this.list(qw); - if (list != null && list.size() > 0) { - result = this.remove(qw); - if (result) { - List biaxVideoIdList = list.stream().map(BiaxVideoEntity::getId).collect(Collectors.toList()); - //删除上轴标记 - upTagService.deleteByBiaxVideoIdList(biaxVideoIdList); - //删除下轴标记 - downTagService.deleteByBiaxVideoIdList(biaxVideoIdList); - //删除特色景观标签 - featureTagService.deleteByBiaxVideoIdList(biaxVideoIdList); - } - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取双轴视频列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } - - /** - * 获取扩展列表 - * @param biaxVideoName 双轴视频名称 - * @return - */ - @Override - public List getExtList(String biaxVideoName) { - Map map =new HashMap<>(1); - if(StrUtil.isNotEmpty(biaxVideoName)){ - map.put("biaxVideoName", biaxVideoName); - } - return dao.getExtList(map); - } - - /** - * 根据景点ID集合获取双轴视频列表 - * @param scenicSpotIdList 景点ID集合 - * @return - */ - @Override - public List getListByScenicSpotIdList(List scenicSpotIdList) { - List list = new ArrayList<>(); - if (scenicSpotIdList != null && scenicSpotIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoEntity::getScenicSpotId, scenicSpotIdList); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoUpTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoUpTagServiceImpl.java deleted file mode 100644 index a7a026ae..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/BiaxVideoUpTagServiceImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.BiaxVideoUpTagDao; -import com.zlt.tourism.model.tourism.BiaxVideoUpTagEntity; -import com.zlt.tourism.service.BiaxVideoUpTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 双轴视频上轴标记业务实现类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记业务实现类 - * @create 2024/7/18 8:55 - **/ -@Service -public class BiaxVideoUpTagServiceImpl extends SuperServiceImpl implements BiaxVideoUpTagService { - - /** - * 持久层接口类 - */ - @Resource - private BiaxVideoUpTagDao dao; - - /** - * 根据双轴视频ID删除记录 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - @Override - public boolean deleteByBiaxVideoId(Long biaxVideoId) { - boolean result = false; - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoUpTagEntity::getBiaxVideoId, biaxVideoId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID获取列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - @Override - public List getListByBiaxVideoId(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoUpTagEntity::getBiaxVideoId, biaxVideoId); - qw.orderByAsc(BiaxVideoUpTagEntity::getOrderNumber); - list = this.list(qw); - } - return list; - } - - /** - * 根据双轴视频ID集合删除记录 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - @Override - public boolean deleteByBiaxVideoIdList(List biaxVideoIdList) { - boolean result = false; - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoUpTagEntity::getBiaxVideoId, biaxVideoIdList); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据双轴视频ID集合获取列表 - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - @Override - public List getListByBiaxVideoIdList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(BiaxVideoUpTagEntity::getBiaxVideoId, biaxVideoIdList); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedPhotoServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedPhotoServiceImpl.java deleted file mode 100644 index bbe06e60..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedPhotoServiceImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.FeaturedPhotoDao; -import com.zlt.tourism.model.tourism.FeaturedPhotoEntity; -import com.zlt.tourism.service.FeaturedPhotoService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 景点精选图片业务实现类 - * - * @author caiji - * @version 1.0 - * @description 景点精选图片业务实现类 - * @create 2024/7/18 8:24 - **/ -@Service -public class FeaturedPhotoServiceImpl extends SuperServiceImpl implements FeaturedPhotoService { - - /** - * 持久层接口类 - */ - @Resource - private FeaturedPhotoDao dao; - - /** - * 根据景点ID删除精选图片 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(FeaturedPhotoEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(FeaturedPhotoEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedRouteServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedRouteServiceImpl.java deleted file mode 100644 index 67d40b83..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/FeaturedRouteServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.FeaturedRouteDao; -import com.zlt.tourism.model.tourism.FeaturedRouteEntity; -import com.zlt.tourism.service.FeaturedRouteService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 景点精选图片业务实现类 - * - * @author caiji - * @version 1.0 - * @description 景点精选图片业务实现类 - * @create 2024/7/18 8:24 - **/ -@Service -public class FeaturedRouteServiceImpl extends SuperServiceImpl implements FeaturedRouteService { - - /** - * 持久层接口类 - */ - @Resource - private FeaturedRouteDao dao; - - /** - * 根据景点ID删除精选图片 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(FeaturedRouteEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(FeaturedRouteEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkDeviceServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkDeviceServiceImpl.java deleted file mode 100644 index 733cbe03..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkDeviceServiceImpl.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.IkDeviceDao; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.service.IkDeviceService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * 设备业务实现类 - * - * @author caiji - * @version 1.0 - * @description 设备业务实现类 - * @create 2024/7/25 16:30 - **/ -@Service -public class IkDeviceServiceImpl extends SuperServiceImpl implements IkDeviceService { - - /** - * 持久层接口类 - */ - @Resource - private IkDeviceDao dao; - - /** - * 根据设备SN获取配对设备列表 - * @param deviceSn 设备SN - * @return - */ - @Override - public List getPairedListByDeviceSn(String deviceSn) { - List list = new ArrayList<>(); - if(StrUtil.isNotEmpty(deviceSn)){ - IkDeviceEntity model = this.getByDeviceSn(deviceSn); - if(model != null && model.getId() != null){ - if(StrUtil.isNotEmpty(model.getPairedDevice())){ - IkDeviceEntity pairedDeviceEntity = this.getBySn(model.getPairedDevice()); - if(pairedDeviceEntity != null && pairedDeviceEntity.getId() != null){ - list.add(pairedDeviceEntity); - } - }else{ - if(StrUtil.isNotEmpty(model.getPairedDevice1())){ - IkDeviceEntity pairedDeviceEntity = this.getBySn(model.getPairedDevice1()); - if(pairedDeviceEntity != null && pairedDeviceEntity.getId() != null){ - list.add(pairedDeviceEntity); - } - } - if(StrUtil.isNotEmpty(model.getPairedDevice2())){ - IkDeviceEntity pairedDeviceEntity = this.getBySn(model.getPairedDevice2()); - if(pairedDeviceEntity != null && pairedDeviceEntity.getId() != null){ - list.add(pairedDeviceEntity); - } - } - } - } - } - return list; - } - - /** - * 根据设备SN获取记录 - * @param deviceSn 设备SN - * @return - */ - @Override - public IkDeviceEntity getByDeviceSn(String deviceSn) { - IkDeviceEntity model = new IkDeviceEntity(); - if(StrUtil.isNotEmpty(deviceSn)){ - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkDeviceEntity::getDeviceSn, deviceSn); - qw.eq(IkDeviceEntity::getDeleted, 0); - List list = this.list(qw); - if(list != null && list.size() > 0){ - model = list.get(0); - } - } - return model; - } - - /** - * 根据SN获取记录 - * @param sn sn - * @return - */ - @Override - public IkDeviceEntity getBySn(String sn) { - IkDeviceEntity model = new IkDeviceEntity(); - if(StrUtil.isNotEmpty(sn)){ - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkDeviceEntity::getSn, sn); - qw.eq(IkDeviceEntity::getDeleted, 0); - List list = this.list(qw); - if(list != null && list.size() > 0){ - model = list.get(0); - } - } - return model; - } - - /** - * 获取列表 - * @param map 查询条件 - * @return - */ - @Override - public List getList(Map map) { - return dao.getList(map); - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkMissionServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkMissionServiceImpl.java deleted file mode 100644 index ea461c47..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkMissionServiceImpl.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.service.impl.SuperServiceImpl; -import com.central.common.utils.StringUtils; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dao.AudioFileInfoDao; -import com.zlt.tourism.dao.IkMissionDao; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.model.iking.AudioFileInfoEntity; -import com.zlt.tourism.model.iking.IkMissionEntity; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.query.AudioFileRequestQuery; -import com.zlt.tourism.query.MissionPageQuery; -import com.zlt.tourism.query.MissionServicePageQuery; -import com.zlt.tourism.service.*; -import com.zlt.tourism.util.http.HeaderUtils; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.annotation.Lazy; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.Collections; -import java.util.List; -import java.util.Objects; - -//import static com.zlt.tourism.core.BaseServiceImpl.convertToPageInfo; - - -/** - * @Author: duzhichao - * @CreateTime: 2024-10-11 11:29 - * @Description: 任务 - */ -@Service -@Slf4j -public class IkMissionServiceImpl extends SuperServiceImpl implements IkMissionService { - - - @Resource - private IkMissionDao ikMissionDao; - - @Resource - private ScenicSpotDeviceService scenicSpotDeviceService; - - @Resource - private TourismUserService tourismUserService; - -// @Resource -// private IoTTemplate iotTemplate; - - @Resource - AudioFileInfoDao audioFileInfoDao; - - @Lazy - @Autowired - private StationWebService stationWebService; - - @Lazy - @Resource - private TourismOrderService tourismOrderService; - - @Resource - @Lazy - private TourismOrderStatusService tourismOrderStatusService; - - @Override - public PageInfo getMissionPage(MissionPageQuery query) { - if(Objects.isNull(query.getUserId())){ - query.setUserId(LoginUserContextHolder.getUser().getId()); - } -// IPage page = ikMissionDao.selectJoinPage(getPage(query.getPager()), MissionPageDTO.class, -// new MPJLambdaWrapper<>() -// .selectAll(IkMissionEntity.class) -// .selectAs(IkDeviceEntity::getSn,MissionPageDTO::getTakeoffDockSn) -// .selectAs(IkDeviceEntity::getSn,MissionPageDTO::getLandDockSn) -// .selectAs(IkDeviceEntity::getPairedDevice,MissionPageDTO::getDroneSn) -// .leftJoin(IkDeviceEntity.class,IkDeviceEntity::getId,IkMissionEntity::getTakeOffDockId) -// .eq(IkMissionEntity::getUserId,query.getUserId()) -// .eq(IkMissionEntity::getDeleted,0) -// .eq(IkMissionEntity::getIndustryType,10) -// .in(IkMissionEntity::getStatus,0,1,7) -// .orderByDesc(IkMissionEntity::getCreatedAt) -// ); -// List list = page.getRecords(); -// if(list!=null && list.size()>0){ -// List pageDTOList =new ArrayList<>(); -// for(MissionPageDTO missionPageDTO:list){ -// String takeOffDockSn = missionPageDTO.getTakeoffDockSn(); -// if(Objects.nonNull(takeOffDockSn)){ -// List scenicSpotDeviceEntities= scenicSpotDeviceService.getListByDeviceSn(takeOffDockSn); -// if(scenicSpotDeviceEntities!=null && scenicSpotDeviceEntities.size()>0){ -// missionPageDTO.setScenicSoptId(scenicSpotDeviceEntities.get(0).getScenicSpotId()); -// pageDTOList.add(missionPageDTO); -// } -// } -// } -// page.setRecords(pageDTOList); -// } - return null; - } - - @Override - public Boolean updateMissionStatus(MissionStatusUpdateDTO query) { - - if(Objects.isNull(query.getMissionId())){ - //修改那些任务的状态呢? - }else{ - IkMissionEntity ikMissionEntity = ikMissionDao.selectById(query.getMissionId()); - if(Objects.nonNull(ikMissionEntity)){ - ikMissionEntity.setStatus(query.getMissionStatus()); - ikMissionDao.updateById(ikMissionEntity); - return true; - } - } - return false; - } - - @Override - public PageInfo queryPage(MissionServicePageQuery params) { -// Page queryPage = getPage(params.getPager()); -// IPage page= ikMissionDao.getPage(queryPage,params); -// List list = page.getRecords(); -// if(list!=null && list.size()>0){ -// for(IkMissionEntity ikMissionEntity:list){ -// if(StringUtils.isBlank(ikMissionEntity.getCreateMissionUser())){ -// Long userId = ikMissionEntity.getUserId(); -// if(Objects.nonNull(userId)){ -// TourismUserEntity tourismUser = tourismUserService.getById(userId); -// if(Objects.nonNull(tourismUser)){ -// ikMissionEntity.setCreateMissionUser(tourismUser.getUsername()); -// } -// } -// } -// } -// } - return null; - } - - @Override - public PageInfo getVideoPageList(VideoPageQuery query) { - return null; - } - - @Override - public String getDeviceStatus(String deviceSn,String property) { - //调用iot接口获取设备是否在线 -// String res = iotTemplate.queryProperty(deviceSn,property); - String res = ""; - log.info("获取{}状态返回的数据是:{}",property,res); - //Result result = JSON.parseObject(res, Result.class); - JSONObject result = JSON.parseObject(res); - if(Objects.nonNull(result)){ - JSONArray data =JSON.parseArray(result.getString("data")); - if(data.size()>0){ - JSONObject valueData=data.getJSONObject(0); - if(Objects.nonNull(valueData)){ - String value =valueData.getString("value"); - return value; - } - } - } - return null; - } - - @Override - public List audioList(AudioFileRequestQuery query) { - if (StringUtils.isBlank(query.getDeviceSn())) { - return Collections.emptyList(); - } - LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); - wrapper.eq(AudioFileInfoEntity::getDeviceSn, query.getDeviceSn()); - wrapper.eq(AudioFileInfoEntity::getDeleted, 0); - if (StringUtils.isNotBlank(query.getName())) { - wrapper.like(AudioFileInfoEntity::getName, query.getName()); - } - if (StringUtils.isNotBlank(query.getAudioType())) { - wrapper.eq(AudioFileInfoEntity::getAudioType, query.getAudioType()); - } - wrapper.orderByDesc(AudioFileInfoEntity::getCreatedAt); - List list = audioFileInfoDao.selectList(wrapper); - return list; - } - - @Override - public Long dockExecuteMission(ExecuteMissionDTO model) { - // SysUser user = LoginUserContextHolder.getUser(); - Long missionId = null; - CreateOrUpdateMissionRequestDTO missionRequestDTO = new CreateOrUpdateMissionRequestDTO(); - BeanUtil.copyProperties(model, missionRequestDTO); - missionRequestDTO.setIndustryType(10); - missionRequestDTO.setUserId(LoginUserContextHolder.getUser().getId()); - StationResult addResult = stationWebService.createOrUpdateMission(HeaderUtils.getCurrentToken(), missionRequestDTO); - if (addResult != null && 0 == addResult.getFlag() && addResult.get("data") != null) { - Object data = addResult.get("data"); - String dataStr = JSONObject.toJSONString(data); - JSONObject jsonObject = JSONObject.parseObject(dataStr); - MissionDTO missionDTO = JSONObject.toJavaObject(jsonObject, MissionDTO.class); - if (missionDTO != null && missionDTO.getId() != null) { - missionId = missionDTO.getId(); - } - } - if (missionId != null) { - try { - StationResult execResult = stationWebService.execMissionV4(missionId); - if (execResult != null && 0 == execResult.getFlag()) { - return missionId; - } - - } catch (Exception e) { - log.error("执行任务出错", e); - } - } - return null; - } - - @Override - public TourismOrderEnity execMissionByCodeOrderId(Long orderId) { - TourismOrderEnity tourismOrderEnity = tourismOrderService.getById(orderId); - if (tourismOrderEnity != null) { - Long missionId = tourismOrderEnity.getMissionId(); - tourismOrderStatusService.saveOrderStatusByOrderId(tourismOrderEnity.getId(),tourismOrderEnity.getOrderStatus()); - if (missionId != null) { - try { - StationResult execResult = stationWebService.execMissionV4(missionId); - if (execResult != null && 0 == execResult.getFlag()) { - return tourismOrderEnity; - } - - } catch (Exception e) { - log.error("执行任务出错", e); - } - } - return tourismOrderEnity; - } - return null; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkOrganizationServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkOrganizationServiceImpl.java deleted file mode 100644 index cc0c2bee..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkOrganizationServiceImpl.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.IkOrganizationDao; -import com.zlt.tourism.model.iking.IkOrganizationEntity; -import com.zlt.tourism.service.IkOrganizationService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * 机构业务实现类 - * - * @author caiji - * @version 1.0 - * @description 机构业务实现类 - * @create 2024/8/7 14:34 - **/ -@Service -public class IkOrganizationServiceImpl extends SuperServiceImpl implements IkOrganizationService { - - /** - * 持久层接口类 - */ - @Resource - private IkOrganizationDao dao; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkRouteServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkRouteServiceImpl.java deleted file mode 100644 index 359e3457..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/IkRouteServiceImpl.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.core.Pager; -import com.zlt.tourism.dao.IkRouteDao; -import com.zlt.tourism.model.iking.IkRouteEntity; -import com.zlt.tourism.service.IkRouteService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.math.BigDecimal; -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 9:55 - **/ -@Service -public class IkRouteServiceImpl extends SuperServiceImpl implements IkRouteService { - - /** - * 持久层接口类 - */ - @Resource - private IkRouteDao dao; - - /** - * 根据坐标获取附近的航线列表 - * - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - @Override - public List getNearbyRouteList(BigDecimal longitude, BigDecimal latitude) { - Map map = new HashMap<>(3); - if (longitude != null) { - map.put("longitude", longitude.toString()); - } - if (latitude != null) { - map.put("latitude", latitude.toString()); - } - BigDecimal limit = new BigDecimal(6000).setScale(7, BigDecimal.ROUND_HALF_UP); - map.put("radius", limit); - return dao.getNearbyRouteList(map); - } - - /** - * 获取附近分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - @Override - public PageInfo getNearbyRoutePageList(Pager pager, Map queryMap) { -// IPage data = dao.getNearbyRoutePageList(getPage(pager), queryMap); -// return toPageInfo(pager, data); - return null; - } - - /** - * 根据用户ID获取航线列表 - * - * @param userId 用户ID - * @return - */ - @Override - public List getListByUserId(Long userId) { - List list = new ArrayList<>(); - if (userId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkRouteEntity::getUserId, userId); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MissionImageServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MissionImageServiceImpl.java deleted file mode 100644 index f55e9404..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MissionImageServiceImpl.java +++ /dev/null @@ -1,111 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.central.common.service.impl.SuperServiceImpl; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dao.MissionImageDao; -import com.zlt.tourism.dto.mission.MissionImageDTO; -import com.zlt.tourism.model.iking.MissionImageEntity; -import com.zlt.tourism.query.MissionImagesPageQuery; -import com.zlt.tourism.query.MissionPageQuery; -import com.zlt.tourism.service.MissionImageService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - * 任务图片业务实现类 - * - * @author caiji - * @version 1.0 - * @description 任务图片业务实现类 - * @create 2024/8/31 11:32 - **/ -@Service -public class MissionImageServiceImpl extends SuperServiceImpl implements MissionImageService { - - /** - * 持久层接口类 - */ - @Resource - private MissionImageDao dao; - - /** - * 根据设备ID获取最新一张照片 - * @param deviceId 设备ID - * @return - */ - @Override - public MissionImageEntity getLastOneByDeviceId(Long deviceId) { - if(deviceId != null){ - Map map = new HashMap<>(); - map.put("deviceId", deviceId); - MissionImageEntity model = dao.getLastOneByDeviceId(map); - return model; - } - return null; - } - - @Override - public PageInfo getMissionImageById(MissionImagesPageQuery query) { -// IPage page = dao.selectJoinPage(new Page<>(query.getPage(),query.getLimit()),MissionImageDTO.class, -// new MPJLambdaWrapper<>() -// .selectAll(MissionImageEntity.class) -// .leftJoin(MissionImageUserEntity.class,MissionImageUserEntity::getImageId,MissionImageEntity::getId) -// .eq(MissionImageEntity::getMissionId,query.getMissionId()) -// .eq(MissionImageUserEntity::getUserId,LoginUserContextHolder.getUser().getId())); -// return convertToPageInfo(page); - return null; - } - - @Override - public PageInfo getMissionImageByUserId(MissionPageQuery query) { -// if(Objects.isNull(query.getUserId())){ -// query.setUserId(LoginUserContextHolder.getUser().getId()); -// } -// Page page = new Page<>(query.getPage(),query.getLimit()); -// MPJLambdaWrapper wrapper = new MPJLambdaWrapper<>(); -// wrapper.selectAll(MissionImageEntity.class); -// wrapper.leftJoin(IkMissionEntity.class,IkMissionEntity::getId,MissionImageEntity::getMissionId); -// wrapper.eq(IkMissionEntity::getUserId,query.getUserId()); -// wrapper.orderByDesc(MissionImageEntity::getCreatedAt); -// IPage imageDTOIPage = dao.selectJoinPage(page,MissionImageDTO.class,wrapper); -// return convertToPageInfo(imageDTOIPage); - return null; - } - - @Override - public PageInfo getImagesByUserId(MissionPageQuery query) { -// if(Objects.isNull(query.getUserId())){ -// query.setUserId(LoginUserContextHolder.getUser().getId()); -// } -// Page page = new Page<>(query.getPage(),query.getLimit()); -// MPJLambdaWrapper wrapper = new MPJLambdaWrapper<>(); -// wrapper.selectAll(MissionImageEntity.class); -// wrapper.leftJoin(MissionImageUserEntity.class,MissionImageUserEntity::getImageId,MissionImageEntity::getId); -// wrapper.eq(MissionImageUserEntity::getUserId,query.getUserId()); -// wrapper.orderByDesc(MissionImageEntity::getCreatedAt); -// IPage imageDTOIPage = dao.selectJoinPage(page,MissionImageDTO.class,wrapper); -// return convertToPageInfo(imageDTOIPage); - return null; - } - - @Override - public PageInfo getMissionImageById(Long missionId, Date createTime,Date finshTime,Integer pages, Integer limit) { -// MPJLambdaWrapper wrapper = new MPJLambdaWrapper<>(); -// wrapper.selectAll(MissionImageEntity.class) -// .leftJoin(MissionImageUserEntity.class,MissionImageUserEntity::getImageId,MissionImageEntity::getId) -// .eq(MissionImageEntity::getMissionId,missionId) -// .eq(MissionImageUserEntity::getUserId,LoginUserContextHolder.getUser().getId()) -// .ge(MissionImageEntity::getTakePhotoTime,createTime); -// if(Objects.nonNull(finshTime)){ -// wrapper.le(MissionImageEntity::getTakePhotoTime,finshTime); -// } -// IPage page = dao.selectJoinPage(new Page<>(pages,limit),MissionImageDTO.class, wrapper); -// return convertToPageInfo(page); - return null; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MyFavoriteServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MyFavoriteServiceImpl.java deleted file mode 100644 index bca45428..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/MyFavoriteServiceImpl.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.MyFavoriteDao; -import com.zlt.tourism.model.tourism.MyFavoriteEntity; -import com.zlt.tourism.service.MyFavoriteService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * 我的收藏业务实现类 - * - * @author caiji - * @version 1.0 - * @description 我的收藏业务实现类 - * @create 2024/7/18 9:14 - **/ -@Service -public class MyFavoriteServiceImpl extends SuperServiceImpl implements MyFavoriteService { - - /** - * 持久层接口类 - */ - @Resource - private MyFavoriteDao dao; - - /** - * 根据景点ID删除记录 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(MyFavoriteEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取用户ID获取记录数 - * - * @param scenicSpotId 景点ID - * @param userId 任用ID - * @return - */ - @Override - public long countByScenicSpotIdAndUserId(Long scenicSpotId, Long userId) { - long count = 0; - if (scenicSpotId != null && userId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(MyFavoriteEntity::getScenicSpotId, scenicSpotId); - qw.eq(MyFavoriteEntity::getUserId, userId); - count = this.count(qw); - } - return count; - } - - /** - * 根据用户ID和景点ID判断是否存在 - * @param myFavoriteEntity 用户ID和景点ID - * @return - */ - @Override - public boolean existByUserId(MyFavoriteEntity myFavoriteEntity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(MyFavoriteEntity::getScenicSpotId, myFavoriteEntity.getScenicSpotId()); - qw.eq(MyFavoriteEntity::getUserId, myFavoriteEntity.getUserId()); - if(myFavoriteEntity.getId() != null){ - qw.ne(MyFavoriteEntity::getId, myFavoriteEntity.getId()); - } - long count = this.count(qw); - return count > 0; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoFeatureTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoFeatureTagServiceImpl.java deleted file mode 100644 index c0b7e004..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoFeatureTagServiceImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.PanoramaPhotoFeatureTagDao; -import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity; -import com.zlt.tourism.service.PanoramaPhotoFeatureTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 全景照片特色标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 全景照片特色标签业务实现类 - * @create 2024/7/17 10:23 - **/ -@Service -public class PanoramaPhotoFeatureTagServiceImpl extends SuperServiceImpl implements PanoramaPhotoFeatureTagService { - - /** - * 持久层接口类 - */ - @Resource - private PanoramaPhotoFeatureTagDao dao; - - /** - * 根据全景照片ID删除记录 - * - * @param panoramaPhotoId 全景照片ID - */ - @Override - public boolean deleteByPanoramaPhotoId(Long panoramaPhotoId) { - boolean result = false; - if (panoramaPhotoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoFeatureTagEntity::getPanoramaPhotoId, panoramaPhotoId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据全景照片ID获取列表 - * - * @param panoramaPhotoId 全景照片ID - * @return - */ - @Override - public List getListByPanoramaPhotoId(Long panoramaPhotoId) { - List list = new ArrayList<>(); - if (panoramaPhotoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoFeatureTagEntity::getPanoramaPhotoId, panoramaPhotoId); - list = this.list(qw); - } - return list; - } - - /** - * 根据全景照片ID列表删除记录 - * - * @param photoIdList 全景照片ID列表 - * @return - */ - @Override - public boolean deleteByPhotoIdList(List photoIdList) { - boolean result = false; - if (photoIdList != null && photoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(PanoramaPhotoFeatureTagEntity::getPanoramaPhotoId, photoIdList); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据全景照片ID集合获取列表 - * - * @param panoramaPhotoIdList 全景照片ID集合 - * @return - */ - @Override - public List getListByPanoramaPhotoIdList(List panoramaPhotoIdList) { - List list = new ArrayList<>(); - if (panoramaPhotoIdList != null && panoramaPhotoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(PanoramaPhotoFeatureTagEntity::getPanoramaPhotoId, panoramaPhotoIdList); - list = this.list(qw); - } - return list; - } - - /** - * 判断记录是否存在 - * @param entity 记录 - * @return - */ - @Override - public boolean existRecord(PanoramaPhotoFeatureTagEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoFeatureTagEntity::getPanoramaPhotoId, entity.getPanoramaPhotoId()); - qw.eq(PanoramaPhotoFeatureTagEntity::getTagCode, entity.getTagCode()); - long count = this.count(qw); - return count > 0; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoServiceImpl.java deleted file mode 100644 index b84dbade..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoServiceImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.PanoramaPhotoDao; -import com.zlt.tourism.domain.PanoramaPhotoExtListDO; -import com.zlt.tourism.model.tourism.PanoramaPhotoEntity; -import com.zlt.tourism.service.PanoramaPhotoFeatureTagService; -import com.zlt.tourism.service.PanoramaPhotoService; -import com.zlt.tourism.service.PanoramaPhotoTagService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 全景照片业务实现类 - * - * @author caiji - * @version 1.0 - * @description 全景照片业务实现类 - * @create 2024/7/18 8:35 - **/ -@Service -public class PanoramaPhotoServiceImpl extends SuperServiceImpl implements PanoramaPhotoService { - - /** - * 持久层接口类 - */ - @Resource - private PanoramaPhotoDao dao; - - /** - * 全景照片标签业务类 - */ - @Autowired - private PanoramaPhotoTagService tagService; - - /** - * 全景照片特色景观标签业务类 - */ - @Autowired - private PanoramaPhotoFeatureTagService featureTagService; - - /** - * 根据景点ID删除记录(包括关联关系) - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoEntity::getScenicSpotId, scenicSpotId); - List list = this.list(qw); - if (list != null && list.size() > 0) { - result = this.remove(qw); - if (result) { - List photoIdList = list.stream().map(PanoramaPhotoEntity::getId).collect(Collectors.toList()); - //删除标记 - tagService.deleteByPhotoIdList(photoIdList); - //删除标记 - featureTagService.deleteByPhotoIdList(photoIdList); - } - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } - - /** - * 获取扩展列表 - * - * @param photoName 照片名称 - * @return - */ - @Override - public List getExtList(String photoName) { - Map map = new HashMap<>(1); - if (StrUtil.isNotEmpty(photoName)) { - map.put("photoName", photoName); - } - return dao.getExtList(map); - } - - /** - * 根据景点ID集合获取列表 - * - * @param scenicSpotIdList 景点ID集合 - * @return - */ - @Override - public List getListByScenicSpotIdList(List scenicSpotIdList) { - List list = new ArrayList<>(); - if (scenicSpotIdList != null && scenicSpotIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(PanoramaPhotoEntity::getScenicSpotId, scenicSpotIdList); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoTagServiceImpl.java deleted file mode 100644 index 31a25a24..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PanoramaPhotoTagServiceImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.PanoramaPhotoTagDao; -import com.zlt.tourism.model.tourism.PanoramaPhotoTagEntity; -import com.zlt.tourism.service.PanoramaPhotoTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 全景照片标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 全景照片标签业务实现类 - * @create 2024/7/18 8:35 - **/ -@Service -public class PanoramaPhotoTagServiceImpl extends SuperServiceImpl implements PanoramaPhotoTagService { - - /** - * 持久层接口类 - */ - @Resource - private PanoramaPhotoTagDao dao; - - /** - * 根据全景照片ID删除记录 - * - * @param panoramaPhotoId 全景照片ID - * @return - */ - @Override - public boolean deleteByPanoramaPhotoId(Long panoramaPhotoId) { - boolean result = false; - if (panoramaPhotoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoTagEntity::getPanoramaPhotoId, panoramaPhotoId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据全景照片ID获取列表 - * - * @param panoramaPhotoId 全景照片ID - * @return - */ - @Override - public List getListByPanoramaPhotoId(Long panoramaPhotoId) { - List list = new ArrayList<>(); - if (panoramaPhotoId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoTagEntity::getPanoramaPhotoId, panoramaPhotoId); - list = this.list(qw); - } - return list; - } - - /** - * 根据全景照片ID集合删除记录 - * - * @param photoIdList 根据全景照片ID集合 - * @return - */ - @Override - public boolean deleteByPhotoIdList(List photoIdList) { - boolean result = false; - if (photoIdList != null && photoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(PanoramaPhotoTagEntity::getPanoramaPhotoId, photoIdList); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据全景照片ID集合获取列表 - * @param photoIdList 全景照片ID集合 - * @return - */ - @Override - public List getListByPanoramaPhotoIdList(List photoIdList) { - List list = new ArrayList<>(); - if (photoIdList != null && photoIdList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(PanoramaPhotoTagEntity::getPanoramaPhotoId, photoIdList); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularScenicSpotServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularScenicSpotServiceImpl.java deleted file mode 100644 index cb4f9cb5..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularScenicSpotServiceImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.PopularScenicSpotDao; -import com.zlt.tourism.model.tourism.PopularScenicSpotEntity; -import com.zlt.tourism.service.PopularScenicSpotService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * 热门景点业务实现类 - * - * @author caiji - * @version 1.0 - * @description 热门景点业务实现类 - * @create 2024/7/18 8:49 - **/ -@Service -public class PopularScenicSpotServiceImpl extends SuperServiceImpl implements PopularScenicSpotService { - - /** - * 持久层接口类 - */ - @Resource - private PopularScenicSpotDao dao; - - /** - * 根据景点ID删除记录 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PopularScenicSpotEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 判断景点是否已存在 - * @param entity 景点ID - * @return - */ - @Override - public boolean existScenicSpot(PopularScenicSpotEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PopularScenicSpotEntity::getScenicSpotId, entity.getScenicSpotId()); - if(entity.getId() != null){ - qw.ne(PopularScenicSpotEntity::getId, entity.getId()); - } - long count = this.count(qw); - return count > 0; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularTagServiceImpl.java deleted file mode 100644 index 86b3ff10..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/PopularTagServiceImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.PopularTagDao; -import com.zlt.tourism.model.tourism.PopularTagEntity; -import com.zlt.tourism.service.PopularTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * 热门标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 热门标签业务实现类 - * @create 2024/7/18 8:49 - **/ -@Service -public class PopularTagServiceImpl extends SuperServiceImpl implements PopularTagService { - - /** - * 持久层接口类 - */ - @Resource - private PopularTagDao dao; - - /** - * 根据标签编码删除记录 - * - * @param tagCode 标签编码 - * @return - */ - @Override - public boolean deleteByTagCode(String tagCode) { - boolean result = false; - if (StrUtil.isNotEmpty(tagCode)) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PopularTagEntity::getTagCode, tagCode); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 判断标签是否已存在 - * - * @param entity 标签编码 - * @return - */ - @Override - public boolean existTag(PopularTagEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PopularTagEntity::getTagCode, entity.getTagCode()); - if (entity.getId() != null) { - qw.ne(PopularTagEntity::getId, entity.getId()); - } - long count = this.count(qw); - return count > 0; - } - - /** - * 根据标签编码获取记录数 - * - * @param tagCode 标签编码 - * @return - */ - @Override - public long countByTagCode(String tagCode) { - long count = 0; - if (StrUtil.isNotEmpty(tagCode)) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PopularTagEntity::getTagCode, tagCode); - count = this.count(qw); - } - return count; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ResourceRolesIndustryServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ResourceRolesIndustryServiceImpl.java deleted file mode 100644 index f265ed12..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ResourceRolesIndustryServiceImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.ResourceRolesIndustryDao; -import com.zlt.tourism.dto.other.IndustryDTO; -import com.zlt.tourism.model.tourism.ResourceRolesIndustryEntity; -import com.zlt.tourism.service.ResourceRolesIndustryService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 资源角色与行业类型对应关系业务类 - * - * @author caiji - * @version 1.0 - * @description 资源角色与行业类型对应关系业务类 - * @create 2024/7/29 9:21 - **/ -@Service -public class ResourceRolesIndustryServiceImpl extends SuperServiceImpl implements ResourceRolesIndustryService { - - /** - * 持久层接口类 - */ - @Resource - private ResourceRolesIndustryDao dao; - - - /** - * 根据用户ID获取行业信息 - * - * @param userId 用户ID - * @return - */ - @Override - public List findIndustryByUserId(Long userId) { - List list = new ArrayList<>(); - if (userId != null) { - Map map = new HashMap<>(1); - map.put("userId", userId); - list = dao.findIndustryByUserId(map); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotDeviceServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotDeviceServiceImpl.java deleted file mode 100644 index 0ca4fdae..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotDeviceServiceImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.ScenicSpotDeviceDao; -import com.zlt.tourism.model.tourism.ScenicSpotDeviceEntity; -import com.zlt.tourism.service.ScenicSpotDeviceService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 景点与设备关系业务实现类 - * - * @author caiji - * @version 1.0 - * @description 景点与设备关系业务实现类 - * @create 2024/7/18 8:39 - **/ -@Service -public class ScenicSpotDeviceServiceImpl extends SuperServiceImpl implements ScenicSpotDeviceService { - - /** - * 持久层接口类 - */ - @Resource - private ScenicSpotDeviceDao dao; - - /** - * 根据景点ID删除景点与设备关系 - * @param scenicSpotId 景点ID - * @return - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotDeviceEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据设备Sn获取列表 - * - * @param deviceSn 设备Sn - * @return - */ - @Override - public List getListByDeviceSn(String deviceSn) { - List list = new ArrayList<>(); - if (StrUtil.isNotEmpty(deviceSn)) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotDeviceEntity::getDeviceSn, deviceSn); - list = this.list(qw); - } - return list; - } - - /** - * 根据景点ID获取列表 - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotDeviceEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotServiceImpl.java deleted file mode 100644 index d636c939..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotServiceImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.core.Pager; -import com.zlt.tourism.dao.ScenicSpotDao; -import com.zlt.tourism.model.tourism.ScenicSpotEntity; -import com.zlt.tourism.service.ScenicSpotService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 景点业务实现类 - * - * @author caiji - * @version 1.0 - * @description 景点业务实现类 - * @create 2024/7/17 16:08 - **/ -@Service -public class ScenicSpotServiceImpl extends SuperServiceImpl implements ScenicSpotService { - - /** - * 持久层接口类 - */ - @Resource - private ScenicSpotDao dao; - - /** - * 判断名称是否重复 - * - * @param entity 名称 - * @return - */ - @Override - public boolean existName(ScenicSpotEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotEntity::getScenicSpotName, entity.getScenicSpotName()); - if (entity.getId() != null) { - qw.ne(ScenicSpotEntity::getId, entity.getId()); - } - long count = this.count(qw); - return count > 0; - } - - /** - * 获取景点分页 - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - @Override - public PageInfo getScenicSpotPageList(Pager pager, Map queryMap) { -// IPage data = dao.getScenicSpotPageList(getPage(pager), queryMap); -// return toPageInfo(pager, data); - return null; - } - - /** - * 获取热门景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - @Override - public PageInfo getPopularScenicSpotPageList(Pager pager, Map queryMap) { -// IPage data = dao.getPopularScenicSpotPageList(getPage(pager), queryMap); -// return toPageInfo(pager, data); - return null; - } - - /** - * 获取我收藏的景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - @Override - public PageInfo getMyFavoritePageList(Pager pager, Map queryMap) { -// IPage data = dao.getMyFavoritePageList(getPage(pager), queryMap); -// return toPageInfo(pager, data); - return null; - } - - /** - * 获取热门标签景点分页 - * - * @param pager 分页信息 - * @param queryMap 查询条件 - * @return - */ - @Override - public PageInfo getPopularTagPageList(Pager pager, Map queryMap) { -// IPage data = dao.getPopularTagPageList(getPage(pager), queryMap); -// return toPageInfo(pager, data); - return null; - } - - /** - * 根据经纬度获取附近5公里内的景点列表 - * - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - @Override - public List getNearbyList(BigDecimal longitude, BigDecimal latitude) { - Map map = new HashMap<>(2); - longitude = longitude.subtract(new BigDecimal(180)); - latitude = latitude.subtract(new BigDecimal(90)); - map.put("longitude", longitude); - map.put("latitude", latitude); - return dao.getNearbyList(map); - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotTagServiceImpl.java deleted file mode 100644 index 422635e1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/ScenicSpotTagServiceImpl.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.ScenicSpotTagDao; -import com.zlt.tourism.model.tourism.ScenicSpotTagEntity; -import com.zlt.tourism.service.ScenicSpotTagService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * 景点标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 景点标签业务实现类 - * @create 2024/7/18 8:44 - **/ -@Service -public class ScenicSpotTagServiceImpl extends SuperServiceImpl implements ScenicSpotTagService { - - /** - * 持久层接口类 - */ - @Resource - private ScenicSpotTagDao dao; - - /** - * 根据景点ID删除记录 - * - * @param scenicSpotId 景点ID - */ - @Override - public boolean deleteByScenicSpotId(Long scenicSpotId) { - boolean result = false; - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotTagEntity::getScenicSpotId, scenicSpotId); - long count = this.count(qw); - if (count > 0) { - result = this.remove(qw); - } else { - result = true; - } - } - return result; - } - - /** - * 根据景点ID获取列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Override - public List getListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - if (scenicSpotId != null) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotTagEntity::getScenicSpotId, scenicSpotId); - list = this.list(qw); - } - return list; - } - - /** - * 根据标签编码获取记录数 - * - * @param tagCode 标签编码 - * @return - */ - @Override - public long countByTagCode(String tagCode) { - long count = 0; - if (StrUtil.isNotEmpty(tagCode)) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(ScenicSpotTagEntity::getTagCode, tagCode); - count = this.count(qw); - } - return count; - } - - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/StationControlServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/StationControlServiceImpl.java deleted file mode 100644 index e8b32a85..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/StationControlServiceImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.StationControlDao; -import com.zlt.tourism.dto.other.StationControlDTO; -import com.zlt.tourism.model.tourism.StationControlEntity; -import com.zlt.tourism.service.StationControlService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 用户控制权限业务类 - * - * @author caiji - * @version 1.0 - * @description 用户控制权限业务类 - * @create 2024/7/29 10:13 - **/ -@Service -public class StationControlServiceImpl extends SuperServiceImpl implements StationControlService { - - /** - * 持久层接口类 - */ - @Resource - private StationControlDao dao; - - /** - * 根据用户ID获取控制权限信息 - * - * @param userId 用户ID - * @return - */ - @Override - public List findControlByUserId(Long userId) { - List list = new ArrayList<>(); - if (userId != null) { - Map map = new HashMap<>(1); - map.put("userId", userId); - list = dao.findControlByUserId(map); - } - return list; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderServiceImpl.java deleted file mode 100644 index a4e573f6..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderServiceImpl.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.redis.template.RedisRepository; -import com.central.common.service.impl.SuperServiceImpl; -import com.central.common.utils.StringUtils; -import com.github.yulichang.wrapper.MPJLambdaWrapper; -import com.zlt.tourism.constant.DeviceConstant; -import com.zlt.tourism.constant.OrderConstant; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dao.TourismOrderDao; -import com.zlt.tourism.dto.order.CreateOrderDTO; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.model.tourism.TourismOrderStatusEnity; -import com.zlt.tourism.query.TourismOrderWebSocketQuery; -import com.zlt.tourism.service.IkMissionService; -import com.zlt.tourism.service.TourismOrderService; -import com.zlt.tourism.service.TourismOrderStatusService; -import com.zlt.tourism.util.RequestUtils; -import com.zlt.tourism.util.WebSocketTopicUtil; -import lombok.extern.slf4j.Slf4j; -import org.springframework.context.annotation.Lazy; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.io.IOException; -import java.util.*; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-04 18:12 - * @Description: 订单方法实现 - */ -@Service -@Slf4j -public class TourismOrderServiceImpl extends SuperServiceImpl implements TourismOrderService { - - /*@Value("${jetlinks.version}") - private String jetlinksVersion; - - @Value("${jetlinks.server.v1.url}") - private String baseUrlV1; - - @Value("${jetlinks.server.v2.url}") - private String baseUrlV2;*/ - - @Resource - private TourismOrderDao tourismOrderDao; - -// @Resource -// private IoTWebSocketClient iotWebSocketClient; - - @Resource - RequestUtils requestUtils; - - @Resource - private RedisRepository redisRepository; - - @Resource - @Lazy - IkMissionService ikMissionService; - - @Resource - @Lazy - private StationWebService stationWebService; - - @Resource - TourismOrderStatusService tourismOrderStatusService; - - @Override - public List getOrderListByOrderStatus(Integer orderStatus,String deviceSn,String sort) { - MPJLambdaWrapper wrapper= new MPJLambdaWrapper<>(); - wrapper.selectAll(TourismOrderEnity.class) - .eq(TourismOrderEnity::getOrderStatus,orderStatus) - .eq(TourismOrderEnity::getTakeOffDockSn,deviceSn); - if(StringUtils.isNotBlank(sort)){ - wrapper.orderByDesc(TourismOrderEnity::getCreatedAt); - } - List list = tourismOrderDao.selectJoinList(TourismOrderEnity.class,wrapper); - return list; - } - - @Override - public TourismOrderEnity createOrder(CreateOrderDTO createOrderDTO) { - TourismOrderEnity order= new TourismOrderEnity(); - BeanUtil.copyProperties(createOrderDTO,order); - order.setCreatedAt(new Date()); - order.setUpdatedAt(new Date()); - tourismOrderDao.insert(order); - this.saveOrderStatus(order.getId(),order.getOrderStatus()); - return order; - } - - @Override - public void monitorOrderStatus(String message) throws Exception { - TourismOrderEnity orderEnity = JSON.parseObject(message, TourismOrderEnity.class); - if(Objects.nonNull(orderEnity)){ - String deviceSn = orderEnity.getTakeOffDroneSn(); - // redisRepository.setExpire("webSocket".concat(":").concat("drone").concat(":").concat(deviceSn),deviceSn,60*60); - redisRepository.leftPush("webSocket".concat(":").concat("drone"),deviceSn); - //订阅webSocket获取无人机上报数据 - //@TODO 设备调用执行 -// iotWebSocketClient.send(WebSocketTopicUtil.getDeviceFireAlarmTopic(deviceSn,true)); - } - } - - @Override - public Map sendExecRoute(String routeCode, String userName ,String deviceId) throws IOException { - log.info("设备属性设置:{}",deviceId); - String url; - /*if(jetlinksVersion.equals("1.0")){ - url = baseUrlV1 + "/api/v1/device/" + deviceId + "/properties"; - }else { - url = baseUrlV2 + "/api/device/instance/" + deviceId + "/property"; - }*/ - JSONObject jsonObject = WebSocketTopicUtil.getExecRouteParams(routeCode,userName); - Map result = requestUtils.getPostRequestResultMap("url", jsonObject); - return result; - } - - @Override - public void cancelSubscribe(String deviceId) { - //@TODO 暂无操作 -// iotWebSocketClient.send(WebSocketTopicUtil.getDeviceFireAlarmTopic(deviceId,false)); - } - - @Override - public Map sendHoverCommand(String userName, String deviceId) throws IOException { - String url; - /*if(jetlinksVersion.equals("1.0")){ - url = baseUrlV1 + "/api/v1/device/" + deviceId + "/properties"; - }else { - url = baseUrlV2 + "/api/device/instance/" + deviceId + "/property"; - }*/ - JSONObject jsonObject = WebSocketTopicUtil.getHoverParams(userName); - Map result = requestUtils.getPostRequestResultMap("url", jsonObject); - return result; - } - - @Override - public TourismOrderEnity queryExecutionOrder(String deviceSn) { - MPJLambdaWrapper wrapper= new MPJLambdaWrapper<>(); - wrapper.selectAll(TourismOrderEnity.class) - .eq(TourismOrderEnity::getOrderStatus,OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode()) - .eq(TourismOrderEnity::getTakeOffDockSn,deviceSn) - .eq(TourismOrderEnity::getUserId, String.valueOf(LoginUserContextHolder.getUser().getId())); - return tourismOrderDao.selectOne(wrapper); - } - - @Override - public List queryUnFinishOrderByDeviceSn(String deviceSn) { - MPJLambdaWrapper wrapper= new MPJLambdaWrapper<>(); - wrapper.selectAll(TourismOrderEnity.class) - .eq(TourismOrderEnity::getUserId, String.valueOf(LoginUserContextHolder.getUser().getId())) - .in(TourismOrderEnity::getOrderStatus,OrderConstant.OrderStatusEnum.TASK_IN_PROGRESS.getCode(),OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode()); - if(StringUtils.isNotBlank(deviceSn)){ - wrapper.eq(TourismOrderEnity::getTakeOffDockSn,deviceSn); - } - List list = tourismOrderDao.selectJoinList(TourismOrderEnity.class,wrapper); - return list; - } - - @Override - public Boolean cancelWaitOrder(Long id) { - TourismOrderEnity orderEnity = tourismOrderDao.selectById(id); - if(Objects.nonNull(orderEnity)){ - orderEnity.setOrderStatus(OrderConstant.OrderStatusEnum.CANCEL_IN_LINE.getCode()); - orderEnity.setUpdatedAt(new Date()); - tourismOrderDao.updateById(orderEnity); - return true; - } - return false; - } - - @Override - public Boolean cancelSubscribe(TourismOrderWebSocketQuery query) { - //@TODO 暂不需要操作 - /*if(query.getType()==1){ - iotWebSocketClient.send(WebSocketTopicUtil.getDeviceFireAlarmTopic(query.getDeviceSn(),false)); - log.info("手动取消订阅"); - }else { - iotWebSocketClient.send(WebSocketTopicUtil.getDeviceFireAlarmTopic(query.getDeviceSn(),true)); - log.info("手动重新订阅"); - }*/ - return true; - } - - @Override - public Boolean executeWaitMission(TourismOrderEnity order) { - Long missionId = order.getMissionId(); - if (Objects.isNull(missionId)) { - return false; - } - //判断飞机是否在线 - String droneStatus = ikMissionService.getDeviceStatus(order.getTakeOffDroneSn(), "droneStatus"); - //如果飞机状态为 -1待命, 0开始起飞自检 3准备起飞 4开始起飞 5达到指定高度 6执行任务 - if (droneStatus.equals(DeviceConstant.DroneStatus.BeginCheckTakeOff.getCode()) || droneStatus.equals(DeviceConstant.DroneStatus.IdelStatus.getCode()) - || droneStatus.equals(DeviceConstant.DroneStatus.AirReadyTakeOff.getCode()) || droneStatus.equals(DeviceConstant.DroneStatus.AirTakeOff.getCode()) - || droneStatus.equals(DeviceConstant.DroneStatus.ReportDockCloseWindow.getCode()) || droneStatus.equals(DeviceConstant.DroneStatus.WpExecute.getCode()) - || droneStatus.equals(DeviceConstant.DroneStatus.AirReadyFLY.getCode())) { - try { - //如果排队中 则需要下发暂停指令给飞机 - Map hoverResult = this.sendHoverCommand(order.getUserId(), order.getTakeOffDroneSn()); - log.info("飞机悬停指令返回结果:{}", hoverResult); - //sleep一秒 ,保证飞机执行悬停指令不被打断 - Thread.sleep(1000); - Map result = this.sendExecRoute(order.getRouteCode(), order.getUserId(), order.getTakeOffDroneSn()); - log.info("重新执行排队中的订单下发飞机任务命令:{}", result); - return true; - } catch (Exception e) { - log.error("重新执行排队中的订单失败:{}", e); - } - } else { - //机巢执行 - try { - StationResult execResult = stationWebService.execMissionV4(missionId); - if (execResult != null && 0 == execResult.getFlag()) { - return true; - } - } catch (Exception e) { - log.error("执行任务出错", e); - } - } - return false; - } - - @Override - public List getWaitOrderListByDate(Date createTime) { - if (Objects.nonNull(createTime)) { - MPJLambdaWrapper wrapper = new MPJLambdaWrapper<>(); - wrapper.selectAll(TourismOrderEnity.class) - .eq(TourismOrderEnity::getOrderStatus, OrderConstant.OrderStatusEnum.WAITING_IN_LINE.getCode()) - .le(TourismOrderEnity::getCreatedAt, createTime); - List list = tourismOrderDao.selectJoinList(TourismOrderEnity.class, wrapper); - return list; - } - return Collections.emptyList(); - } - - @Override - public Boolean saveOrderStatus(Long orderId,Integer status) { - TourismOrderStatusEnity orderStatus = new TourismOrderStatusEnity(); - orderStatus.setOrderId(orderId); - orderStatus.setCreatedAt(new Date()); - orderStatus.setOrderStatus(status); - tourismOrderStatusService.save(orderStatus); - return null; - } - - @Override - public TourismOrderStatusEnity getOrderStatus(Long orderId, Integer status) { - LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); - wrapper.eq(TourismOrderStatusEnity::getOrderId, orderId) - .eq(TourismOrderStatusEnity::getOrderStatus, status); - TourismOrderStatusEnity tourismOrderStatusEnity = tourismOrderStatusService.getOne(wrapper); - return tourismOrderStatusEnity; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderStatusServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderStatusServiceImpl.java deleted file mode 100644 index 5c783d3e..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismOrderStatusServiceImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.central.common.service.impl.SuperServiceImpl; -import com.github.yulichang.wrapper.MPJLambdaWrapper; -import com.zlt.tourism.dao.TourismOrderStatusDao; -import com.zlt.tourism.model.tourism.TourismOrderStatusEnity; -import com.zlt.tourism.service.TourismOrderStatusService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections.CollectionUtils; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.Date; -import java.util.List; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-26 19:29 - * @Description: 订单状态实现类 - */ -@Service -@Slf4j -public class TourismOrderStatusServiceImpl extends SuperServiceImpl implements TourismOrderStatusService{ - - @Resource - TourismOrderStatusDao tourismOrderStatusDao; - @Override - public TourismOrderStatusEnity saveOrderStatusByOrderId(Long orderId, Integer orderStatus) { - MPJLambdaWrapper wrapper= new MPJLambdaWrapper<>(); - wrapper.selectAll(TourismOrderStatusEnity.class) - .eq(TourismOrderStatusEnity::getOrderId,orderId) - .eq(TourismOrderStatusEnity::getOrderStatus,orderStatus); - List tourismOrderStatusEnity = tourismOrderStatusDao.selectJoinList(TourismOrderStatusEnity.class,wrapper); - if(CollectionUtils.isNotEmpty(tourismOrderStatusEnity)){ - TourismOrderStatusEnity tourismOrderStatusEnity1 = tourismOrderStatusEnity.get(0); - tourismOrderStatusEnity1.setCreatedAt(new Date()); - tourismOrderStatusDao.updateById(tourismOrderStatusEnity1); - }else { - TourismOrderStatusEnity tourismOrderStatusEnity1 = new TourismOrderStatusEnity(); - tourismOrderStatusEnity1.setOrderId(orderId); - tourismOrderStatusEnity1.setOrderStatus(orderStatus); - tourismOrderStatusEnity1.setCreatedAt(new Date()); - tourismOrderStatusDao.insert(tourismOrderStatusEnity1); - } - return null; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismStreamerServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismStreamerServiceImpl.java deleted file mode 100644 index 48ec52d6..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismStreamerServiceImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.zlt.tourism.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.TourismStreamerDao; -import com.zlt.tourism.model.tourism.TourismStreamerEntity; -import com.zlt.tourism.service.TourismStreamerService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * 文旅主播业务实现类 - * - * @author caiji - * @version 1.0 - * @description 文旅主播业务实现类 - * @create 2024/7/18 9:04 - **/ -@Service -public class TourismStreamerServiceImpl extends SuperServiceImpl implements TourismStreamerService { - - /** - * 持久层接口类 - */ - @Resource - private TourismStreamerDao dao; - - /** - * 判断主播是否存在 - * - * @param entity 用户ID - * @return - */ - @Override - public boolean existUserId(TourismStreamerEntity entity) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismStreamerEntity::getUserId, entity.getUserId()); - if (entity.getId() != null) { - qw.ne(TourismStreamerEntity::getId, entity.getId()); - } - long count = this.count(qw); - return count > 0; - } - - /** - * 判断主播是否存在 - * - * @param userId 用户ID - * @return - */ - @Override - public boolean existUserId(Long userId) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismStreamerEntity::getUserId, userId); - long count = this.count(qw); - return count > 0; - } - - /** - * 判断手机号是否已存在 - * @param mobile 手机号 - * @return - */ - @Override - public boolean existMobile(String mobile) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismStreamerEntity::getMobile, mobile); - long count = this.count(qw); - return count > 0; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismTagServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismTagServiceImpl.java deleted file mode 100644 index 2398fbb9..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismTagServiceImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.service.impl.SuperServiceImpl; -import com.zlt.tourism.dao.TourismTagDao; -import com.zlt.tourism.model.tourism.TourismTagEntity; -import com.zlt.tourism.service.PopularTagService; -import com.zlt.tourism.service.ScenicSpotTagService; -import com.zlt.tourism.service.TourismTagService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 标签业务实现类 - * - * @author caiji - * @version 1.0 - * @description 标签业务实现类 - * @create 2024/7/17 10:23 - **/ -@Service -public class TourismTagServiceImpl extends SuperServiceImpl implements TourismTagService { - - /** - * 标签持久层接口类 - */ - @Resource - private TourismTagDao dao; - - /** - * 景点和标签关联业务类 - */ - @Autowired - private ScenicSpotTagService scenicSpotTagService; - - /** - * 热门标签业务类 - */ - @Autowired - private PopularTagService popularTagService; - - /** - * 判断名称是否已存在 - * - * @param model 名称 - * @return - */ - @Override - public boolean existName(TourismTagEntity model) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismTagEntity::getTagName, model.getTagName()); - if (model.getId() != null) { - qw.ne(TourismTagEntity::getId, model.getId()); - } - long count = this.count(qw); - return count > 0; - } - - /** - * 根据ID集合获取集合 - * - * @param tagIdList id集合 - * @return - */ - @Override - public List getListByIdList(List tagIdList) { - List list = new ArrayList<>(); - if (tagIdList != null && tagIdList.size() > 0) { - list = this.listByIds(tagIdList); - } - return list; - } - - /** - * 判断编码是否已存在 - * - * @param model 编码 - * @return - */ - @Override - public boolean existCode(TourismTagEntity model) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismTagEntity::getTagCode, model.getTagCode()); - if (model.getId() != null) { - qw.ne(TourismTagEntity::getId, model.getId()); - } - long count = this.count(qw); - return count > 0; - } - - /** - * 根据编码集合获取列表 - * - * @param tagCodeList 编码集合 - * @return - */ - @Override - public List getListByCodeList(List tagCodeList) { - List list = new ArrayList<>(); - if (tagCodeList != null && tagCodeList.size() > 0) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.in(TourismTagEntity::getTagCode, tagCodeList); - list = this.list(qw); - } - return list; - } - - /** - * 根据编码集合获取名称列表 - * - * @param tagCodeList 编码集合 - * @return - */ - @Override - public List getNameListByCodeList(List tagCodeList) { - List list = new ArrayList<>(); - if (tagCodeList != null && tagCodeList.size() > 0) { - List tagList = this.getListByCodeList(tagCodeList); - if (tagList != null && tagList.size() > 0) { - list = tagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagName())).map(TourismTagEntity::getTagName).collect(Collectors.toList()); - } - } - return list; - } - - /** - * 判断标签是否已使用 - * - * @param tagCode 标签编码 - * @return - */ - @Override - public boolean isUse(String tagCode) { - long scenicSpotCount = scenicSpotTagService.countByTagCode(tagCode); - long popularTagCount = popularTagService.countByTagCode(tagCode); - if (scenicSpotCount > 0 || popularTagCount > 0) { - return true; - } - return false; - } - - /** - * 根据编码获取实体 - * - * @param tagCode 标签编码 - * @return - */ - @Override - public TourismTagEntity getByCode(String tagCode) { - TourismTagEntity model = new TourismTagEntity(); - if (StrUtil.isNotEmpty(tagCode)) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(TourismTagEntity::getTagCode, tagCode); - model = this.getOne(qw, false); - } - return model; - } - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismUserServiceImpl.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismUserServiceImpl.java deleted file mode 100644 index 6c4b3c43..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/service/impl/TourismUserServiceImpl.java +++ /dev/null @@ -1,279 +0,0 @@ -package com.zlt.tourism.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.central.common.redis.template.RedisRepository; -import com.central.common.service.impl.SuperServiceImpl; -import com.central.common.utils.StringUtils; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dao.TourismUserDao; -import com.zlt.tourism.dto.user.CreatTourosmUserDTO; -import com.zlt.tourism.dto.user.LoginDTO; -import com.zlt.tourism.feign.UaaService; -import com.zlt.tourism.model.tourism.TourismUserEntity; -import com.zlt.tourism.query.TourismUserPageQuery; -import com.zlt.tourism.req.aliYun.SendMessageReq; -import com.zlt.tourism.service.TourismUserService; -import com.zlt.tourism.util.ToolUtils; -import com.zlt.tourism.vo.TourismUserPageVO; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang.RandomStringUtils; -import org.apache.shiro.crypto.hash.Sha256Hash; -import org.springframework.stereotype.Service; -import org.springframework.web.HttpRequestMethodNotSupportedException; - -import javax.annotation.Resource; -import java.util.Date; -import java.util.Objects; - -/** - * @Author: duzhichao - * @CreateTime: 2024-09-27 18:24 - * @Description: 用户 - */ -@Slf4j -@Service -public class TourismUserServiceImpl extends SuperServiceImpl implements TourismUserService { - - @Resource - RedisRepository redisRepository; - -// @Resource -// MessageCenterService messageCenterService; - - @Resource - TourismUserDao tourismUserDao; - - @Resource - UaaService uaaService; - - @Override - public TourismUserEntity getUser() { - LoginAppUser user = LoginUserContextHolder.getUser(); - TourismUserEntity tourismUser = this.getById(user.getId()); - if (tourismUser == null) { - return null; - } - return tourismUser; - } - - @Override - public Long getUserId() { - LoginAppUser user = LoginUserContextHolder.getUser(); - return user.getId(); - } - - @Override - public SysUser findByMobile(String mobile) { - TourismUserEntity tourismUser =getTourismUserByMobile(mobile); - if (tourismUser != null) { - SysUser user = new SysUser(); - BeanUtil.copyProperties(tourismUser, user); - return user; - } - return null; - } - - @Override - public Result getCodeByPhone(String mobile) { - if(StringUtils.isEmpty(mobile)){ - return Result.failed("手机号不能为空"); - } - //首先判断缓存中有没有验证码,如果有则直接拿缓存中的验证码,否则再生成 - String code = (String) redisRepository.get("usercode".concat(":").concat("phoneCode").concat(":").concat(mobile)); - if(StringUtils.isEmpty(code)){ - code=ToolUtils.generateNumericCaptchaCode(4); - redisRepository.setExpire("usercode".concat(":").concat("phoneCode").concat(":").concat(mobile),code,60); - }else{ - return Result.failed("验证码已经发送过,一分钟内有效"); - } - //发送验证码 - SendMessageReq messageReq=new SendMessageReq(); - messageReq.setPhoneNum(mobile); - messageReq.setContent("您的验证码为:".concat(code)); -// Result result= -//// messageCenterService.sendNotification(messageReq); -//// log.info("文旅发送短信验证码返回的参数是:{}",result.toString()); -// if(result.getResp_code()==0){ -// return Result.succeed("短信验证码发送成功,一分钟内有效"); -// } - return Result.failed("短信验证码发送失败,请验证手机号是否正确"); - } - - @Override - public Object userLoginAndRegister(LoginDTO req) throws HttpRequestMethodNotSupportedException { - //判断是否是app - if(!"app".equals(req.getClientId())){ - return Result.failed("客户端只能为app"); - } - //首先判断是那种登录模式 - if("mobile_code".equals(req.getGrantType())){ - //手机号验证码登录模式 需要保证手机号以及验证码不能为空 - if(StringUtils.isEmpty(req.getMobile())){ - return Result.failed("手机号不能为空"); - } - if(StringUtils.isEmpty(req.getValidCode())){ - return Result.failed("手机验证码不能为空"); - } - //需要判断验证码是否正确 - //从redis中拿出缓存的code - String smsLogin = (String) redisRepository.get("usercode".concat(":").concat("phoneCode").concat(":").concat(req.getMobile())); - if(StringUtils.isEmpty(smsLogin)){ - return Result.failed("验证码不正确或者已经失效"); - } - if(!Objects.equals(req.getValidCode(),smsLogin)){ - return Result.failed("验证码错误"); - } - //根据手机号查询用户是否已经注册 - SysUser user = findByMobile(req.getMobile()); - if(user==null){ - if(saveTourismUser(req.getMobile())){ - //修改用户名和密码 - TourismUserEntity tourismUser= getTourismUserByMobile(req.getMobile()); - if(tourismUser!=null){ - tourismUser.setUsername("yysj_".concat(tourismUser.getId().toString())); - tourismUser.setRealName("yysj_".concat(tourismUser.getId().toString())); - tourismUser.setPassword(new Sha256Hash("yysj_".concat(tourismUser.getId().toString()), tourismUser.getSalt()).toHex()); - tourismUserDao.updateById(tourismUser); - } - } - } - //注册成功需要调用登录接口获取token - LoginDTO loginDTO = new LoginDTO(); - loginDTO.setMobile(req.getMobile()); - loginDTO.setClientId(req.getClientId()); - loginDTO.setDeviceId(req.getDeviceId()); - loginDTO.setGrantType(req.getGrantType()); - return uaaService.login(loginDTO); - }else if("mobile_password".equals(req.getGrantType())){ - //手机号验证码登录模式 需要保证手机号以及验证码不能为空 - TourismUserEntity tourismUser= null; - if(StringUtils.isEmpty(req.getUserName())){ - return Result.failed("手机号或用户名不能为空"); - } - tourismUser=getTourismUserByName(req.getUserName()); - if(tourismUser==null){ - tourismUser=getTourismUserByMobile(req.getUserName()); - } - if(Objects.isNull(tourismUser)){ - return Result.failed("用户未注册或被禁用"); - } - if(StringUtils.isEmpty(req.getPassword())){ - return Result.failed("密码不能为空"); - } - LoginDTO loginDTO = new LoginDTO(); - loginDTO.setMobile(tourismUser.getMobile()); - loginDTO.setClientId(req.getClientId()); - loginDTO.setDeviceId(req.getDeviceId()); - loginDTO.setGrantType(req.getGrantType()); - loginDTO.setPassword(req.getPassword()); - return uaaService.login(loginDTO); - } - return Result.failed("不存在的认证类型"); - } - - @Override - public Boolean createTourismUser(CreatTourosmUserDTO creatTourosmUserReq) { - if(StringUtils.isEmpty(creatTourosmUserReq.getMobile())){ - return false; - } - if(StringUtils.isEmpty(creatTourosmUserReq.getUserName())){ - return false; - } - //通过手机号获取用户是否存在 - TourismUserEntity tourismUser = getTourismUserByMobile(creatTourosmUserReq.getMobile()); - if(Objects.isNull(tourismUser)){ - //新增用户 - TourismUserEntity tourismUserEntity = new TourismUserEntity(); - //注册用户 - tourismUserEntity.setMobile(creatTourosmUserReq.getMobile()); - tourismUserEntity.setStatus(0); - tourismUserEntity.setCreateUserId(creatTourosmUserReq.getUserId()); - tourismUserEntity.setEnabled(1); - tourismUserEntity.setCreatedAt(new Date()); - tourismUserEntity.setOrganizationId(1L); - if(StringUtils.isBlank(creatTourosmUserReq.getRealName())){ - String realName = ToolUtils.getRandomJianHan(6); - tourismUserEntity.setRealName(realName); - }else{ - tourismUserEntity.setRealName(creatTourosmUserReq.getRealName()); - } - tourismUserEntity.setType("app"); - tourismUserEntity.setUsername(creatTourosmUserReq.getUserName()); - //sha256加密 - String salt = creatTourosmUserReq.getSalt(); - if(StringUtils.isEmpty(creatTourosmUserReq.getPassword())){ - tourismUserEntity.setPassword(new Sha256Hash("12345678.", salt).toHex()); - }else{ - if(Objects.equals(creatTourosmUserReq.getType(),2)){ - tourismUserEntity.setPassword(creatTourosmUserReq.getPassword()); - }else if(Objects.equals(creatTourosmUserReq.getType(),1)){ - // tourismUserEntity.setPassword(new Sha256Hash(creatTourosmUserReq.getPassword(), salt).toHex()); - tourismUserEntity.setPassword(new Sha256Hash("12345678.", salt).toHex()); - }else{ - tourismUserEntity.setPassword(new Sha256Hash("12345678.", salt).toHex()); - } - } - tourismUserEntity.setSalt(salt); - return this.save(tourismUserEntity); - } - return false; - } - - @Override - public void logOutGiveToken(String token) { - uaaService.logOut(token); - } - - @Override - public PageInfo findUserPageList(TourismUserPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(query.getUsername()), TourismUserEntity::getUsername, query.getUsername()); - qw.like(StrUtil.isNotEmpty(query.getRealName()), TourismUserEntity::getRealName, query.getRealName()); - qw.like(StrUtil.isNotEmpty(query.getMobile()), TourismUserEntity::getMobile, query.getMobile()); - qw.orderByDesc(TourismUserEntity::getCreatedAt); - PageInfo tagPageList = this.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(tagPageList, pageList); - return pageList;*/ - return null; - } - - private Boolean saveTourismUser(String mobile) { - TourismUserEntity tourismUserEntity = new TourismUserEntity(); - //注册用户 - tourismUserEntity.setMobile(mobile); - tourismUserEntity.setStatus(0); - tourismUserEntity.setCreateUserId(1l); - tourismUserEntity.setEnabled(1); - tourismUserEntity.setCreatedAt(new Date()); - tourismUserEntity.setOrganizationId(1L); - String realName = ToolUtils.getRandomJianHan(6); - tourismUserEntity.setRealName(realName); - tourismUserEntity.setType("app"); - //sha256加密 - String salt = RandomStringUtils.randomAlphanumeric(20); - tourismUserEntity.setPassword(new Sha256Hash("yysj", salt).toHex()); - tourismUserEntity.setSalt(salt); - return this.save(tourismUserEntity); - } - - private TourismUserEntity getTourismUserByMobile(String mobile) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(TourismUserEntity::getMobile, mobile); - queryWrapper.eq(TourismUserEntity::getStatus, 0); - return tourismUserDao.selectOne(queryWrapper); - } - - - private TourismUserEntity getTourismUserByName(String userName) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(TourismUserEntity::getUsername, userName); - queryWrapper.eq(TourismUserEntity::getStatus, 0); - return tourismUserDao.selectOne(queryWrapper); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/PageUtil.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/PageUtil.java deleted file mode 100644 index 9dcdf708..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/PageUtil.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.zlt.tourism.util; - -import com.github.pagehelper.PageInfo; -import org.apache.commons.collections.ListUtils; - -import java.util.List; - -/** - * 分页帮助类 - * - * @author caiji - * @version 1.0 - * @description 分页帮助类 - * @create 2024/8/22 15:43 - **/ -public class PageUtil { - - /*** - * 分页方法 - * @param list - * @param pageNum - * @param pageSize - * @return - */ - public static PageInfo pagination(List list, Integer pageNum, Integer pageSize) { - PageInfo page = new PageInfo(); - page.setPageNum(pageNum); - page.setPageSize(pageSize); - if (null == list || list.size() == 0) { - page.setList(ListUtils.EMPTY_LIST); - page.setTotal(0); - page.setPages(0); - return page; - } - page.setTotal(list.size()); - int startIndex = (pageNum - 1) * pageSize; - int endIndex = Math.min(startIndex + pageSize, list.size()); - if (startIndex < endIndex) { - page.setList(list.subList(startIndex, endIndex)); - } else { - page.setList(ListUtils.EMPTY_LIST); - } - int totalPage = list.size() % pageSize == 0 ? list.size() / pageSize : list.size() / pageSize + 1; - page.setPages(totalPage); - return page; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ParamsErrorUtil.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ParamsErrorUtil.java deleted file mode 100644 index ab19ee93..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ParamsErrorUtil.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.zlt.tourism.util; - -import org.springframework.validation.BindingResult; -import org.springframework.validation.FieldError; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class ParamsErrorUtil { - - /** - * 校验前端入参 - * @param result 异常 - * @return 错误集合 - */ - public static Map getErrors(BindingResult result) { - Map map = new HashMap<>(); - List errorList = result.getFieldErrors(); - for (FieldError error : errorList) { - String field = error.getField(); - String msg = error.getDefaultMessage(); - map.put(field, msg); - } - return map; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/RequestUtils.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/RequestUtils.java deleted file mode 100644 index 7fe9cd65..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/RequestUtils.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.zlt.tourism.util; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.zlt.tourism.util.http.HeaderUtils; -import com.zlt.tourism.util.http.HttpRequest; -import com.zlt.tourism.util.http.Response; -import com.zlt.tourism.util.http.SimpleHttpRequest; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import java.io.IOException; -import java.util.Map; - -/** - * @author LSL - */ -@Slf4j -@Component -public class RequestUtils { - - @Autowired - private HeaderUtils headerUtils; - - /** - * 获取post请求result - * @param url 请求url - * @param jsonObject 请求参数 - * @return - * @throws IOException - */ - public Map getPostRequestResultMap(String url, JSONObject jsonObject) throws IOException { - log.info("iot url:{},param:{}",url,jsonObject.toJSONString()); - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfJsonString(jsonObject.toJSONString())); - request.requestBody(jsonObject.toJSONString()); - Response response = request.post(); - Map result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - return result; - } - - /** - * 获取post请求result - * @param url 请求url - * @param param 请求参数 - * @return - * @throws IOException - */ - public Map getPostRequestResultMap(String url, Map param) throws IOException { - log.info("iot url:{},param:{}",url,param); - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfJsonString(JSON.toJSONString(param))); - request.requestBody(JSON.toJSONString(param)); - Response response = request.post(); - Map result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - return result; - } - - /** - * 获取post请求result - * @param url 请求url - * @param body 请求参数 - * @return - * @throws IOException - */ - public Map getPostRequestResultMap(String url, String body) throws IOException { - log.info("iot请求url:{},参数:{}",url,body); - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfJsonString(body)); - request.requestBody(body); - Response response = request.post(); - Map result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - System.out.println(result); - return result; - } - - /** - * 获取patch请求result - * @param url 请求url - * @param body 请求参数 - * @return - * @throws IOException - */ - public Map getPatchRequestResultMap(String url, String body) throws IOException { - log.info("iot请求url:{},入参:{}",url,body); - - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfJsonString(body)); - request.requestBody(body); - Response response = request.patch(); - Map result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - System.out.println(result); - return result; - } - - /** - * @param url 请求url - * @param map 请求参数map - * @return - * @throws IOException - */ - public Map getGetRequestResultMap(String url,Map map) throws IOException { - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfParams(map)); - - Response response = request.get(); - Map result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - return result; - } - - /** - * 获取post请求result - * @param url 请求url - * @param param 请求参数 - * @return - * @throws IOException - */ - public Map getThirdPartyPostRequestResultMap(String url, Map param) { - log.info("url:{} , {}",url,param); - HttpRequest request = new SimpleHttpRequest(url); - request.headers(headerUtils.createHeadersOfJsonString(JSON.toJSONString(param))); - request.requestBody(JSON.toJSONString(param)); - Response response; - Map result = null; - try { - response = request.post(); - result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8"); - } catch (IOException e) { - log.info("查询异常:{}",e.getMessage()); - e.printStackTrace(); - } -// log.info("获取post请求result结果:{}" ,JSON.toJSONString(result)); - return result; - } - - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ToolUtils.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ToolUtils.java deleted file mode 100644 index e7492b1b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/ToolUtils.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.zlt.tourism.util; - -import java.io.UnsupportedEncodingException; -import java.util.Random; - -/** - * @Author: duzhichao - * @CreateTime: 2024-09-28 13:42 - * @Description: 工具 - */ -public class ToolUtils { - - /** - * 生成随机昵称 - * @param len - * @return - */ - public static String getRandomJianHan(int len) { - String randomName = ""; - for (int i = 0; i < len; i++) { - String str = null; - int hightPos, lowPos; // 定义高低位 - Random random = new Random(); - hightPos = (176 + Math.abs(random.nextInt(39))); // 获取高位值 - lowPos = (161 + Math.abs(random.nextInt(93))); // 获取低位值 - byte[] b = new byte[2]; - b[0] = (new Integer(hightPos).byteValue()); - b[1] = (new Integer(lowPos).byteValue()); - try { - str = new String(b, "GBK"); // 转成中文 - } catch (UnsupportedEncodingException ex) { - ex.printStackTrace(); - } - randomName += str; - } - return randomName; - } - - - /** - * 获取数字验证码 - * @param length - * @return - */ - public static String generateNumericCaptchaCode(int length) { - // 定义验证码的数字字符集 - String numericCharSet = "0123456789"; - // 创建一个StringBuffer对象用于存储验证码 - StringBuffer captcha = new StringBuffer(); - // 创建一个Random对象用于生成随机数 - Random random = new Random(); - - for (int i = 0; i < length; i++) { - // 从数字字符集中随机选择一个数字字符 - char randomChar = numericCharSet.charAt(random.nextInt(numericCharSet.length())); - // 将选中的数字字符添加到StringBuffer对象中 - captcha.append(randomChar); - } - - // 返回生成的纯数字验证码 - return captcha.toString(); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/TreeDataTranslate.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/TreeDataTranslate.java deleted file mode 100644 index f6089df0..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/TreeDataTranslate.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.zlt.tourism.util; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import lombok.extern.slf4j.Slf4j; - -import java.util.List; - -/** - * 树形数据转换帮助类 - * - * @author caiji - * @version 1.0 - * @description 树形数据转换帮助类 - * @create 2024/8/22 15:45 - **/ -@Slf4j -public class TreeDataTranslate { - - public static JSONArray listToTree(List list, String id, String pid, String child){ - JSONArray arr= JSONArray.parseArray(JSON.toJSONString(list)); - JSONArray r = new JSONArray(); - JSONObject hash = new JSONObject(); - //将数组转为Object的形式,key为数组中的id - for(int i=0;i queryStringToMap(String queryString, String charset){ - try { - Map map = new HashMap<>(); - - String[] decode = URLDecoder.decode(queryString,charset).split("&"); - for (String keyValue : decode) { - String[] kv = keyValue.split("[=]",2); - map.put(kv.length>1?kv[1]:"",kv[0]); - } - return map; - } catch (UnsupportedEncodingException e) { - throw new UnsupportedOperationException(e); - } - } - - /** - * 读文件 - * - * @param file 文件 - * @return - * @throws IOException - * @throws IOException - */ - public static String readTxt(File file) throws IOException { - String s = ""; - InputStreamReader in = new InputStreamReader(new FileInputStream(file), "UTF-8"); - BufferedReader br = new BufferedReader(in); - StringBuffer content = new StringBuffer(); - while ((s = br.readLine()) != null) { - content = content.append(s); - } - return content.toString(); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/WebSocketTopicUtil.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/WebSocketTopicUtil.java deleted file mode 100644 index 6fd9bbfa..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/WebSocketTopicUtil.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.zlt.tourism.util; - -import com.alibaba.fastjson.JSONObject; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-09 16:54 - * @Description: webSocket订阅主题 - */ -public class WebSocketTopicUtil { - - public static String getDeviceFireAlarmTopic(String deviceId, Boolean subOrUnSub) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("id", "alarm-info-" + deviceId + "-" + "firm-alarm"); - // jsonObject.put("type", "unsub"); - if (subOrUnSub) { - jsonObject.put("type", "sub"); - jsonObject.put("topic", "/device/*/" + deviceId + "/message/event/fire_alarm"); - jsonObject.put("parameter", new JSONObject()); - }else { - jsonObject.put("type", "unsub"); - } - return jsonObject.toJSONString(); - } - - public static String getDeviceOnlineTopic(String deviceId, String orgId, Boolean subOrUnSub) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("id", "online-info-" + deviceId + "-" + orgId + "-" + "online-status"); - jsonObject.put("type", "unsub"); - if (subOrUnSub) { - jsonObject.put("type", "sub"); - jsonObject.put("topic", "/device/*/" + deviceId + "/online"); - jsonObject.put("parameter", new JSONObject()); - } - return jsonObject.toJSONString(); - } - - public static String getDeviceOfflineTopic(String deviceId, String orgId, Boolean subOrUnSub) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("id", "offline-info-" + deviceId + "-" + orgId + "-" + "offline-status"); - jsonObject.put("type", "unsub"); - if (subOrUnSub) { - jsonObject.put("type", "sub"); - jsonObject.put("topic", "/device/*/" + deviceId + "/offline"); - jsonObject.put("parameter", new JSONObject()); - } - return jsonObject.toJSONString(); - } - - public static String getDeviceReportPropertyTopic(String deviceId, String orgId, Boolean subOrUnSub) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("id", "report-info-" + deviceId + "-" + orgId + "-" + "report-property"); - jsonObject.put("type", "unsub"); - if (subOrUnSub) { - jsonObject.put("type", "sub"); - jsonObject.put("topic", "/device/*/" + deviceId + "/message/property/report"); - jsonObject.put("parameter", new JSONObject()); - } - return jsonObject.toJSONString(); - } - - public static JSONObject getExecRouteParams(String routeCode, String userName) { - JSONObject jsonObject = new JSONObject(); - JSONObject cmd = new JSONObject(); - cmd.put("type", "executeRoute"); - cmd.put("data", routeCode); - jsonObject.put("droneEmergencyCmd", cmd); - jsonObject.put("user", userName); - jsonObject.put("userId", userName); - return jsonObject; - } - - public static JSONObject getHoverParams(String userName) { - JSONObject jsonObject = new JSONObject(); - JSONObject cmd = new JSONObject(); - cmd.put("type", "hover"); - cmd.put("data", new JSONObject()); - jsonObject.put("droneEmergencyCmd", cmd); - jsonObject.put("user", userName); - return jsonObject; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HeaderUtils.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HeaderUtils.java deleted file mode 100644 index 888730b1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HeaderUtils.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.zlt.tourism.util.http; - -import jakarta.servlet.http.HttpServletRequest; -import org.springframework.stereotype.Component; -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; - -import java.util.Map; - -/** - * @author lishilin - * @see - * @since 1.0 - */ -@Component -public class HeaderUtils { - -// @Value("${jetlinks.clientId}") -// private String xClientId ; -// -// @Value("${jetlinks.secureKey}") -// private String secureKey ; - public Map createHeadersOfParams(Map params) { - //时间戳 - String xTimestamp = String.valueOf(System.currentTimeMillis()); - //openApi客户端id -// String xClientId = "rN7cpmQb884W4hcH"; - //密钥 -// String secureKey = "hBYtiNxQrA8FZbtetGhCZJPi"; - //将参数按ASCII排序后拼接为k1=v1&k2=v2的格式 - /* String paramString = new TreeMap<>(params).entrySet() - .stream() - .map(e -> e.getKey().concat("=").concat(String.valueOf(e.getValue()))) - .collect(Collectors.joining("&")); - - System.out.println(paramString); - - //param+X-Timestamp+SecureKey通过MD5加密 - MessageDigest digest = DigestUtils.getMd5Digest(); - System.out.println(paramString + xTimestamp + secureKey); - digest.update(paramString.getBytes()); - digest.update(xTimestamp.getBytes()); - digest.update(secureKey.getBytes()); - - Map headers = new HashMap<>(); - headers.put("X-Sign", Hex.encodeHexString(digest.digest())); - headers.put("X-Client-Id", xClientId); - headers.put("X-Timestamp", xTimestamp); - - return headers;*/ - return null; - } - - - public Map createHeadersOfJsonString(String jsonString) { - //时间戳 - String xTimestamp = String.valueOf(System.currentTimeMillis()); - //openApi客户端id -// String xClientId = "rN7cpmQb884W4hcH"; - //密钥 -// String secureKey = "hBYtiNxQrA8FZbtetGhCZJPi"; - - - //param+X-Timestamp+SecureKey通过MD5加密 - /*MessageDigest digest = DigestUtils.getMd5Digest(); - System.out.println(jsonString + xTimestamp + secureKey); - digest.update(jsonString.getBytes()); - digest.update(xTimestamp.getBytes()); - digest.update(secureKey.getBytes()); - - Map headers = new HashMap<>(5); - headers.put("X-Sign", Hex.encodeHexString(digest.digest())); - headers.put("X-Client-Id", xClientId); - headers.put("X-Timestamp", xTimestamp); -*/ -// return headers; - return null; - } - - public static String getCurrentToken() { - HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()) - .getRequest(); - String token = request.getHeader("Authorization"); - return token; - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HttpRequest.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HttpRequest.java deleted file mode 100644 index 1c905e20..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/HttpRequest.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.zlt.tourism.util.http; - -import java.io.Closeable; -import java.io.IOException; -import java.util.Map; - -/** - * @author wang - * @see - * @since 1.0 - */ -public interface HttpRequest extends Closeable { - - Response get() throws IOException; - - Response post() throws IOException; - - Response put() throws IOException; - - Response delete() throws IOException; - - Response patch() throws IOException; - - HttpRequest encode(String encode); - - HttpRequest contentType(String type); - - HttpRequest param(String name, String value); - - HttpRequest params(Map params); - - HttpRequest header(String name, String value); - - HttpRequest headers(Map headers); - - HttpRequest requestBody(String body); - - HttpRequest resultAsJsonString(); -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/Response.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/Response.java deleted file mode 100644 index 1a388aaf..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/Response.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.zlt.tourism.util.http; - -import java.io.IOException; - -/** - * @author wang - * @see - * @since 1.0 - */ -public interface Response { - - byte[] asBytes() throws IOException; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleHttpRequest.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleHttpRequest.java deleted file mode 100644 index 5abfded7..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleHttpRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.zlt.tourism.util.http; - -import org.apache.http.HttpResponse; -import org.apache.http.NameValuePair; -import org.apache.http.client.HttpClient; -import org.apache.http.client.entity.UrlEncodedFormEntity; -import org.apache.http.client.methods.*; -import org.apache.http.entity.ContentType; -import org.apache.http.entity.StringEntity; -import org.apache.http.impl.client.CloseableHttpClient; -import org.apache.http.impl.client.HttpClientBuilder; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; - -import java.io.IOException; -import java.io.UnsupportedEncodingException; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * @author wang - * @see - * @since 1.0 - */ -public class SimpleHttpRequest implements HttpRequest { - - private Map params = new LinkedHashMap<>(); - private Map headers = new LinkedHashMap<>(); - private String url; - private String requestBody; - private String contentType; - private String encode = "utf-8"; - protected HttpClient httpClient; - - public SimpleHttpRequest(String url) { - this.url = url; - createHttpClient(); - } - - public SimpleHttpRequest(String url, HttpClient client) { - this.url = url; - this.httpClient = client; - } - - protected void createHttpClient() { - if (httpClient == null) { - HttpClientBuilder builder = HttpClientBuilder.create(); - httpClient = builder.build(); - - } - } - - @Override - public Response get() throws IOException { - String param = EntityUtils.toString(createUrlEncodedFormEntity()); - String tmpUrl = url + (url.contains("?") ? "&" : "?") + param; - HttpGet get = new HttpGet(tmpUrl); - HttpResponse response = execute(get); - return getResultValue(response); - } - - - @Override - public Response post() throws IOException { - HttpPost post = new HttpPost(url); - if (requestBody != null) - post.setEntity(new StringEntity(requestBody, ContentType.create(contentType,encode))); - else { - post.setEntity(createUrlEncodedFormEntity()); - } - HttpResponse response = execute(post); - return getResultValue(response); - } - - @Override - public Response put() throws IOException { - HttpPut put = new HttpPut(url); - if (requestBody != null) - put.setEntity(new StringEntity(requestBody, ContentType.create(contentType, encode))); - else { - - put.setEntity(createUrlEncodedFormEntity()); - } - HttpResponse response = execute(put); - return getResultValue(response); - } - - protected UrlEncodedFormEntity createUrlEncodedFormEntity() throws UnsupportedEncodingException { - List nameValuePair = params.entrySet() - .stream().map(stringStringEntry -> - new BasicNameValuePair(stringStringEntry.getKey(), String.valueOf(stringStringEntry.getValue()))) - .collect(Collectors.toList()); - return new UrlEncodedFormEntity(nameValuePair, encode); - } - - @Override - public Response delete() throws IOException { - HttpDelete delete = new HttpDelete(url); - HttpResponse response = execute(delete); - return getResultValue(response); - } - - @Override - public Response patch() throws IOException { - HttpPatch delete = new HttpPatch(url); - if (requestBody != null) - delete.setEntity(new StringEntity(requestBody, ContentType.create(contentType))); - else { - delete.setEntity(createUrlEncodedFormEntity()); - } - return getResultValue(execute(delete)); - } - - @Override - public void close() throws IOException { - if (httpClient != null && httpClient instanceof CloseableHttpClient) { - ((CloseableHttpClient) httpClient).close(); - } - } - - @Override - public HttpRequest resultAsJsonString() { - header("Accept", "application/json"); - return this; - } - - @Override - public HttpRequest requestBody(String body) { - contentType("application/json"); - this.requestBody = body; - return this; - } - - @Override - public HttpRequest encode(String encode) { - this.encode = encode; - return this; - } - - @Override - public HttpRequest contentType(String type) { - this.contentType = type; - return this; - } - - @Override - public HttpRequest param(String name, String value) { - this.params.put(name, value); - return this; - } - - @Override - public HttpRequest params(Map params) { - this.params.putAll(params); - return this; - } - - @Override - public HttpRequest header(String name, String value) { - this.headers.put(name, value); - return this; - } - - @Override - public HttpRequest headers(Map header) { - this.headers.putAll(header); - return this; - } - - private Response getResultValue(HttpResponse res) throws IOException { - return new SimpleResponse(res); - } - - private HttpResponse execute(HttpRequestBase request) throws IOException { - putHeader(request); - return httpClient.execute(request); - } - - private void putHeader(HttpUriRequest request) { - headers.forEach(request::setHeader); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleResponse.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleResponse.java deleted file mode 100644 index 01c9ee34..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/util/http/SimpleResponse.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.zlt.tourism.util.http; - -import org.apache.http.HttpResponse; -import org.apache.http.util.EntityUtils; - -import java.io.IOException; - -/** - * @author wang - * @see - * @since 1.0 - */ -public class SimpleResponse implements Response { - - HttpResponse response; - - public SimpleResponse(HttpResponse response) { - this.response = response; - } - - - @Override - public byte[] asBytes() throws IOException { - return EntityUtils.toByteArray(response.getEntity()); - } -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/ActionVo.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/ActionVo.java deleted file mode 100644 index 7654f98e..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/ActionVo.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.zlt.tourism.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * @author xulinfei - */ -@Data -public class ActionVo { - - private long id; - - @Schema(description = "动作名称,明文") - private String name; - - @Schema(description = "动作顺序") - private Integer actionIndex; - - @Schema(description = "飞机航向") - private Float yaw; - - @Schema(description = "俯仰角度") - private Float pitch; - - @Schema(description = "旋转角度") - private Float roll; - - @Schema(description = "放大倍数") - private Float zoom; - - @Schema(description = "拍照前对焦时间") - private Integer pre_time; - - @Schema(description = "拍照时间") - private Integer post_time; - - @Schema(description = "拍照动作:0 不拍照,1 拍一张,2:拍三张, 3:等时间拍照,4:等间距拍照 5:摆拍") - private Integer action; - -// @Schema(description = "0:绝缘子 1:导线挂点 2:地线挂点 3:无动作") -@Schema(description = "为了使ik_action中的兴趣点类型和ik_target中对应,并且兼容老飞机执行新航线,故加此字段,保留原targetType字段默认值为3杆塔精细航线用兴趣点类型,其他航线如果前端指定了兴趣点类型则用前端的,如果没有指定则默认为0未知 " + - "'巡检对象类型 0:未知 ,1:地线, 2:横担端挂点 ,3:导线挂点 ,4:绝缘子 ,5:塔头, 6:塔身,7:塔牌,8:塔基,9:防震锤, 11:塔全貌,12:通道'" + - "绝缘子包含:" + - "绝缘子_上相小号侧(绝缘子本身)\n" + - "绝缘子_上相大号侧(绝缘子本身)\n" + - "绝缘子_中相小号侧(绝缘子本身)\n" + - "绝缘子_中相大号侧(绝缘子本身)\n" + - "绝缘子_下相小号侧(绝缘子本身)\n" + - "绝缘子_下相大号侧(绝缘子本身)\n" + - "\n" + - "大金具_小金具_上相大号侧导线侧\n" + - "大金具_小金具_上相小号侧导线侧\n" + - "\n" + - "大金具_小金具_中相大号侧横担侧\n" + - "大金具_小金具_中相小号侧横担侧\n" + - "\n" + - "大金具_小金具_下相大号侧导线侧\n" + - "大金具_小金具_下相小号侧导线侧\n" + - "\n" + - "跳线串_上相横担侧\n" + - "跳线串_上相导线侧\n" + - "跳线串_绝缘子_上相\n" + - "跳线串_绝缘子_上相\n" + - "\n" + - "跳线串_中相横担侧\n" + - "跳线串_中相导线侧\n" + - "跳线串_绝缘子_中相\n" + - "跳线串_绝缘子_中相\n" + - "\n" + - "跳线串_下相横担侧\n" + - "跳线串_下相导线侧\n" + - "跳线串_绝缘子_下相\n" + - "跳线串_绝缘子_下相") - private Integer target_type; - - @Schema(description = "为了使ik_action中的兴趣点类型和ik_target中对应,并且兼容老飞机执行新航线,故加此字段,保留原targetType字段默认值为3杆塔精细航线用兴趣点类型,其他航线如果前端指定了兴趣点类型则用前端的,如果没有指定则默认为0未知 " + - "'巡检对象类型 0:未知 ,1:地线, 2:横担端挂点 ,3:导线挂点 ,4:绝缘子 ,5:塔头, 6:塔身,7:塔牌,8:塔基,9:防震锤, 11:塔全貌,12:通道'" + - "绝缘子包含:" + - "绝缘子_上相小号侧(绝缘子本身)\n" + - "绝缘子_上相大号侧(绝缘子本身)\n" + - "绝缘子_中相小号侧(绝缘子本身)\n" + - "绝缘子_中相大号侧(绝缘子本身)\n" + - "绝缘子_下相小号侧(绝缘子本身)\n" + - "绝缘子_下相大号侧(绝缘子本身)\n" + - "\n" + - "大金具_小金具_上相大号侧导线侧\n" + - "大金具_小金具_上相小号侧导线侧\n" + - "\n" + - "大金具_小金具_中相大号侧横担侧\n" + - "大金具_小金具_中相小号侧横担侧\n" + - "\n" + - "大金具_小金具_下相大号侧导线侧\n" + - "大金具_小金具_下相小号侧导线侧\n" + - "\n" + - "跳线串_上相横担侧\n" + - "跳线串_上相导线侧\n" + - "跳线串_绝缘子_上相\n" + - "跳线串_绝缘子_上相\n" + - "\n" + - "跳线串_中相横担侧\n" + - "跳线串_中相导线侧\n" + - "跳线串_绝缘子_中相\n" + - "跳线串_绝缘子_中相\n" + - "\n" + - "跳线串_下相横担侧\n" + - "跳线串_下相导线侧\n" + - "跳线串_绝缘子_下相\n" + - "跳线串_绝缘子_下相") - private Integer nweTargetType; - - @Schema(description = "目标ID") - private Integer target_id; - - @Schema(description = "测绘航线 间隔时间,单位毫秒") - private Integer intervalTime; - - @Schema(description = "测绘航线 间隔距离,单位米") - private Integer intervalDistance; - - /** - * add by mxw at 2022-01-17 小车吊舱类型 - * 挂载吊舱类型 0:无挂载 1:30倍可见光吊舱 2:红外热成像吊舱 - * 20240508 曹长国 备注: - * ik_action 表中 的podType 目前没有发现用处, 给机库下发 飞机的吊舱类型 用的是 ik_mission 表中的podType - * - */ - @Schema(description = "挂载吊舱类型 0:无挂载 1:30倍可见光吊舱(HJ可见光和小圣一英寸) 2:红外热成像吊舱(HJ红外和小圣双光) 3:外观识别(激光雷达HJ) 4:红外测温(喊话器HJ) 5:表记识别,11:圣机库左舱 22:圣机库右舱") - private Integer podType; - - /** - * add by mxw at 2022-04-14 for 前端回显 - */ - @Schema(description = "兴趣点列表,注:前端回显使用") - private String targetList; - - /** - * add by mxw at 230210 - */ - @Schema(description = "动作拍照类型 0:双光各拍一张 1:单光 2:红外") - private Integer photoType; - - /** - * add by mxw 230302 for 摆拍 - */ - @Schema(description = "摆动序列,int类型,二进制转十进制") - private Integer swingSeq; - - /** - * add by xulinfei at 20231128 - */ - @Schema(description = "拍摄目标经度") - private String targetLongitude; - - @Schema(description = "拍摄目标纬度") - private String targetLatitude; - - @Schema(description = "拍摄目标高度") - private String targetAltitude; - - @Schema(description = "拍摄目标距离云台拍照距离") - private String targetDistance; - - @Schema(description = "杆塔跨点左右端区分(跨点前半部航点分为左,后半部分为右);0是左边,1是右边;默认值是0") - private Integer partitionLeftRight; - - - @Schema(description = "录制视频 -1: 无 0:停止录制 1:录制可见光 2:录制红外 3:录制可见光加红外 ") - private Integer recordVideo; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismOrderUnFinishVo.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismOrderUnFinishVo.java deleted file mode 100644 index 4d641252..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismOrderUnFinishVo.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.zlt.tourism.vo; - -import com.zlt.tourism.dto.order.OrderInfoDTO; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.util.List; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-18 11:21 - * @Description: 订单未完成 - */ -@Data -public class TourismOrderUnFinishVo { - - - List list; - - @Schema(description = "当前排队总人数") - private Integer waitingPersonNums; -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismUserPageVO.java b/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismUserPageVO.java deleted file mode 100644 index 351593be..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/java/com/zlt/tourism/vo/TourismUserPageVO.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 主播分页实体类 - * - * @author caiji - * @version 1.0 - * @description 主播分页实体类 - * @create 2024/7/16 11:52 - **/ -@Data -@Schema(description = "文旅用户分页实体类") -public class TourismUserPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String username; - - /** - * 真实姓名 - */ - @Schema(description ="真实姓名") - private String realName; - - - /** - * 手机号 - */ - @Schema(description ="手机号") - private String mobile; - - - /** - * 创建时间 - */ - @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; - -} diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoFeatureTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoFeatureTagMapper.xml deleted file mode 100644 index 14463c35..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoFeatureTagMapper.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - id, tag_code, biax_video_id, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoMapper.xml deleted file mode 100644 index 0c61fee9..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoMapper.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id, scenic_spot_id, device_sn, route_id, biax_video_name, remark, video_file, video_mins, up_tag_position, longitude, latitude, order_number, - created_at, create_user_id, updated_at, update_user_id, deleted - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoUpTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoUpTagMapper.xml deleted file mode 100644 index f5db55cb..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/BiaxVideoUpTagMapper.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - id, tag_id, biax_video_id, order_number, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedPhotoMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedPhotoMapper.xml deleted file mode 100644 index c54510c9..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedPhotoMapper.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - id, scenic_spot_id, photo_file, order_number, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedRouteMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedRouteMapper.xml deleted file mode 100644 index 45d16605..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/FeaturedRouteMapper.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - id, scenic_spot_id, route_id, route_name, route_file, order_number, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkDeviceMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkDeviceMapper.xml deleted file mode 100644 index 19cd79a1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkDeviceMapper.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkMissionMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkMissionMapper.xml deleted file mode 100644 index 9ea6e6c3..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkMissionMapper.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkOrganizationMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkOrganizationMapper.xml deleted file mode 100644 index ee9e58a7..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkOrganizationMapper.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkRouteMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkRouteMapper.xml deleted file mode 100644 index 66ae793d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/IkRouteMapper.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MissionImageMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MissionImageMapper.xml deleted file mode 100644 index e1d0c24f..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MissionImageMapper.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MyFavoriteMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MyFavoriteMapper.xml deleted file mode 100644 index 80d92d68..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/MyFavoriteMapper.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - id, scenic_spot_id, user_id, remark, created_at, updated_at, deleted - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoFeatureTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoFeatureTagMapper.xml deleted file mode 100644 index ea3c8498..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoFeatureTagMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - id, tag_code, panorama_photo_id, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoMapper.xml deleted file mode 100644 index 433d50a8..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoMapper.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id, scenic_spot_id, photo_name, remark, longitude, latitude, order_number, - created_at, create_user_id, updated_at, update_user_id, deleted - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoTagMapper.xml deleted file mode 100644 index fba4a546..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PanoramaPhotoTagMapper.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - id, tag_name, panorama_photo_id, photo_name, photo_file, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularScenicSpotMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularScenicSpotMapper.xml deleted file mode 100644 index 68011f0d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularScenicSpotMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - id, scenic_spot_id, order_number, created_at, create_user_id, updated_at, update_user_id, - deleted - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularTagMapper.xml deleted file mode 100644 index 566cddc4..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/PopularTagMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - id, tag_code, order_number, created_at, create_user_id, updated_at, update_user_id, - deleted - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ResourceRolesIndustryMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ResourceRolesIndustryMapper.xml deleted file mode 100644 index d3ce5c7b..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ResourceRolesIndustryMapper.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotDeviceMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotDeviceMapper.xml deleted file mode 100644 index cfeb102d..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotDeviceMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - id, scenic_spot_id, device_sn, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotMapper.xml deleted file mode 100644 index 62827387..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotMapper.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id, scenic_spot_name, scenic_spot_grade, scenic_spot_about, scenic_spot_address, org_name, org_code, - province, province_code, city, city_code, scenic_area, scenic_area_code, longitude, latitude, altitude, hot_score, - introduce_audio_file, virtual_fly_photo_file, photo_file, created_at, create_user_id, updated_at, - update_user_id, deleted - - - - - tss.id, - tss.scenic_spot_name, - tss.scenic_spot_grade, - tss.scenic_spot_about, - tss.scenic_spot_address, - tss.province, - tss.city, - tss.scenic_area, - tss.longitude, - tss.latitude, - tss.altitude, - tss.hot_score, - tss.introduce_audio_file, - tss.virtual_fly_photo_file, - tss.photo_file, - tss.created_at, - tss.create_user_id, - tss.updated_at, - tss.update_user_id, - tss.deleted - - - - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotTagMapper.xml deleted file mode 100644 index 77c9fb68..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/ScenicSpotTagMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - id, tag_code, scenic_spot_id, created_at - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/StationControlMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/StationControlMapper.xml deleted file mode 100644 index cdae1928..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/StationControlMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismStreamerMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismStreamerMapper.xml deleted file mode 100644 index 75878b46..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismStreamerMapper.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - id, user_id, user_name, real_name, mobile, streamer_type, created_at, create_user_id, updated_at, update_user_id, - deleted - - diff --git a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismTagMapper.xml b/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismTagMapper.xml deleted file mode 100644 index a625a3a1..00000000 --- a/zlt-business/tourism-center/tourism-core/src/main/resources/mapper/TourismTagMapper.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - id, tag_code, tag_name, order_number, created_at, create_user_id, updated_at, update_user_id, - deleted - - - diff --git a/zlt-business/tourism-center/tourism-doc/20240820虎视后台文旅升级内容及步骤-V0.1.0_release.txt b/zlt-business/tourism-center/tourism-doc/20240820虎视后台文旅升级内容及步骤-V0.1.0_release.txt deleted file mode 100644 index ae8a4e06..00000000 --- a/zlt-business/tourism-center/tourism-doc/20240820虎视后台文旅升级内容及步骤-V0.1.0_release.txt +++ /dev/null @@ -1,402 +0,0 @@ -***************************************其它******************************************** -发版模块后端:1 cultural-tourism-service 2 cultural-tourism-open-api -前端模块: 1 mgnt -gateway模块 更新nacos 后,需要重启 -***************************************Nacos******************************************** - -sc-gateway.yml - -spring: - cloud: - gateway: - discovery: - locator: - lowerCaseServiceId: true - enabled: true - routes: - - id: cultural-tourism-open-api - uri: lb://cultural-tourism-open-api - predicates: - - Path=/cultural-tourism-open-api/** - filters: - - StripPrefix=1 - - id: cultural-tourism-service - uri: lb://cultural-tourism-service - predicates: - - Path=/cultural-tourism-service/** - filters: - - StripPrefix=1 - -iking: - swagger-agg: - generate-routes: station-web,user,file,station-admin,station-maintenance,station-message,auth,station-openApi,station-ops,station-videoApi,station-thirdOpenApi,cultural-tourism-open-api,cultural-tourism-service - ## 开启Swagger的Basic认证功能,默认是false - - security: - ignore: - # 忽略认证的地址 - httpUrls: > - /cultural-tourism-open-api/tourism/open/api/sys/login - - -cultural-tourism-service.yml - -spring: - datasource: - dynamic: - primary: master - strict: false - datasource: - master: - url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/hushi_cultural_tourism?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false - username: ${iking.datasource.username} - password: ${iking.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - mgnt: - url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/ikingtec_power_release_dev?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false - username: ${iking.datasource.username} - password: ${iking.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - servlet: - multipart: - max-file-size: 50MB - max-request-size: 50MB - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.ikingtec.tourism.model - global-config: - db-config: - id-type: auto - refresh: true - configuration: - map-underscore-to-camel-case: true - cache-enabled: false - call-setters-on-nulls: true - log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl - #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - -iking: - swagger: - enabled: true - title: 文旅服务 - description: 文旅服务接口文档1 - version: 1.0 - base-package: com.ikingtec.tourism.controller - - - -cultural-tourism-open-api.yml - -spring: - datasource: - dynamic: - primary: master - strict: false - datasource: - master: - url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/hushi_cultural_tourism?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false - username: ${iking.datasource.username} - password: ${iking.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - mgnt: - url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/ikingtec_power_release_dev?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false - username: ${iking.datasource.username} - password: ${iking.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.ikingtec.tourism.model - global-config: - db-config: - id-type: auto - refresh: true - configuration: - map-underscore-to-camel-case: true - cache-enabled: false - call-setters-on-nulls: true - log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl - #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - -iking: - swagger: - enabled: true - title: 文旅服务 - description: 文旅服务移动端接口文档1 - version: 1.0 - base-package: com.ikingtec.tourism.api.controller - - -***************************************数据库******************************************** --- 新建主播表 -create table ik_tourism_streamer -( - id bigint unsigned not null auto_increment comment '主键ID', - user_id bigint comment '用户ID', - user_name varchar(50) comment '用户名', - real_name varchar(50) comment '真实姓名', - mobile varchar(20) comment '手机号', - streamer_type int default 1 comment '主播类型(1:主播,2:副播)', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -) comment '文旅/主播'; - --- 新建标签表 -create table ik_tourism_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - tag_code varchar(32) comment '标签编码', - tag_name varchar(200) comment '标签名称', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -)comment '文旅/标签'; - --- 新建景点标签表 -create table ik_tourism_scenic_spot_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - tag_code varchar(32) comment '标签编码', - scenic_spot_id bigint comment '景点ID', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -)comment '文旅/景点标签'; - --- 新建热门景点表 -create table ik_tourism_popular_scenic_spot -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -)comment '文旅/热门景点'; - --- 新建热门标签表 -create table ik_tourism_popular_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - tag_code varchar(32) comment '标签编码', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -) comment '文旅/热门标签'; - --- 新建双轴视频特色景观标签表 -create table ik_tourism_biax_video_feature_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - tag_id bigint comment '标签ID', - tag_code varchar(32), - biax_video_id bigint comment '双轴视频ID', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/双轴视频特色景观标签'; - --- 新建全景照片特色景观标签表 -create table ik_tourism_panorama_photo_feature_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - tag_id bigint comment '标签ID', - tag_code varchar(32), - panorama_photo_id bigint comment '全景照片ID', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/全景照片特色景观标签'; - --- 新建景点表 -create table ik_tourism_scenic_spot -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_name varchar(128) comment '名称', - scenic_spot_grade varchar(50) comment '等级', - scenic_spot_about varchar(2000) comment '简介', - scenic_spot_address varchar(300) comment '地址', - province varchar(128) comment '地址-省', - city varchar(128) comment '地址-市', - scenic_area varchar(128) comment '地址-景区', - longitude decimal(10,7) comment '经度', - latitude decimal(10,7) comment '纬度', - altitude decimal(10,7) comment '高度', - hot_score decimal(4,1) comment '热度', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - province_code varchar(32) comment '地址-省编码', - city_code varchar(32) comment '地址-市编码', - scenic_area_code varchar(32) comment '地址-景区编码', - introduce_audio_file varchar(1000) comment '语音介绍文件', - virtual_fly_photo_file varchar(1000) comment '虚拟浏览入口视频文件', - photo_file varchar(1000) comment '卡片图文件', - org_code varchar(32) comment '机构编码', - org_name varchar(128) comment '机构名称', - primary key (id) -) comment '文旅/景点'; - --- 新建景点精选图片表 -create table ik_tourism_featured_photo -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - photo_file varchar(1000) comment '照片文件', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/景点精选图片'; - --- 新建双轴视频表 -create table ik_tourism_biax_video -( - id bigint unsigned not null auto_increment comment '主键ID', - biax_video_name varchar(128) comment '双轴视频名称', - scenic_spot_id bigint comment '景点ID', - route_id bigint comment '航线ID', - remark varchar(512) comment '备注', - video_mins varchar(50) comment '视频时长', - up_tag_position varchar(50) comment '上轴标记点位置', - longitude decimal(10,7) comment '经度', - latitude decimal(10,7) comment '纬度', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - video_file varchar(1000) comment '视频文件', - device_sn varchar(50) comment '设备SN', - primary key (id) -) comment '文旅/双轴视频'; - --- 新建全景照片表 -create table ik_tourism_panorama_photo -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - photo_name varchar(128) comment '照片名称', - remark varchar(512) comment '备注', - longitude decimal(10,7) comment '经度', - latitude decimal(10,7) comment '纬度', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - create_user_id bigint comment '创建人员ID', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - update_user_id bigint comment '更新人员ID', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -) comment '文旅/全景照片'; - --- 新建全景照片标记表 -create table ik_tourism_panorama_photo_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - panorama_photo_id bigint comment '全景照片ID', - tag_name varchar(128) comment '标记名称', - photo_name varchar(128) comment '照片名称', - photo_file varchar(1000) comment '照片文件', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/全景照片标记'; - --- 新建景点与设备关系表 -create table ik_tourism_scenic_spot_device -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - device_sn varchar(50) comment '设备SN', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/景点与设备关系'; - --- 新建我的收藏表 -create table ik_tourism_my_favorite -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - user_id bigint comment '用户ID', - remark varchar(512) comment '备注', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - updated_at timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间', - deleted int default 0 comment '删除标识(1:已删除,0:未删除)', - primary key (id) -) comment '文旅/我的收藏'; - --- 新建双轴视频上轴标记表 -create table ik_tourism_biax_video_up_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - biax_video_id bigint comment '双轴视频ID', - tag_name varchar(128) comment '标记名称', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/双轴视频上轴标记'; - --- 新建双轴视频下轴标记表 -create table ik_tourism_biax_video_down_tag -( - id bigint unsigned not null auto_increment comment '主键ID', - biax_video_id bigint comment '双轴视频ID', - tag_position varchar(50) comment '标记位置', - tag_name varchar(128) comment '标记名称', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/双轴视频下轴标记'; - --- 新建景点精选航线表 -create table ik_tourism_featured_route -( - id bigint unsigned not null auto_increment comment '主键ID', - scenic_spot_id bigint comment '景点ID', - route_id bigint comment '航线ID', - route_file varchar(1000) comment '航线视频文件', - order_number int default 1 comment '排序号', - created_at timestamp default CURRENT_TIMESTAMP comment '创建时间', - primary key (id) -) comment '文旅/景点精选航线'; - - - -################################# mgnt操作 ################################# - -1 创建:智慧文旅 目录 - -2 创建:主播权限配置 菜单 -菜单名称:主播权限配置 上级菜单:智慧文旅 菜单路由:/tourism/powerConfiguration/index 菜单图标: 选择系统菜单 - -3 创建:热门配置 菜单 -菜单名称:热门配置 上级菜单:智慧文旅 菜单路由:/tourism/PopularConfig/index 菜单图标: 选择系统菜单 - -4 创建:标签管理 菜单 -菜单名称:标签管理 上级菜单:智慧文旅 菜单路由:/tourism/LabelManagement/index 菜单图标: 选择系统菜单 - -5 创建:全景照片管理 菜单 -菜单名称:全景照片管理 上级菜单:智慧文旅 菜单路由:/tourism/PhotoManagement/index 菜单图标: 选择系统菜单 - -6 创建:双轴视频管理 菜单 -菜单名称:双轴视频管理 上级菜单:智慧文旅 菜单路由:/tourism/VideoManagement/index 菜单图标: 选择系统菜单 - -6 创建:景点管理 菜单 -菜单名称:景点管理 上级菜单:智慧文旅 菜单路由:/tourism/scenicSpot/index 菜单图标: 选择系统菜单 - diff --git a/zlt-business/tourism-center/tourism-doc/20241010虎视后台文旅升级内容及步骤-V1.0.1_release.txt b/zlt-business/tourism-center/tourism-doc/20241010虎视后台文旅升级内容及步骤-V1.0.1_release.txt deleted file mode 100644 index 18e69899..00000000 --- a/zlt-business/tourism-center/tourism-doc/20241010虎视后台文旅升级内容及步骤-V1.0.1_release.txt +++ /dev/null @@ -1,46 +0,0 @@ -*********************************************************************************** -1:配置文件修改 -①、sc-gateway.yml -security: - ignore: - # 忽略认证的地址 - httpUrls: > - /cultural-tourism-open-api/tourism/open/api/sys/getCodeByPhone -②、user-center.yml -ldap: - urls: - base: - username: - password: - -2:数据库改变 -①:ALTER TABLE `ikingtec_power_release_dev`.`ik_sys_user` ADD COLUMN `parent_id` BIGINT ( 10 ) NULL COMMENT '子账户类型的父id' AFTER `temporary_time`; -②:ALTER TABLE `ikingtec_power_release_dev`.`ik_sys_user` - MODIFY COLUMN `user_type` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '用户类型 1 内部账户 2:外部账户 3:临时账户(有过期时间)11:内部子账户类型' AFTER `avatar_url`; -③:文旅用户表 -CREATE TABLE `ik_tourism_user` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', - `username` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', - `password` varchar(100) NOT NULL DEFAULT '' COMMENT '密码', - `real_name` varchar(50) DEFAULT '' COMMENT '员工真实姓名', - `salt` varchar(20) NOT NULL DEFAULT '' COMMENT '盐', - `email` varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱', - `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号', - `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '状态 0:正常 1:禁用', - `avatar_url` varchar(150) DEFAULT '' COMMENT '用户头像', - `user_type` tinyint(3) unsigned DEFAULT NULL COMMENT '用户类型 1 内部账户 2:外部账户 3:临时账户(有过期时间)11:内部子账户类型', - `create_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '虎视用户id', - `common_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '客户是否修改密码0 未修改 1 已修改', - `organization_id` bigint(20) DEFAULT NULL, - `remake` varchar(120) DEFAULT NULL COMMENT '备注', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `enabled` tinyint(3) DEFAULT '1' COMMENT '分布式:用户是否可用1:正常,0禁用', - `open_id` varchar(120) DEFAULT NULL COMMENT '小程序:openId', - `tenant_id` varchar(120) DEFAULT NULL COMMENT '分布式:租户Id', - `type` varchar(16) DEFAULT NULL COMMENT '用户类型APP或者小程序', - PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `user_id` (`mobile`) USING BTREE COMMENT '手机号唯一索引' -) ENGINE=InnoDB AUTO_INCREMENT=1000000004 DEFAULT CHARSET=utf8mb4 COMMENT='文旅用户'; -*********************************************************************************** - diff --git a/zlt-business/tourism-center/tourism-doc/20241227虎视后台文旅升级内容及步骤-V1.0.2_release.txt b/zlt-business/tourism-center/tourism-doc/20241227虎视后台文旅升级内容及步骤-V1.0.2_release.txt deleted file mode 100644 index 6107329a..00000000 --- a/zlt-business/tourism-center/tourism-doc/20241227虎视后台文旅升级内容及步骤-V1.0.2_release.txt +++ /dev/null @@ -1,28 +0,0 @@ -①:新增订单表 -CREATE TABLE `ik_tourism_order` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `mission_id` bigint(20) DEFAULT NULL COMMENT '任务id', - `combo_id` bigint(20) DEFAULT NULL COMMENT '套餐id', - `user_id` varchar(50) DEFAULT NULL COMMENT '用户id', - `route_code` varchar(50) DEFAULT NULL COMMENT '航线code', - `take_off_dock_sn` varchar(50) DEFAULT NULL COMMENT '起飞机库', - `land_dock_sn` varchar(50) DEFAULT NULL COMMENT '降落机库', - `take_off_drone_sn` varchar(50) DEFAULT NULL COMMENT '起飞飞机', - `order_num` varchar(50) DEFAULT NULL COMMENT '订单金额', - `order_status` int(2) DEFAULT NULL COMMENT '订单状态:1:排队中 2:待支付 3:已支付 4:任务中 5:任务完成 6:取消排队', - `order_type` int(2) DEFAULT NULL COMMENT '订单类型', - `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `scenic_spot_id` bigint(20) DEFAULT NULL COMMENT '景点id', - `check_in_point` bigint(20) DEFAULT NULL COMMENT '打卡点id', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT="订单表"; - -②:新增订单状态表 -CREATE TABLE `ik_tourism_order_status` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `order_status` int(2) DEFAULT NULL COMMENT '订单状态:1:排队中 2:待支付 3:已支付 4:任务中 5:任务完成 6:取消排队', - `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, - `order_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT="订单状态表; \ No newline at end of file diff --git a/zlt-business/tourism-center/tourism-open-api/pom.xml b/zlt-business/tourism-center/tourism-open-api/pom.xml deleted file mode 100644 index bb1960ef..00000000 --- a/zlt-business/tourism-center/tourism-open-api/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - tourism-center - com.zlt - 6.0.0 - - - 4.0.0 - tourism-open-api - cultural-tourism-open-api - jar - - - - - - - - com.zlt - tourism-core - 6.0.0 - - - - org.springframework.boot - spring-boot-starter-test - test - - - - junit - junit - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - repackage - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - true - - - - com.spotify - docker-maven-plugin - - ${docker.image.prefix}/${project.artifactId} - - ${project.version} - latest - - true - ${docker.baseImage} - ${docker.volumes} - - ${docker.java.opts} - - ["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"] - - - / - ${project.build.directory} - ${project.build.finalName}.jar - - - - - - - ${project.artifactId}-release - - diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/CulturalTourismOpenApiApplication.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/CulturalTourismOpenApiApplication.java deleted file mode 100644 index ed841b41..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/CulturalTourismOpenApiApplication.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.zlt.tourism; - -import com.alibaba.fastjson.serializer.SerializerFeature; -import com.alibaba.fastjson.support.config.FastJsonConfig; -import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; -import com.central.common.lb.annotation.EnableBaseFeignInterceptor; -import com.central.common.lb.annotation.EnableFeignInterceptor; -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.http.HttpMessageConverters; -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; -import org.springframework.cloud.openfeign.EnableFeignClients; -import org.springframework.context.annotation.Bean; -import org.springframework.core.env.Environment; -import org.springframework.http.MediaType; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.transaction.annotation.EnableTransactionManagement; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author fucj - * @doc 文旅服务启动类 - */ -@EnableFeignClients(basePackages = {"com.central", "com.zlt"}) -@EnableFeignInterceptor -@EnableBaseFeignInterceptor -@EnableDiscoveryClient -@EnableTransactionManagement -@SpringBootApplication -public class CulturalTourismOpenApiApplication extends SpringBootServletInitializer implements ApplicationRunner { - - public static void main(String[] args) throws Exception { - SpringApplication app = new SpringApplication(new Class[]{CulturalTourismOpenApiApplication.class}); - Environment env = app.run(args).getEnvironment(); - String protocol = "http"; - if (env.getProperty("server.ssl.key-store") != null) { - protocol = "https"; - } - - String contextPath = ""; - if (env.getProperty("server.servlet.context-path") != null) { - contextPath = env.getProperty("server.servlet.context-path"); - } - - String configServerStatus = env.getProperty("configserver.status"); - } - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { - return builder.sources(CulturalTourismOpenApiApplication.class); - } - - @Override - public void run(ApplicationArguments args) { - } - - @Bean - public HttpMessageConverters fastJsonHttpMessageConverters() { - // 1. 需要定义一个converter转换消息的对象 - FastJsonHttpMessageConverter fasHttpMessageConverter = - new FastJsonHttpMessageConverter(); - - // 2. 添加fastjson的配置信息,比如:是否需要格式化返回的json的数据 - FastJsonConfig fastJsonConfig = new FastJsonConfig(); - fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat, SerializerFeature.DisableCircularReferenceDetect); - - // 3. 在converter中添加配置信息 - fasHttpMessageConverter.setFastJsonConfig(fastJsonConfig); - HttpMessageConverter converter = fasHttpMessageConverter; - //解决中文乱码 - List fastMediaTypes = new ArrayList<>(); - fastMediaTypes.add(MediaType.APPLICATION_JSON_UTF8); - fasHttpMessageConverter.setSupportedMediaTypes(fastMediaTypes); - - return new HttpMessageConverters(converter); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/config/WebMvcConfig.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/config/WebMvcConfig.java deleted file mode 100644 index df9a2402..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/config/WebMvcConfig.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.zlt.tourism.api.config; - -import org.springframework.context.annotation.Configuration; - -/** - * @author zlt - * @date 2019/8/5 - */ -@Configuration -public class WebMvcConfig { -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/BiaxVideoController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/BiaxVideoController.java deleted file mode 100644 index fdf71ad4..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/BiaxVideoController.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.zlt.tourism.api.query.GetByIdQuery; -import com.zlt.tourism.api.vo.BiaxVideoBaseVO; -import com.zlt.tourism.manager.BiaxVideoManager; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.Map; - -/** - * 双轴视频控制器 - * - * @author caiji - * @version 1.0 - * @description 双轴视频控制器 - * @create 2024/7/18 16:13 - **/ -@Tag(name = "双轴视频管理") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/biax/video/") -public class BiaxVideoController { - - /** - * 双轴业务类 - */ - @Autowired - private BiaxVideoManager biaxVideoManager; - - - /** - * 根据主键ID获取实体 - * - * @param query 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") - @PostMapping(value = "getById", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@Valid @RequestBody GetByIdQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - Long id = null; - if (StrUtil.isNotEmpty(query.getId())) { - id = Long.parseLong(query.getId()); - } - BiaxVideoBaseVO model = biaxVideoManager.getEntity(id); - return Result.succeed(model); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/DeviceController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/DeviceController.java deleted file mode 100644 index dc1f86b7..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/DeviceController.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.device.DeviceListQuery; -import com.zlt.tourism.dto.org.OrganizationQuery; -import com.zlt.tourism.feign.StationWebService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * 设备控制器 - * - * @author caiji - * @version 1.0 - * @description 设备控制器 - * @create 2024/7/4 14:37 - **/ -@Tag(name = "设备管理") -@RestController -@RequestMapping("/tourism/open/api/device/") -@Slf4j -public class DeviceController { - - /** - * Station-Web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 获取设备列表 - * - * @return - */ - @Operation(summary = "查询指定范围内的设备") - @PostMapping(value = "query") - public StationResult queryDevice() { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - DeviceListQuery query = new DeviceListQuery(); - query.setVersion("1.1"); - query.setChannel(1); - query.setIndustryType(10); - StationResult result = stationWebService.queryDevice(query); - return result; - } else { - return StationResult.error("获取当前用户失败!"); - } - } - - /** - * 获取设备列表 - * - * @return - */ - @Operation(summary = "查询指定范围内的设备树形列表") - @PostMapping(value = "organization") - public StationResult getOrganizationTree() { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - OrganizationQuery query = new OrganizationQuery(); - query.setVersion("1.1"); - query.setChannel(1); - query.setIndustryType(10); - StationResult result = stationWebService.getOrganizationList(query); - return result; - } else { - return StationResult.error("获取当前用户失败!"); - } - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/LoginController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/LoginController.java deleted file mode 100644 index fce1e078..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/LoginController.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.alibaba.fastjson.JSON; -import com.central.common.model.Result; -import com.central.common.utils.StringUtils; -import com.zlt.tourism.api.dto.PhoneMobileCodeDTO; -import com.zlt.tourism.dto.user.LoginDTO; -import com.zlt.tourism.feign.UaaService; -import com.zlt.tourism.service.TourismUserService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.HttpRequestMethodNotSupportedException; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; - -/** - * APP登录控制器 - * - * @author caiji - * @version 1.0 - * @description APP登录控制器 - * @create 2024/7/3 16:10 - **/ -@Tag(name = "APP登录") -@RestController -@RequestMapping("/tourism/open/api/sys/") -@Slf4j -public class LoginController { - - /** - * 认证服务 - */ - @Autowired - private UaaService uaaService; - - @Resource - TourismUserService tourismUserService; - - /** - * 登录 - * - * @param req 登录实体 - * @return - * @throws HttpRequestMethodNotSupportedException - */ - @Operation(summary = "用户登录") - @PostMapping(value = "login") - public Object login(@Valid @RequestBody LoginDTO req) throws HttpRequestMethodNotSupportedException { - log.info("用户登录请求:{}", JSON.toJSONString(req)); - return tourismUserService.userLoginAndRegister(req); - } - - /** - * 退出登录 - * - * @param token token - * @return - */ - @Operation(summary = "用户退出登录") - @PostMapping(value = "/logout") - public Result logOut(@RequestHeader(value = "Authorization") String token) { - if (StringUtils.isNotBlank(token)) { - return uaaService.logOut(token); - } else { - return Result.failed("token不存在"); - } - } - - @Operation(summary = "根据手机号获取验证码") - @PostMapping(value = "/getCodeByPhone") - public Result getCodeByPhone(@Valid @RequestBody PhoneMobileCodeDTO req) { - log.info("用户获取验证码的参数是:{}", JSON.toJSONString(req)); - return tourismUserService.getCodeByPhone(req.getMobile()); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MissionController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MissionController.java deleted file mode 100644 index 9e5e5a85..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MissionController.java +++ /dev/null @@ -1,215 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.alibaba.fastjson.JSON; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.mission.*; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.manager.MissionManager; -import com.zlt.tourism.model.iking.AudioFileInfoEntity; -import com.zlt.tourism.query.AudioFileRequestQuery; -import com.zlt.tourism.query.MissionImagesPageQuery; -import com.zlt.tourism.query.MissionPageQuery; -import com.zlt.tourism.service.IkMissionService; -import com.zlt.tourism.service.MissionImageService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** - * 任务管理 - * - * @author caiji - * @version 1.0 - * @description 任务管理 - * @create 2024/8/3 16:14 - **/ -@RestController -@RequestMapping("/tourism/open/api/mission/") -@Slf4j -public class MissionController { - - /** - * StationWeb feign客户端类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 任务业务类 - */ - @Autowired - private MissionManager missionManager; - - @Resource - private IkMissionService ikMissionService; - - @Resource - private MissionImageService missionImageService; - - /** - * 执行任务 - * - * @param token token - * @param model 表单 - * @param paramResult 表单验证结果 - * @return - */ - @Operation(summary = "执行任务") - @PostMapping("/executeMission") - public Result execMission(@RequestHeader("Authorization") String token, @Valid @RequestBody ExecuteMissionDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - Long missionId = ikMissionService.dockExecuteMission(model); - if(Objects.nonNull(missionId)){ - return Result.succeed("执行成功!"); - } - return Result.failed("执行失败"); - } - - /** - * 查询任务图片分页 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "查询任务图片分页") -// @ApiIgnore - @PostMapping(value = "/image/pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getImagePageList(@Valid @RequestBody ImagePageQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - PageInfo pageInfo = missionManager.getImagePageList(query); - return Result.succeed(pageInfo); - } - - /** - * 查询任务视频分页、 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "查询任务视频分页") - @PostMapping(value = "/video/pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getVideoPageList(@Valid @RequestBody VideoPageQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - PageInfo pageInfo = missionManager.getVideoPageList(query); - return Result.succeed(pageInfo); - } - - /** - * 新增或编辑任务 - * - * @return - */ - @Operation(summary = "新增或编辑任务") -// @ApiIgnore - @PostMapping(value = "saveOrUpdateMission") - public StationResult saveOrUpdateMission(@RequestHeader("Authorization") String token, @Valid @RequestBody CreateOrUpdateMissionRequestDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return StationResult.error("获取当前用户失败!"); - } - StationResult result = stationWebService.createOrUpdateMission(token, model); - return result; - } - - /** - * 获取任务回放分页 - * - * @return - */ - @Operation(summary = "获取任务回放分页") - @PostMapping("history/pageList") - public StationResult getTrackMissionList(@RequestBody @Valid MissionTrackListQuery query, BindingResult paramResult){ - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - return stationWebService.getTrackMissionList(query); - } - - - @Operation(summary = "根据用户获取正在执行的任务分页") - @PostMapping(value = "/pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getMissionByUserId(@Valid @RequestBody MissionPageQuery query) { - PageInfo pageInfo = ikMissionService.getMissionPage(query); - return Result.succeed(pageInfo); - } - - @Operation(summary = "根据任务获取图片分页") - @PostMapping(value = "/pageList/images", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getImageByMissionId(@Valid @RequestBody MissionImagesPageQuery query) { - if(Objects.isNull(query.getMissionId())){ - return Result.failed("任务id不能为空"); - } - PageInfo pageInfo = missionImageService.getMissionImageById(query); - return Result.succeed(pageInfo); - } - - @Operation(summary = "获取用户任务图片列表") -// @ApiIgnore - @PostMapping(value = "/images/list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getImageByMissionId(@Valid @RequestBody MissionPageQuery query) { - PageInfo pageInfo = missionImageService.getMissionImageByUserId(query); - return Result.succeed(pageInfo); - } - - @Operation(summary = "获取用户相册分页") - @PostMapping(value = "/getImage/user/page", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getImageByUserId(@Valid @RequestBody MissionPageQuery query) { - PageInfo pageInfo = missionImageService.getImagesByUserId(query); - return Result.succeed(pageInfo); - } - - - @Operation(summary = "定时修改任务状态") - @PostMapping(value = "/update/mission/status", produces = MediaType.APPLICATION_JSON_VALUE) - public Boolean updateMissionStatus(@Valid @RequestBody MissionStatusUpdateDTO query) { - return ikMissionService.updateMissionStatus(query); - } - - - @Operation(summary = "喊话器音频文件 列表") - @PostMapping("/audio/file/list") - @ResponseBody - public Result uploadFile(@Valid @RequestBody AudioFileRequestQuery requestParam) { - log.info("喊话器音频文件 列表 入参={}", JSON.toJSONString(requestParam)); - List result = ikMissionService.audioList(requestParam); - // log.info("喊话器音频文件 列表出参={}", JSON.toJSONString(result)); - return Result.succeed(result); - } - -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ModelsController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ModelsController.java deleted file mode 100644 index 5621594d..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ModelsController.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.other.ModelListQuery; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import javax.validation.Valid; -import java.util.Map; - -/** - * 模型管理 - * - * @author caiji - * @version 1.0 - * @description 模型管理 - * @create 2024/8/29 13:13 - **/ -@Tag(name = "模型管理") -@RestController -@RequestMapping("/tourism/open/api/models/") -@Slf4j -public class ModelsController { - - /** - * StationWeb feign客户端类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 查询模型列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "查询模型列表") - @PostMapping(value = "/list", produces = MediaType.APPLICATION_JSON_VALUE) - public StationResult getList(@Valid @RequestBody ModelListQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return StationResult.error("获取登录用户失败,请重新登录"); - } - StationResult result = stationWebService.queryModel(query); - return result; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MyFavoriteController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MyFavoriteController.java deleted file mode 100644 index 2e9f5896..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/MyFavoriteController.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.api.dto.MyFavoriteAddDTO; -import com.zlt.tourism.api.dto.MyFavoriteDeleteDTO; -import com.zlt.tourism.api.query.MyFavoritePageQuery; -import com.zlt.tourism.api.vo.MyFavoriteScenicSpotPageVO; -import com.zlt.tourism.manager.ScenicSpotManager; -import com.zlt.tourism.model.tourism.MyFavoriteEntity; -import com.zlt.tourism.service.MyFavoriteService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.Map; - -/** - * 我的收藏控制器 - * - * @author caiji - * @version 1.0 - * @description 我的收藏控制器 - * @create 2024/7/20 8:49 - **/ -@Tag(name = "我的收藏") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/myFavorite/") -public class MyFavoriteController { - - /** - * 我的收藏业务类 - */ - @Autowired - private MyFavoriteService myFavoriteService; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotManager scenicSpotManager; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "收藏") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody MyFavoriteAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - MyFavoriteEntity myFavoriteEntity = new MyFavoriteEntity(); - myFavoriteEntity.setScenicSpotId(model.getScenicSpotId()); - myFavoriteEntity.setUserId(user.getId()); - boolean existByUserId = myFavoriteService.existByUserId(myFavoriteEntity); - if (existByUserId) { - return Result.failed("该景点您已收藏过,操作失败!"); - } - boolean result = myFavoriteService.save(myFavoriteEntity); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } - - /** - * 删除 - * - * @param model 景点ID - * @return - */ - @Operation(summary = "取消收藏") - @PostMapping(value = "deleteByScenicSpotId", produces = MediaType.APPLICATION_JSON_VALUE) - public Result deleteByScenicSpotId(@Valid @RequestBody MyFavoriteDeleteDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(MyFavoriteEntity::getScenicSpotId, model.getScenicSpotId()); - qw.eq(MyFavoriteEntity::getUserId, user.getId()); - boolean result = myFavoriteService.remove(qw); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getPageList(@RequestBody MyFavoritePageQuery query) { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - PageInfo pageList = scenicSpotManager.getMyFavoritePageList(query, user.getId()); - return Result.succeed(pageList); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/OrderController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/OrderController.java deleted file mode 100644 index 93389560..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/OrderController.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.annotation.Limit; -import com.zlt.tourism.api.query.TourismOrderQuery; -import com.zlt.tourism.dto.mission.ExecuteMissionDTO; -import com.zlt.tourism.dto.mission.MissionImageDTO; -import com.zlt.tourism.manager.TourismOrderManager; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.query.TourismOrderImagesQuery; -import com.zlt.tourism.query.TourismOrderWebSocketQuery; -import com.zlt.tourism.vo.TourismOrderUnFinishVo; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.IOException; -import java.util.concurrent.TimeUnit; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-04 17:44 - * @Description: 订单接口实现类 - */ -@Schema(name = "订单管理") -@RestController -@RequestMapping("/tourism/open/api/order/") -@Slf4j -public class OrderController { - - @Resource - TourismOrderManager orderManager; - - - @Operation(summary = "扫码创建订单v1.0") - @PostMapping("/createOrderByCode") - @Limit(key = "createOrderByCode", permitsPerSecond = 1, timeout = 2000, timeunit = TimeUnit.MILLISECONDS,msg = "请勿重复扫码!") - public Result createOrderByCode(@Valid @RequestBody ExecuteMissionDTO model) throws IOException, InterruptedException { - return orderManager.createOrderByCode(model); - } - - - @Operation(summary = "重新执行任务") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true) -// }) - @GetMapping(value = "retryExecuteMission/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result retryExecuteMission(@PathVariable("id") Long id) { - TourismOrderEnity model = orderManager.getOrderById(id); - return Result.succeed(model); - } - - - @Operation(summary = "获取当前登录人正在任务的订单") - @PostMapping("/queryExecutionOrder") - public Result queryExecutionOrder(@Valid @RequestBody TourismOrderQuery orderQuery) { - return orderManager.queryExecutionOrder(orderQuery.getDeviceSn()); - } - - @Operation(summary = "获取排队和任务中的订单") - @PostMapping("/queryUnFinishOrderByDeviceSn") - public Result queryUnFinishOrderByDeviceSn(@Valid @RequestBody TourismOrderQuery orderQuery) { - return orderManager.queryUnFinishOrderByDeviceSn(orderQuery.getDeviceSn()); - } - - - @Operation(summary = "取消排队的订单") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true) -// }) - @GetMapping(value = "cancelWaitOrder/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result cancelWaitOrder(@PathVariable("id") Long id) { - Boolean model = orderManager.cancelWaitOrder(id); - return Result.succeed(model); - } - - @Operation(summary = "取消或者重新订阅") - @PostMapping("/cancelSubscribe") - public Boolean cancelSubscribe(@Valid @RequestBody TourismOrderWebSocketQuery query) { - return orderManager.cancelSubscribe(query); - } - - - @Operation(summary = "获取正在执行的订单的图片") - @PostMapping("/execImages/page") - public Result> execImagesPage(@Valid @RequestBody TourismOrderImagesQuery query) { - return orderManager.execImagesPage(query); - } - - @Operation(summary = "执行中的订单完成继续执行下个排队中的订单") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "订单id", required = true) -// }) - @GetMapping(value = "finishExecuteMission/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result finishExecuteMission(@PathVariable("id") Long id) { - return orderManager.finishExecuteMission(id); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PanoramaPhotoController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PanoramaPhotoController.java deleted file mode 100644 index 9f693b23..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PanoramaPhotoController.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.zlt.tourism.api.query.GetByIdQuery; -import com.zlt.tourism.api.vo.PanoramaPhotoBaseVO; -import com.zlt.tourism.manager.PanoramaPhotoManager; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.Map; - -/** - * 全景照片接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片接口类 - * @create 2024/7/18 17:44 - **/ -@Tag(name = "全景照片") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/panorama/photo/") -public class PanoramaPhotoController { - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoManager panoramaPhotoManager; - - /** - * 根据主键ID获取实体 - * - * @param query 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") - @PostMapping(value = "getById", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@Valid @RequestBody GetByIdQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - Long id = null; - if (StrUtil.isNotEmpty(query.getId())) { - id = Long.parseLong(query.getId()); - } - PanoramaPhotoBaseVO model = panoramaPhotoManager.getEntity(id); - return Result.succeed(model); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PopularTagController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PopularTagController.java deleted file mode 100644 index b6b13d2e..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/PopularTagController.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.model.Result; -import com.zlt.tourism.api.vo.PopularTagListVO; -import com.zlt.tourism.model.tourism.PopularTagEntity; -import com.zlt.tourism.model.tourism.TourismTagEntity; -import com.zlt.tourism.service.PopularTagService; -import com.zlt.tourism.service.TourismTagService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 热门标签控制器 - * - * @author caiji - * @version 1.0 - * @description 热门标签控制器 - * @create 2024/7/19 9:06 - **/ -@Tag(name = "热门标签管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/popular/tag/") -public class PopularTagController { - - /** - * 热门标签业务类 - */ - @Autowired - private PopularTagService popularTagService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tourismTagService; - - - /** - * 获取列表 - * - * @return - */ - @Operation(summary = "获取列表") - @PostMapping(value = "list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findList() { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(PopularTagEntity::getOrderNumber); - List popularTagList = popularTagService.list(qw); - List list = new ArrayList<>(); - if (popularTagList != null && popularTagList.size() > 0) { - List tagCodeList = popularTagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagCode())).map(PopularTagEntity::getTagCode).collect(Collectors.toList()); - List tagList = tourismTagService.getListByCodeList(tagCodeList); - if(tagList != null && tagList.size() > 0){ - PopularTagListVO model; - for (TourismTagEntity item : tagList) { - model = new PopularTagListVO(); - model.setTagCode(item.getTagCode()); - model.setTagName(item.getTagName()); - list.add(model); - } - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/RouteController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/RouteController.java deleted file mode 100644 index 40225b54..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/RouteController.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.zlt.tourism.api.controller; - -import com.alibaba.fastjson.JSONObject; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.route.RouteCreateOrUpdateListDTO; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.Map; - -/** - * 航线管理 - * - * @author caiji - * @version 1.0 - * @description 航线管理 - * @create 2024/8/19 10:50 - **/ -@Schema(name = "航线管理") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/route/") -public class RouteController { - - /** - * Station-web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 新增或编辑航线 - * - * @return - */ - @Operation(summary = "新增或编辑航线") - @PostMapping(value = "saveOrUpdateRoute", produces = MediaType.APPLICATION_JSON_VALUE) - public StationResult saveOrUpdateRoute(@Valid @RequestBody RouteCreateOrUpdateListDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return StationResult.error("获取当前用户失败!"); - } - log.error(JSONObject.toJSONString(model)); - StationResult result = stationWebService.createRouteSaveOrUpdate(model); - return result; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScanCodeQueueController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScanCodeQueueController.java deleted file mode 100644 index 97ab78e9..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScanCodeQueueController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.zlt.tourism.api.controller; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.extern.slf4j.Slf4j; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-04 10:33 - * @Description: 扫码排队接口 - */ -@Schema(name = "任务管理") -@RestController -@RequestMapping("/tourism/open/api/mission/") -@Slf4j -public class ScanCodeQueueController { - - -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScenicSpotController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScenicSpotController.java deleted file mode 100644 index 15bf937b..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/ScenicSpotController.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.api.query.CoordinateListQuery; -import com.zlt.tourism.api.query.GetByIdQuery; -import com.zlt.tourism.api.query.ScenicSpotPageQuery; -import com.zlt.tourism.api.vo.CoordinateListVO; -import com.zlt.tourism.api.vo.ScenicSpotPageVO; -import com.zlt.tourism.manager.ScenicSpotManager; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import javax.validation.Valid; -import java.math.BigDecimal; -import java.util.Map; - -/** - * 景点控制器 - * - * @author caiji - * @version 1.0 - * @description 景点控制器 - * @create 2024/7/18 11:49 - **/ -@Schema(name = "景点管理") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/scenic/spot/") -public class ScenicSpotController { - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotManager scenicSpotManager; - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "热门景点,热门标签,我的收藏") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getPageList(@RequestBody ScenicSpotPageQuery query) { - LoginAppUser user = LoginUserContextHolder.getUser(); - - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - PageInfo pageList = scenicSpotManager.getPageList(query, user.getId()); - return Result.succeed(pageList); - } - - /** - * 获取坐标列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "获取坐标列表") - @PostMapping(value = "coordinate/list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getCoordinateList(@Valid @RequestBody CoordinateListQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - Integer coordinateType = null; - BigDecimal longitude = null; - BigDecimal latitude = null; - if (StrUtil.isNotEmpty(query.getCoordinateType())) { - coordinateType = Integer.parseInt(query.getCoordinateType()); - } - if (StrUtil.isNotEmpty(query.getLongitude())) { - longitude = new BigDecimal(query.getLongitude()); - } - if (StrUtil.isNotEmpty(query.getLatitude())) { - latitude = new BigDecimal(query.getLatitude()); - } - CoordinateListVO coordinateList = scenicSpotManager.getCoordinateList(coordinateType, longitude, latitude, user.getId()); - return Result.succeed(coordinateList); - } - - /** - * 根据主键ID获取实体 - * - * @param query 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") - @PostMapping(value = "getById", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@Valid @RequestBody GetByIdQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录"); - } - Long id = null; - if (StrUtil.isNotEmpty(query.getId())) { - id = Long.parseLong(query.getId()); - } - ScenicSpotPageVO model = scenicSpotManager.getEntity(id, user.getId()); - return Result.succeed(model); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/UserController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/UserController.java deleted file mode 100644 index b5e1376a..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/UserController.java +++ /dev/null @@ -1,313 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.central.common.utils.RSAUtil; -import com.central.common.utils.StringUtils; -import com.zlt.tourism.api.vo.SysUserVO; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.FileInfoDto; -import com.zlt.tourism.dto.other.IndustryDTO; -import com.zlt.tourism.dto.other.StationControlDTO; -import com.zlt.tourism.dto.user.CreatTourosmUserDTO; -import com.zlt.tourism.dto.user.PasswordUpdateDTO; -import com.zlt.tourism.dto.user.UserUpdateDTO; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.model.tourism.TourismUserEntity; -import com.zlt.tourism.service.ResourceRolesIndustryService; -import com.zlt.tourism.service.StationControlService; -import com.zlt.tourism.service.TourismStreamerService; -import com.zlt.tourism.service.TourismUserService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang.RandomStringUtils; -import org.apache.shiro.crypto.hash.Sha256Hash; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.util.Assert; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; - -import javax.annotation.Resource; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** - * APP用户控制器 - * - * @author caiji - * @version 1.0 - * @description APP用户控制器 - * @create 2024/7/4 10:04 - **/ -@Schema(name = "APP用户管理") -@RestController -@RequestMapping("/tourism/open/api/user/") -@Slf4j -public class UserController { - - /** - * Station-Web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 主播业务类 - */ - @Autowired - private TourismStreamerService streamerService; - - /** - * 行业业务类 - */ - @Autowired - private ResourceRolesIndustryService industryService; - - /** - * 行业业务类 - */ - @Autowired - private StationControlService controlService; - - @Resource - private TourismUserService tourismUserService; - - - - - /** - * 修改登录用户密码 - * - * @param form 登录密码 - * @param token token - * @return - */ - @Operation(summary = "修改登录用户密码") - @PostMapping("/password") - public StationResult password(@RequestBody PasswordUpdateDTO form, @RequestHeader(value = "Authorization") String token, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - if (StrUtil.isEmpty(token)) { - return StationResult.error("token为空!"); - } - //return stationWebService.password(form, token); - TourismUserEntity user = tourismUserService.getUser(); - if (Objects.isNull(user)) { - return StationResult.error("用户不存在!"); - } - if(Objects.equals(form.getType(),1)){ //设置密码 - String password = RSAUtil.decryptOne(form.getNewPassword()); - if(StringUtils.isBlank(password)) { - return StationResult.error("密码未加密"); - } - String salt = RandomStringUtils.randomAlphanumeric(20); - user.setPassword(new Sha256Hash(password, salt).toHex()); - user.setSalt(salt); - user.setCommonId(1l); - }else { - String password = RSAUtil.decryptOne(form.getPassword()); - String newPassword =RSAUtil.decryptOne(form.getNewPassword()); - if(StringUtils.isBlank(password) || StringUtils.isBlank(newPassword)) { - return StationResult.error("密码未加密"); - } - Assert.isNull(password, "原密码不能为空"); - //sha256加密 - String password1 = new Sha256Hash(password, user.getSalt()).toHex(); - String passwordOld = user.getPassword(); - if (passwordOld == null) { - return StationResult.error("密码不存在"); - } - if (!password1.equals(passwordOld)) { - return StationResult.error("原密码不正确"); - } - //修改库密码 - // SysUserEntity user = getUser(); - String newPassword1 = new Sha256Hash(newPassword, user.getSalt()).toHex(); - if(password1.equals(newPassword1)) return StationResult.error("原密码与新密码不能相同"); - user.setPassword(newPassword1); - user.setCommonId(1l); - } - tourismUserService.updateById(user); - log.info("用户的token:{}",token); - if(StringUtils.isBlank(token)){ - return StationResult.error("token不存在"); - } - tourismUserService.logOutGiveToken(token); - return StationResult.ok(); - } - - /** - * 修改用户手机号和头像和用户名 - * - * @param form 更新实体 - * @return - */ - @Operation(summary = "修改用户手机号和头像和用户名") - @PostMapping("/mobileAndAvatarUrlAndRealName") - public StationResult phoneNumAndAvatarUrl(@RequestBody UserUpdateDTO form, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - // return stationWebService.phoneNumAndAvatarUrl(form); - LoginAppUser user = LoginUserContextHolder.getUser(); - TourismUserEntity tourismUser = tourismUserService.getById(user.getId()); - if(Objects.nonNull(tourismUser)){ - if(StringUtils.isNotBlank(form.getAvatarUrl())) tourismUser.setAvatarUrl(form.getAvatarUrl()); - if(StringUtils.isNotBlank(form.getMobile())){ - SysUser userEntity= tourismUserService.findByMobile(form.getMobile()); - if(Objects.nonNull(userEntity)){ - return StationResult.error("修改的手机号已经注册,请更换手机号!"); - }else{ - if(!Objects.equals(user.getMobile(),form.getMobile())){ - tourismUser.setMobile(form.getMobile()); - } - } - } - if(StringUtils.isNotBlank(form.getRealName()))tourismUser.setRealName(form.getRealName()); - tourismUserService.updateById(tourismUser); - return StationResult.ok("修改成功"); - } - return StationResult.error("修改失败"); - } - - /** - * 个人头像上传 - * - * @param file 头像文件 - * @return - * @throws Exception - */ - @Operation(summary = "个人头像上传") - @PostMapping(value = "/uploadAvatar", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public Result uploadAvatar(@RequestPart("file") MultipartFile file) throws Exception { - return stationWebService.uploadAvatar(file); - } - - /** - * 获取登录的用户信息 - * - * @return - */ - @Operation(summary = "获取登录的用户信息") - @PostMapping("/info") - public Result info() { - log.info("获取登录用户信息开始"); - SysUserVO model = new SysUserVO(); - LoginAppUser user = LoginUserContextHolder.getUser(); - log.info("获取到的当前登录用户是:{}",user.getUsername()); - if (user != null && user.getId() != null) { - TourismUserEntity tourismUser = tourismUserService.getById(user.getId()); - if (tourismUser != null) { - BeanUtil.copyProperties(tourismUser, model); - boolean isStreamer = streamerService.existUserId(model.getId()); - if (isStreamer) { - model.setStreamerType(1); - } else { - model.setStreamerType(-2); - } - if(Objects.equals(tourismUser.getCommonId(),0L)){ - model.setIsHasPassword(0); - }else{ - model.setIsHasPassword(1); - } - return Result.succeed(model); - }else { - return Result.failed("获取当前用户失败!"); - } - } else { - return Result.failed("获取当前用户失败!"); - } - } - - /** - * 查询用户行业权限 - * - * @return - */ - @Operation(summary = "查询用户行业权限") - @PostMapping(value = "getIndustryListByUserId") - public Result> getIndustryListByUserId() { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取当前用户失败!"); - } - List list = industryService.findIndustryByUserId(user.getId()); - return Result.succeed(list); - } - - /** - * 查询用户控制权限 - * - * @return - */ - @Operation(summary = "查询用户控制权限") - @PostMapping(value = "getControllerListByUserId") - public Result> getControllerListByUserId() { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取当前用户失败!"); - } - List list = controlService.findControlByUserId(user.getId()); - return Result.succeed(list); - } - - /** - * 订阅机库飞机Socke时候用的token - * - * @return - */ - @Operation(summary = "订阅机库飞机Socke时候用的token ") - @PostMapping(value = "getSubscriptionToken") - public Result getSubscriptionToken() { - String token = ""; - StationResult result = stationWebService.token(); - if(result != null && result.get("data") != null){ - Object oData = result.get("data"); - String dataStr = JSONObject.toJSONString(oData); - if(dataStr.contains("\\")){ - dataStr = dataStr.replace("\\", ""); - if(dataStr.startsWith("\"")){ - dataStr = dataStr.substring(1); - } - if(dataStr.endsWith("\"")){ - dataStr = dataStr.substring(0, dataStr.length() - 1); - } - } - JSONObject jsonObject = JSONObject.parseObject(dataStr); - if(jsonObject.containsKey("result")){ - token = jsonObject.getString("result"); - } - } - return Result.succeed(token, "操作成功!"); - } - - @GetMapping(value = "mobile/{mobile}") - @Operation(summary = "根据手机号查询文旅用户") - public SysUser findByMobile(@PathVariable("mobile") String mobile) { - log.info("根据手机号获取文旅用户参数是:{}",mobile); - SysUser user= tourismUserService.findByMobile(mobile); - log.info("返回用户信息是:{}", JSON.toJSONString(user)); - return user; - } - - @Operation(summary = "新增文旅用户") - @PostMapping("createUser") - Boolean createTourismUser(@RequestBody CreatTourosmUserDTO creatTourosmUserReq){ - return tourismUserService.createTourismUser(creatTourosmUserReq); - } - -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/WayPointController.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/WayPointController.java deleted file mode 100644 index cf40c4fa..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/controller/WayPointController.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.zlt.tourism.api.controller; - -import cn.hutool.core.bean.BeanUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.zlt.tourism.api.vo.WayPointVO; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.route.RockerRouteQuery; -import com.zlt.tourism.dto.route.WayPointDTO; -import com.zlt.tourism.dto.route.WayPointListQuery; -import com.zlt.tourism.manager.RouteManager; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.Valid; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * 航点管理 - * - * @author caiji - * @version 1.0 - * @description 航点管理 - * @create 2024/8/7 11:16 - **/ -@Schema(name = "航点管理") -@Slf4j -@RestController -@RequestMapping("/tourism/open/api/way/point/") -public class WayPointController { - - /** - * 航线业务类 - */ - @Autowired - private RouteManager routeManager; - - /** - * 获取航点列表 - * - * @return - */ - @Operation(summary = "获取航点列表") - @PostMapping(value = "list") - public Result> getList(@Valid @RequestBody WayPointListQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取当前用户失败!"); - } - List dataList = new ArrayList<>(); - List list = routeManager.getPointList(query); - if (list != null && list.size() > 0) { - WayPointVO model; - for (WayPointDTO item : list) { - model = new WayPointVO(); - BeanUtil.copyProperties(item, model); - dataList.add(model); - } - } - return Result.succeed(dataList); - } - - /** - * 获取摇臂位置列表 - * - * @return - */ - @Operation(summary = "获取摇臂位置列表") - @PostMapping(value = "rockerRoute") - public StationResult getRockerRouteList(@Valid @RequestBody RockerRouteQuery query, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return StationResult.error(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return StationResult.error("获取当前用户失败!"); - } - StationResult result = routeManager.getRockerRouteList(query); - return result; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoDownTagDTO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoDownTagDTO.java deleted file mode 100644 index 82631dd7..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoDownTagDTO.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.zlt.tourism.api.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description = "双轴视频上轴标记视图实体类") -public class BiaxVideoDownTagDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - private Long id; - - /** - * 双轴视频ID - */ - @Schema(description = "双轴视频ID") - private Long biaxVideoId; - - /** - * 标记位置 - */ - @Schema(description = "标记位置") - private String tagPosition; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description = "排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoUpTagDTO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoUpTagDTO.java deleted file mode 100644 index 7c3ba631..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/BiaxVideoUpTagDTO.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.zlt.tourism.api.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description = "双轴视频上轴标记视图实体类") -public class BiaxVideoUpTagDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - private Long id; - - /** - * 双轴视频ID - */ - @Schema(description = "双轴视频ID") - private Long biaxVideoId; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; - - /** - * 标记位置 - */ - @Schema(description = "标记位置") - private String tagPosition; - - /** - * 排序号 - */ - @Schema(description = "排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteAddDTO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteAddDTO.java deleted file mode 100644 index 67cd809d..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteAddDTO.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.api.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 我的收藏新增实体类 - * - * @author caiji - * @version 1.0 - * @description 我的收藏新增实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "我的收藏新增实体类") -public class MyFavoriteAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID - */ - @Schema(description = "景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteDeleteDTO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteDeleteDTO.java deleted file mode 100644 index e2ef044e..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/MyFavoriteDeleteDTO.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.api.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 我的收藏删除实体类 - * - * @author caiji - * @version 1.0 - * @description 我的收藏删除实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "我的收藏删除实体类") -public class MyFavoriteDeleteDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID - */ - @Schema(description = "景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/PhoneMobileCodeDTO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/PhoneMobileCodeDTO.java deleted file mode 100644 index 8117da50..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/dto/PhoneMobileCodeDTO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.api.dto; - -import com.zlt.tourism.annotation.ValidPhoneNumber; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * @Author: duzhichao - * @CreateTime: 2024-09-27 14:24 - * @Description: 手机号获取验证码 - */ -@Data -public class PhoneMobileCodeDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - @Schema(description = "手机号") - @NotNull(message = "手机号不能为空!!!!!!") - @ValidPhoneNumber - private String mobile; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/CoordinateListQuery.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/CoordinateListQuery.java deleted file mode 100644 index b8b723b8..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/CoordinateListQuery.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.api.query; - -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:34 - **/ -@Schema(description = "获取景点坐标列表查询类") -@Data -public class CoordinateListQuery implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 坐标类型(1:景点,2:双轴视频,3:全景照片) - */ - @Schema(description = "坐标类型(1:景点,2:双轴视频,3:全景照片)") - private String coordinateType; - - /** - * 经度 - */ - @Schema(description = "经度") - /*@NotBlank(message = "经度不能为空")*/ - private String longitude; - - /** - * 纬度 - */ - @Schema(description = "纬度") - /*@NotBlank(message = "纬度不能为空")*/ - private String latitude; - -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/GetByIdQuery.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/GetByIdQuery.java deleted file mode 100644 index f57b4f46..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/GetByIdQuery.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.api.query; - -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/7/17 13:59 - **/ -@Schema(description = "根据主键查询实体查询类") -@Data -public class GetByIdQuery implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - @NotBlank(message = "主键ID不能为空") - private String id; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/MyFavoritePageQuery.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/MyFavoritePageQuery.java deleted file mode 100644 index 5a8108dd..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/MyFavoritePageQuery.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.api.query; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 我的收藏分页查询类 - * - * @author caiji - * @version 1.0 - * @description 我的收藏分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description = "我的收藏分页查询类") -@Data -public class MyFavoritePageQuery extends BasePage { - - /** - * 景点名称 - */ - @Schema(description = "景点名称") - private String scenicSpotName; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/ScenicSpotPageQuery.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/ScenicSpotPageQuery.java deleted file mode 100644 index 903b2f97..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/ScenicSpotPageQuery.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.api.query; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 景点分页查询类 - * - * @author caiji - * @version 1.0 - * @description 景点分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description = "景点分页查询类") -@Data -public class ScenicSpotPageQuery extends BasePage { - - /** - * 景点名称 - */ - @Schema(description = "景点名称") - private String scenicSpotName; - - /** - * 查询类型(1:热门景点,2:热门标签,3:我的收藏) - */ - @Schema(description = "查询类型(1:热门景点,2:热门标签,3:我的收藏)") - private String queryType; - - /** - * 热门标签编码 - */ - @Schema(description = "热门标签编码") - private String tagCode; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/TourismOrderQuery.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/TourismOrderQuery.java deleted file mode 100644 index dc97d288..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/query/TourismOrderQuery.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.zlt.tourism.api.query; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-17 21:14 - * @Description: 请求订单参数 - */ -@Data -public class TourismOrderQuery implements Serializable { - - private static final long serialVersionUID = 1L; - - - @Schema(description = "机库sn") - private String deviceSn; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoBaseVO.java deleted file mode 100644 index a9b6f6b9..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoBaseVO.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.zlt.tourism.api.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -/** - * 双轴视频分页视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频分页视图实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "双轴视频分页视图实体类") -public class BiaxVideoBaseVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 双轴视频名称 - */ - @Schema(description = "双轴视频名称") - private String biaxVideoName; - - /** - * 视频URL - */ - @Schema(description = "视频URL") - private String fileUrl; - - /** - * 视频时长 - */ - @Schema(description = "视频时长") - private String videoMins; - - /** - * 航线ID - */ - @Schema(description = "航线ID") - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 上轴标记点位置 - */ - @Schema(description = "上轴标记点位置") - private String upTagPosition; - - /** - * 上轴标记列表 - */ - @Schema(description = "上轴标记列表") - private List upTagList; - - /** - * 下轴轴标记列表 - */ - @Schema(description = "下轴轴标记列表") - private List downTagList; - - /** - * 特色景观列表 - */ - @Schema(description = "特色景观列表") - private List featureTagList; - - /** - * 更新时间 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoDownTagVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoDownTagVO.java deleted file mode 100644 index 834eb9e1..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoDownTagVO.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.api.vo; - -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; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description = "双轴视频上轴标记视图实体类") -public class BiaxVideoDownTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记位置 - */ - @Schema(description = "标记位置") - private String tagPosition; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description = "排序号") - @JsonSerialize(using = ToStringSerializer.class) - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoFeatureTagBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoFeatureTagBaseVO.java deleted file mode 100644 index 970ea17c..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoFeatureTagBaseVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.zlt.tourism.api.vo; - -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; - -/** - * 双轴视频特色景观标签视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频特色景观标签视图实体类 - * @create 2024/7/24 15:34 - **/ -@Data -@Schema(description = "双轴视频特色景观标签视图实体类") -public class BiaxVideoFeatureTagBaseVO { - - /** - * 双轴视频ID - */ - @Schema(description = "双轴视频ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long biaxVideoId; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoListVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoListVO.java deleted file mode 100644 index 3f78bc65..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoListVO.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.zlt.tourism.api.vo; - -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.math.BigDecimal; - -/** - * 双轴视频列表视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频列表视图实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "双轴视频列表视图实体类") -public class BiaxVideoListVO extends BiaxVideoBaseVO { - - private static final long serialVersionUID = 1L; - - /** - * 景点照片URL - */ - @Schema(description = "景点照片URL") - private String photoUrl; - - /** - * 经度 - */ - @Schema(description = "经度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description = "纬度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal latitude; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoUpTagVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoUpTagVO.java deleted file mode 100644 index 31b656bd..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/BiaxVideoUpTagVO.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.api.vo; - -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; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description = "双轴视频上轴标记视图实体类") -public class BiaxVideoUpTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description = "排序号") - @JsonSerialize(using = ToStringSerializer.class) - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/CoordinateListVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/CoordinateListVO.java deleted file mode 100644 index b61184db..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/CoordinateListVO.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.zlt.tourism.api.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 坐标列表视图实体类 - * - * @author caiji - * @version 1.0 - * @description 坐标列表视图实体类 - * @create 2024/7/24 16:02 - **/ -@Data -@Schema(description = "坐标列表视图实体类") -public class CoordinateListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点列表 - */ - @Schema(description = "景点列表") - private List scenicSpotList; - - /** - * 双轴视频列表 - */ - @Schema(description = "双轴视频列表") - private List biaxVideoList; - - /** - * 全景照片列表 - */ - @Schema(description = "全景照片列表") - private List panoramaPhotoList; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/IndustryVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/IndustryVO.java deleted file mode 100644 index 85701604..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/IndustryVO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.zlt.tourism.api.vo; - -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 IndustryVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 行业类型 - */ - @Schema(description = "行业类型") - private String industryType; - - /** - * 名称 - */ - @Schema(description = "名称") - private String name; - - /** - * 编码 - */ - @Schema(description = "编码") - private String code; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/MyFavoriteScenicSpotPageVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/MyFavoriteScenicSpotPageVO.java deleted file mode 100644 index 4282165a..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/MyFavoriteScenicSpotPageVO.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.zlt.tourism.api.vo; - -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.List; - -/** - * 我收藏的景点视分页图实体类 - * - * @author caiji - * @version 1.0 - * @description 我收藏的景点视分页图实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description = "我收藏的景点视分页图实体类") -@Data -public class MyFavoriteScenicSpotPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description = "景点名称") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description = "景点等级") - private String scenicSpotGrade; - - /** - * 地址-省份 - */ - @Schema(description = "地址-省份") - private String province; - - /** - * 地址-地市 - */ - @Schema(description = "地址-地市") - private String city; - - /** - * 地址-景区 - */ - @Schema(description = "地址-景区") - private String scenicArea; - - /** - * 地址 - */ - @Schema(description = "地址") - private String scenicSpotAddress; - - /** - * 标签名称集合 - */ - @Schema(description = "标签名称集合") - private List tagNameList; - - /** - * 热度 - */ - @Schema(description = "热度") - private Integer hotScore; - - /** - * 精选图片集合 - */ - @Schema(description = "精选图片集合") - private List featuredPhotoList; - - /** - * 简介 - */ - @Schema(description = "简介") - private String scenicSpotAbout; - - /** - * 关联设备SN - */ - @Schema(description = "关联设备SN") - private String deviceSn; - - /** - * 语音讲解URL - */ - @Schema(description = "语音讲解URL") - private String introduceAudioUrl; - - /** - * 虚拟飞行图片URL - */ - @Schema(description = "虚拟飞行图片URL") - private String virtualFlyPhotoUrl; - - /** - * 经度 - */ - @Schema(description = "经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description = "纬度") - private BigDecimal latitude; - - /** - * 高度 - */ - @Schema(description = "高度") - private BigDecimal altitude; - - /** - * 是否已收藏 - */ - @Schema(description = "是否已收藏") - private Integer isFavourite; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PairedDeviceVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PairedDeviceVO.java deleted file mode 100644 index 66d837f6..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PairedDeviceVO.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.zlt.tourism.api.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 配对设备实体类 - * - * @author caiji - * @version 1.0 - * @description 配对设备实体类 - * @create 2024/7/30 8:23 - **/ -@Data -@Schema(description = "配对设备实体类") -public class PairedDeviceVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 关联设备SN - */ - @Schema(description = "关联设备SN") - private String deviceSn; - - /** - * 推流地址 - */ - @Schema(description = "推流地址") - private List rtmpUrlList; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoBaseVO.java deleted file mode 100644 index ba0054d8..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoBaseVO.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.zlt.tourism.api.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -/** - * 全景照片图实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片图实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "全景照片图实体类") -public class PanoramaPhotoBaseVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 图片名称 - */ - @Schema(description = "图片名称") - private String photoName; - - /** - * 标签列表 - */ - @Schema(description = "标签列表") - private List tagList; - - /** - * 特色景观列表 - */ - @Schema(description = "特色景观列表") - private List featureTagList; - - /** - * 更新时间 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoFeatureTagBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoFeatureTagBaseVO.java deleted file mode 100644 index 009c4f77..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoFeatureTagBaseVO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.api.vo; - -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; - -/** - * 全景照片特色景观标签视图实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片特色景观标签视图实体类 - * @create 2024/7/24 15:34 - **/ -@Data -@Schema(description = "全景照片特色景观标签视图实体类") -public class PanoramaPhotoFeatureTagBaseVO { - - /** - * 全景照片ID - */ - @Schema(description = "全景照片ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long panoramaPhotoId; - - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoListVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoListVO.java deleted file mode 100644 index b4f1ef2a..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoListVO.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.zlt.tourism.api.vo; - -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.math.BigDecimal; - -/** - * 全景照片实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "全景照片实体类") -public class PanoramaPhotoListVO extends PanoramaPhotoBaseVO { - - private static final long serialVersionUID = 1L; - - /** - * 景点照片URL - */ - @Schema(description = "景点照片URL") - private String photoUrl; - - /** - * 经度 - */ - @Schema(description = "经度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description = "纬度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal latitude; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoTagVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoTagVO.java deleted file mode 100644 index 4e36d909..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PanoramaPhotoTagVO.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.zlt.tourism.api.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 全景照片标记实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片标记实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description = "全景照片标记实体类") -public class PanoramaPhotoTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记名称 - */ - @Schema(description = "标记名称") - private String tagName; - - /** - * 照片名称 - */ - @Schema(description = "照片名称") - private String photoName; - - /** - * 附件URL - */ - @Schema(description = "附件URL") - private String fileUrl; - -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PopularTagListVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PopularTagListVO.java deleted file mode 100644 index 1fa3247f..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/PopularTagListVO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.api.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 热门标签列表实体类 - * - * @author caiji - * @version 1.0 - * @description 热门标签列表实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description = "热门标签列表实体类") -public class PopularTagListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description = "标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description = "标签名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/RouteBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/RouteBaseVO.java deleted file mode 100644 index 14ce044b..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/RouteBaseVO.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.zlt.tourism.api.vo; - -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.util.List; - -/** - * 航线实体类 - * - * @author caiji - * @version 1.0 - * @description 航线实体类 - * @create 2024/7/18 15:40 - **/ -@Schema(description = "航线实体类") -@Data -public class RouteBaseVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 航线ID - */ - @Schema(description = "航线ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - - /** - * 航点编码 - */ - @Schema(description = "航点编码") - private String code; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 航线被执行次数 - */ - @Schema(description = "航线被执行次数") - @JsonSerialize(using = ToStringSerializer.class) - private Integer routeRunNum; - - /** - * 航线视频URL - */ - @Schema(description = "航线视频URL") - private String fileUrl; - - /** - * 航点ID集合 - */ - @Schema(description = "航点ID集合") - private List wayPointIdList; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/ScenicSpotPageVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/ScenicSpotPageVO.java deleted file mode 100644 index 9b16e716..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/ScenicSpotPageVO.java +++ /dev/null @@ -1,181 +0,0 @@ -package com.zlt.tourism.api.vo; - -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.List; - -/** - * 景点视分页图实体类 - * - * @author caiji - * @version 1.0 - * @description 景点视分页图实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description = "景点视分页图实体类") -@Data -public class ScenicSpotPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description = "主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description = "景点名称") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description = "景点等级") - private String scenicSpotGrade; - - /** - * 地址-省份 - */ - @Schema(description = "地址-省份") - private String province; - - /** - * 地址-地市 - */ - @Schema(description = "地址-地市") - private String city; - - /** - * 地址-景区 - */ - @Schema(description = "地址-景区") - private String scenicArea; - - /** - * 地址 - */ - @Schema(description = "地址") - private String scenicSpotAddress; - - /** - * 标签名称集合 - */ - @Schema(description = "标签名称集合") - private List tagNameList; - - /** - * 热度 - */ - @Schema(description = "热度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal hotScore; - - /** - * 精选图片集合 - */ - @Schema(description = "精选图片集合") - private List featuredPhotoList; - - /** - * 双轴视频集合 - */ - @Schema(description = "双轴视频集合") - private List biaxVideoList; - - /** - * 全景照片集合 - */ - @Schema(description = "全景照片集合") - private List panoramaPhotoList; - - /** - * 精选航线 - */ - @Schema(description = "精选航线") - private List routeList; - - /** - * 简介 - */ - @Schema(description = "简介") - private String scenicSpotAbout; - - /** - * 关联设备SN - */ - @Schema(description = "关联设备SN") - private String deviceSn; - - /** - * 推流地址 - */ - @Schema(description = "推流地址") - private List rtmpUrlList; - - /** - * 语音介绍URL - */ - @Schema(description = "语音介绍URL") - private String introduceAudioUrl; - - /** - * 虚拟浏览入口视频URL - */ - @Schema(description = "虚拟浏览入口视频URL") - private String virtualFlyPhotoUrl; - - /** - * 卡片图URL - */ - @Schema(description = "卡片图URL") - private String photoUrl; - - /** - * 经度 - */ - @Schema(description = "经度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description = "纬度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal latitude; - - /** - * 高度 - */ - @Schema(description = "高度") - @JsonSerialize(using = ToStringSerializer.class) - private BigDecimal altitude; - - /** - * 是否已收藏(1:是,0:否) - */ - @Schema(description = "是否已收藏(1:是,0:否)") - @JsonSerialize(using = ToStringSerializer.class) - private Integer isFavourite; - - /** - * 配对设备列表 - */ - @Schema(description = "配对设备列表") - private List pairedDeviceList; - - /** - * 机库最新照片 - */ - @Schema(description = "机库最新照片") - private String devicePhotoUrl; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/SysUserVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/SysUserVO.java deleted file mode 100644 index 9587afd9..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/SysUserVO.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.zlt.tourism.api.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.util.List; - -/** - * 用户视图实体类 - * - * @author caiji - * @version 1.0 - * @description 用户视图实体类 - * @create 2024/7/25 13:30 - **/ -@Schema(description = "用户视图实体类") -@Data -public class SysUserVO { - - /** - * 用户ID - */ - @Schema(description = "用户头像") - private Long id; - - /** - * 用户名 - */ - @Schema(description = "用户名") - private String username; - - /** - * 用户头像URL - */ - @Schema(description = "用户头像URL") - private String avatarUrl; - - /** - * 员工姓名 - */ - @Schema(description = "员工姓名") - private String realName; - - /** - * 邮箱 - */ - @Schema(description = "邮箱") - private String email; - - /** - * 手机号 - */ - @Schema(description = "手机号") - private String mobile; - - /** - * 用户所属机构由之前的单选变成多选,一个用户可以属于多个机构 - * 机构IDs - */ - @Schema(description = "用户所属机构") - private List organizationIdList; - - /** - * 部门 id集合 - */ - @Schema(description = "部门 id集合") - private List deptIdList; - - /** - * 用户类型 :1 内部账户 2:外部账户 3:临时账户(有过期时间) - */ - @Schema(description = "用户类型") - private Integer userType; - - - /** - * 状态 0:禁用 1:正常 - */ - @Schema(description = "状态 0:正常 1:禁用") - private Integer status; - - /** - * 主播类型(1:主播,2:副播,-2:不是主播) - */ - @Schema(description = "主播类型(1:主播,2:副播,-2:不是主播)") - private Integer streamerType; - - @Schema(description = "是否设置密码 0 未设置 1 已设置") - private Integer isHasPassword; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointBaseVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointBaseVO.java deleted file mode 100644 index e943ee03..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointBaseVO.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.api.vo; - -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; - -/** - * 航点实体类 - * - * @author caiji - * @version 1.0 - * @description 航点实体类 - * @create 2024/7/18 15:40 - **/ -@Schema(description = "航点实体类") -@Data -public class WayPointBaseVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 航点ID - */ - @Schema(description = "航点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long wayPointId; - - /** - * 航点名称 - */ - @Schema(description = "航点名称") - private String wayPointName; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointVO.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointVO.java deleted file mode 100644 index 2ff3f0ee..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/api/vo/WayPointVO.java +++ /dev/null @@ -1,198 +0,0 @@ -package com.zlt.tourism.api.vo; - -import com.alibaba.fastjson.JSONArray; -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; - -/** - * 航点实体类 - * - * @author caiji - * @version 1.0 - * @description 航点实体类 - * @create 2024/7/19 14:48 - **/ -@Schema(description = "航点实体类") -@Data -public class WayPointVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 航点ID - */ - @Schema(description = "航点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long pointId; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 航线ID - */ - @Schema(description = "航线ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - - /** - * 航点类型 - */ - @Schema(description = "航点类型") - @JsonSerialize(using = ToStringSerializer.class) - private Integer type; - - /** - * 航点序号 - */ - @Schema(description = "航点序号") - @JsonSerialize(using = ToStringSerializer.class) - private Integer index; - - /** - * 设备经度 - */ - @Schema(description = "设备经度") - private String longitude; - - /** - * 航点纬度 - */ - @Schema(description = "航点纬度") - private String latitude; - - /** - * 航点高度 - */ - @Schema(description = "航点高度") - private String altitude; - - /** - * 航点方向 - */ - @Schema(description = "航点方向") - @JsonSerialize(using = ToStringSerializer.class) - 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:安全点") - @JsonSerialize(using = ToStringSerializer.class) - private Integer propertyType; - - /** - * 1 定点转弯 2 协调转弯 - */ - @Schema(description = "1 定点转弯 2 协调转弯") - @JsonSerialize(using = ToStringSerializer.class) - private Integer turnType; - - /** - * 协调转弯半径 - */ - @Schema(description = "协调转弯半径") - @JsonSerialize(using = ToStringSerializer.class) - 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 = "拍照照片数") - @JsonSerialize(using = ToStringSerializer.class) - private Integer photo; - - /** - * 航线类型 - */ - @Schema(description = "航线类型") - @JsonSerialize(using = ToStringSerializer.class) - private Integer routeType; - - /** - * 航点动作,0:无,1:悬停,2:返航 - */ - @Schema(description = "航点动作,0:无,1:悬停,2:返航") - @JsonSerialize(using = ToStringSerializer.class) - private Integer droneActionType; - - /** - * 航点ID - */ - @Schema(description = "航点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Integer wayPointId; -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java deleted file mode 100644 index cf8f9965..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.zlt.tourism.api.vo.BiaxVideoBaseVO; -import com.zlt.tourism.api.vo.BiaxVideoDownTagVO; -import com.zlt.tourism.api.vo.BiaxVideoUpTagVO; -import com.zlt.tourism.dto.FileInfoDto; -import com.zlt.tourism.model.tourism.BiaxVideoDownTagEntity; -import com.zlt.tourism.model.tourism.BiaxVideoEntity; -import com.zlt.tourism.model.tourism.BiaxVideoFeatureTagEntity; -import com.zlt.tourism.model.tourism.BiaxVideoUpTagEntity; -import com.zlt.tourism.service.*; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 双轴视频业务类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频业务类 - * @create 2024/7/18 16:15 - **/ -@Slf4j -@Service -public class BiaxVideoManager { - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoService biaxVideoService; - - /** - * 双轴视频上轴标记业务类 - */ - @Autowired - private BiaxVideoUpTagService upTagService; - - /** - * 双轴视频下轴标记业务类 - */ - @Autowired - private BiaxVideoDownTagService downTagService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 双轴视频特色景观标签业务类 - */ - @Autowired - private BiaxVideoFeatureTagService featureTagService; - - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - public BiaxVideoBaseVO getEntity(Long id) { - BiaxVideoBaseVO model = new BiaxVideoBaseVO(); - if (id != null) { - BiaxVideoEntity entity = biaxVideoService.getById(id); - if (entity != null && entity.getId() != null) { - BeanUtil.copyProperties(entity, model); - if(StrUtil.isNotEmpty(entity.getVideoFile())){ - JSONObject json = JSONObject.parseObject(entity.getVideoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setFileUrl(fileInfoDto.getUrl()); - } - List upTagList = getBiaxVideoUpTagList(id); - model.setUpTagList(upTagList); - List downTagList = getBiaxVideoDownTagList(id); - model.setDownTagList(downTagList); - List featureTagNameList = getBiaxVideoFeatureTagList(id); - model.setFeatureTagList(featureTagNameList); - } - } - return model; - } - - /** - * 根据双轴视频ID获取下轴标签列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - public List getBiaxVideoDownTagList(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - List downTagList = downTagService.getByBiaxVideoId(biaxVideoId); - if (downTagList != null && downTagList.size() > 0) { - BiaxVideoDownTagVO model; - for (BiaxVideoDownTagEntity item : downTagList) { - model = new BiaxVideoDownTagVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - } - return list; - } - - /** - * 根据双轴视频ID获取上轴轴标签列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - public List getBiaxVideoUpTagList(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - List downTagList = upTagService.getListByBiaxVideoId(biaxVideoId); - if (downTagList != null && downTagList.size() > 0) { - BiaxVideoUpTagVO model; - for (BiaxVideoUpTagEntity item : downTagList) { - model = new BiaxVideoUpTagVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - } - return list; - } - - /** - * 根据双轴视频ID获取特色景观标签列表 - * - * @param biaxVideoId 双轴视频ID - * @return - */ - public List getBiaxVideoFeatureTagList(Long biaxVideoId) { - List list = new ArrayList<>(); - if (biaxVideoId != null) { - List featureTagList = featureTagService.getListByBiaxVideoId(biaxVideoId); - if (featureTagList != null && featureTagList.size() > 0) { - List tagCodeList = featureTagList.stream().filter(o -> o.getTagCode() != null).map(BiaxVideoFeatureTagEntity::getTagCode).collect(Collectors.toList()); - if (tagCodeList != null && tagCodeList.size() > 0) { - list = tagService.getNameListByCodeList(tagCodeList); - } - } - } - return list; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java deleted file mode 100644 index 26031b5d..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.zlt.tourism.api.vo.PanoramaPhotoBaseVO; -import com.zlt.tourism.api.vo.PanoramaPhotoTagVO; -import com.zlt.tourism.dto.FileInfoDto; -import com.zlt.tourism.model.tourism.PanoramaPhotoEntity; -import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity; -import com.zlt.tourism.model.tourism.PanoramaPhotoTagEntity; -import com.zlt.tourism.service.PanoramaPhotoFeatureTagService; -import com.zlt.tourism.service.PanoramaPhotoService; -import com.zlt.tourism.service.PanoramaPhotoTagService; -import com.zlt.tourism.service.TourismTagService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 全景照片业务类 - * - * @author caiji - * @version 1.0 - * @description 全景照片业务类 - * @create 2024/7/18 17:37 - **/ -@Slf4j -@Service -public class PanoramaPhotoManager { - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoService panoramaPhotoService; - - /** - * 全景照片特色景观标签业务类 - */ - @Autowired - private PanoramaPhotoFeatureTagService panoramaPhotoFeatureTagService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 全景照片标记业务类 - */ - @Autowired - private PanoramaPhotoTagService panoramaPhotoTagService; - - /** - * 根据主键ID获取记录 - * - * @param id 主键ID - * @return - */ - public PanoramaPhotoBaseVO getEntity(Long id) { - PanoramaPhotoBaseVO model = new PanoramaPhotoBaseVO(); - if (id != null) { - PanoramaPhotoEntity entity = panoramaPhotoService.getById(id); - if (entity != null && entity.getId() != null) { - BeanUtil.copyProperties(entity, model); - List featureTagNameList = getPanoramaPhotoFeatureTagList(id); - model.setFeatureTagList(featureTagNameList); - List tagList = getPanoramaPhotoTagList(id); - model.setTagList(tagList); - } - } - return model; - } - - /** - * 获取标记列表 - * @param panoramaPhotoId 全景照片ID - * @return - */ - public List getPanoramaPhotoTagList(Long panoramaPhotoId) { - List list = new ArrayList<>(); - List tagList = panoramaPhotoTagService.getListByPanoramaPhotoId(panoramaPhotoId); - if(tagList != null && tagList.size() > 0){ - PanoramaPhotoTagVO model; - for (PanoramaPhotoTagEntity item : tagList) { - model = new PanoramaPhotoTagVO(); - BeanUtil.copyProperties(item, model); - if(StrUtil.isNotEmpty(item.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(item.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setFileUrl(fileInfoDto.getUrl()); - } - list.add(model); - } - } - return list; - } - - /** - * 根据全景图片ID获取特色景观标签列表 - * - * @param panoramaPhotoId 全景照片ID - * @return - */ - public List getPanoramaPhotoFeatureTagList(Long panoramaPhotoId) { - List list = new ArrayList<>(); - if (panoramaPhotoId != null) { - List featureTagList = panoramaPhotoFeatureTagService.getListByPanoramaPhotoId(panoramaPhotoId); - if (featureTagList != null && featureTagList.size() > 0) { - List tagCodeList = featureTagList.stream().filter(o -> o.getTagCode() != null).map(PanoramaPhotoFeatureTagEntity::getTagCode).collect(Collectors.toList()); - if (tagCodeList != null && tagCodeList.size() > 0) { - list = tagService.getNameListByCodeList(tagCodeList); - } - } - } - return list; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java b/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java deleted file mode 100644 index 71412b6a..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java +++ /dev/null @@ -1,873 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.utils.RSAUtil; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.api.dto.BiaxVideoDownTagDTO; -import com.zlt.tourism.api.dto.BiaxVideoUpTagDTO; -import com.zlt.tourism.api.query.MyFavoritePageQuery; -import com.zlt.tourism.api.query.ScenicSpotPageQuery; -import com.zlt.tourism.api.vo.*; -import com.zlt.tourism.dto.FileInfoDto; -import com.zlt.tourism.dto.mission.MissionVideoDTO; -import com.zlt.tourism.dto.route.WayPointDTO; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.model.iking.IkRouteEntity; -import com.zlt.tourism.model.iking.MissionImageEntity; -import com.zlt.tourism.model.tourism.*; -import com.zlt.tourism.service.*; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 景点业务类 - * - * @author caiji - * @version 1.0 - * @description 景点业务类 - * @create 2024/7/19 11:43 - **/ -@Slf4j -@Service -public class ScenicSpotManager { - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 景点标签业务类 - */ - @Autowired - private ScenicSpotTagService scenicSpotTagService; - - /** - * 精选图片业务类 - */ - @Autowired - private FeaturedPhotoService featuredPhotoService; - - /** - * 景点设备关系业务类 - */ - @Autowired - private ScenicSpotDeviceService scenicSpotDeviceService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 精选航线业务类 - */ - @Autowired - private FeaturedRouteService featuredRouteService; - - /** - * 我的收藏业务类 - */ - @Autowired - private MyFavoriteService myFavoriteService; - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoService biaxVideoService; - - /** - * 上轴标记业务类 - */ - @Autowired - private BiaxVideoUpTagService upTagService; - - /** - * 下轴标记业务类 - */ - @Autowired - private BiaxVideoDownTagService downTagService; - - /** - * 双轴视频特色景观标签业务类 - */ - @Autowired - private BiaxVideoFeatureTagService biaxVideoFeatureTagService; - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoService panoramaPhotoService; - - /** - * 全景照片标签业务类 - */ - @Autowired - private PanoramaPhotoTagService panoramaPhotoTagService; - - /** - * 航线业务类 - */ - @Resource - private RouteManager routeManager; - - /** - * 视频业务类 - */ - @Resource - private MissionManager missionVideoManager; - - /** - * 全景照片特色景观标签业务类 - */ - @Autowired - private PanoramaPhotoFeatureTagService panoramaPhotoFeatureTagService; - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoManager biaxVideoManager; - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoManager panoramaPhotoManager; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService ikDeviceService; - - /** - * 航线业务类 - */ - @Autowired - private IkRouteService routeService; - - /** - * 任务业务类 - */ - @Autowired - private MissionManager missionManager; - - /** - * 任务图片业务类 - */ - @Autowired - private MissionImageService missionImageService; - - /** - * 获取分页 - * - * @param query 查询条件 - * @param userId 实体 - * @return - */ - public PageInfo getPageList(ScenicSpotPageQuery query, Long userId) { - Integer queryType = 1; - if (StrUtil.isNotEmpty(query.getQueryType())) { - queryType = Integer.parseInt(query.getQueryType()); - } - Map queryMap = new HashMap<>(2); - if (StrUtil.isNotEmpty(query.getScenicSpotName())) { - queryMap.put("scenicSpotName", query.getScenicSpotName()); - } - PageInfo scenicSpotPageList = new PageInfo(); - if (queryType == 2) { - if(StrUtil.isNotEmpty(query.getTagCode())){ - queryMap.put("tagCode", query.getTagCode()); - } - scenicSpotPageList = scenicSpotService.getPopularTagPageList(query.getPager(), queryMap); - } else if (queryType == 3) { - queryMap.put("userId", userId); - scenicSpotPageList = scenicSpotService.getMyFavoritePageList(query.getPager(), queryMap); - } else { - scenicSpotPageList = scenicSpotService.getPopularScenicSpotPageList(query.getPager(), queryMap); - } - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(scenicSpotPageList, pageList); - if (scenicSpotPageList.getList() != null && scenicSpotPageList.getList().size() > 0) { - List list = scenicSpotPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (ScenicSpotEntity item : list) { - ScenicSpotPageVO model = doToPageVO(item, userId); - voList.add(model); - } - pageList.setList(voList); - } - return pageList; - } - - /** - * 实体转换 - * - * @param entity 实体 - * @param userId 实体 - * @return - */ - private ScenicSpotPageVO doToPageVO(ScenicSpotEntity entity, Long userId) { - ScenicSpotPageVO model = new ScenicSpotPageVO(); - BeanUtil.copyProperties(entity, model); - if(StrUtil.isNotEmpty(entity.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(entity.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setPhotoUrl(fileInfoDto.getUrl()); - } - if(StrUtil.isNotEmpty(entity.getIntroduceAudioFile())){ - JSONObject json = JSONObject.parseObject(entity.getIntroduceAudioFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setIntroduceAudioUrl(fileInfoDto.getUrl()); - } - if(StrUtil.isNotEmpty(entity.getVirtualFlyPhotoFile())){ - JSONObject json = JSONObject.parseObject(entity.getVirtualFlyPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setVirtualFlyPhotoUrl(fileInfoDto.getUrl()); - } - List scenicSpotDeviceList = scenicSpotDeviceService.getListByScenicSpotId(entity.getId()); - if (scenicSpotDeviceList != null && scenicSpotDeviceList.size() > 0) { - model.setDeviceSn(scenicSpotDeviceList.get(0).getDeviceSn()); - } - List tagNameList = new ArrayList<>(); - List scenicSpotTagList = scenicSpotTagService.getListByScenicSpotId(entity.getId()); - if (scenicSpotTagList != null && scenicSpotTagList.size() > 0) { - List tagCodeList = scenicSpotTagList.stream().map(ScenicSpotTagEntity::getTagCode).collect(Collectors.toList()); - List tagList = tagService.getListByCodeList(tagCodeList); - if (tagList != null && tagList.size() > 0) { - tagNameList = tagList.stream().map(TourismTagEntity::getTagName).collect(Collectors.toList()); - } - } - model.setTagNameList(tagNameList); - List featuredPhotoUrlList = new ArrayList<>(); - List featuredPhotoList = featuredPhotoService.getListByScenicSpotId(entity.getId()); - if (featuredPhotoList != null && featuredPhotoList.size() > 0) { - for (FeaturedPhotoEntity photoItem : featuredPhotoList) { - if(StrUtil.isNotEmpty(photoItem.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(photoItem.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - featuredPhotoUrlList.add(fileInfoDto.getUrl()); - } - } - } - model.setFeaturedPhotoList(featuredPhotoUrlList); - List routeVOList = new ArrayList<>(); - List routeList = featuredRouteService.getListByScenicSpotId(entity.getId()); - if (routeList != null && routeList.size() > 0) { - RouteBaseVO routeBaseVO; - for (FeaturedRouteEntity item : routeList) { - routeBaseVO = new RouteBaseVO(); - BeanUtil.copyProperties(item, routeBaseVO); - if(StrUtil.isNotEmpty(item.getRouteFile())){ - JSONObject json = JSONObject.parseObject(item.getRouteFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - routeBaseVO.setFileUrl(fileInfoDto.getUrl()); - } - // if(StrUtil.isEmpty(item.getRouteName())){ - IkRouteEntity routeDTO = routeService.getById(item.getRouteId()); - if (routeDTO != null && routeDTO.getRouteRunNum() != null) { - /* if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - if(routeName.contains("_")){ - routeName = routeName.substring(0, routeName.lastIndexOf("_")); - } - routeBaseVO.setRouteName(routeName); - }*/ - routeBaseVO.setRouteRunNum(routeDTO.getRouteRunNum()); - } - // } - List wayPointIdList = new ArrayList<>(); - List wayPointDTOList = routeManager.getPointListByRoutId(item.getRouteId()); - if (wayPointDTOList != null && wayPointDTOList.size() > 0) { - List wayPointIdTempList = wayPointDTOList.stream().filter(o -> o.getPointId() != null).map(WayPointDTO::getPointId).collect(Collectors.toList()); - if(wayPointIdTempList != null && wayPointIdTempList.size() > 0){ - for (Long wayPointItem :wayPointIdTempList) { - wayPointIdList.add(wayPointItem.toString()); - } - } - List wayPointCodeList = wayPointDTOList.stream().filter(o -> StrUtil.isNotEmpty(o.getCode())).map(WayPointDTO::getCode).collect(Collectors.toList()); - if(wayPointCodeList != null && wayPointCodeList.size() > 0){ - routeBaseVO.setCode(wayPointCodeList.get(0)); - } - } - routeBaseVO.setWayPointIdList(wayPointIdList); - routeVOList.add(routeBaseVO); - } - } - model.setRouteList(routeVOList); - List biaxVideoList = new ArrayList<>(); - List biaxVideoEntityList = biaxVideoService.getListByScenicSpotId(entity.getId()); - if (biaxVideoEntityList != null && biaxVideoEntityList.size() > 0) { - List biaxVideoIdList = biaxVideoEntityList.stream().map(BiaxVideoEntity::getId).collect(Collectors.toList()); - List downTagDTOList = getBiaxVideoDownTagList(biaxVideoIdList); - List upTagDTOList = getBiaxVideoUpTagList(biaxVideoIdList); - List featureTagList = getBiaxVideoFeatureTagList(biaxVideoIdList); - BiaxVideoBaseVO biaxVideoBaseVO; - for (BiaxVideoEntity item : biaxVideoEntityList) { - biaxVideoBaseVO = new BiaxVideoBaseVO(); - BeanUtil.copyProperties(item, biaxVideoBaseVO); - if(StrUtil.isNotEmpty(item.getVideoFile())){ - JSONObject json = JSONObject.parseObject(item.getVideoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - biaxVideoBaseVO.setFileUrl(fileInfoDto.getUrl()); - } - if (upTagDTOList != null && upTagDTOList.size() > 0) { - List upTagTempList = upTagDTOList.stream().filter(o -> o.getBiaxVideoId().equals(item.getId())).collect(Collectors.toList()); - if (upTagTempList != null && upTagTempList.size() > 0) { - List upTagVOList = new ArrayList<>(); - BiaxVideoUpTagVO biaxVideoUpTagVO; - for (BiaxVideoUpTagDTO biaxVideoUpTagDTO : upTagTempList) { - biaxVideoUpTagVO = new BiaxVideoUpTagVO(); - BeanUtil.copyProperties(biaxVideoUpTagDTO, biaxVideoUpTagVO); - upTagVOList.add(biaxVideoUpTagVO); - } - biaxVideoBaseVO.setUpTagList(upTagVOList); - } - } - if (downTagDTOList != null && downTagDTOList.size() > 0) { - List downTagTempList = downTagDTOList.stream().filter(o -> o.getBiaxVideoId().equals(item.getId())).collect(Collectors.toList()); - if (downTagTempList != null && downTagTempList.size() > 0) { - List biaxVideoDownTagVOList = new ArrayList<>(); - BiaxVideoDownTagVO biaxVideoDownTagVO; - for (BiaxVideoDownTagDTO biaxVideoDownTagDTO : downTagTempList) { - biaxVideoDownTagVO = new BiaxVideoDownTagVO(); - BeanUtil.copyProperties(biaxVideoDownTagDTO, biaxVideoDownTagVO); - biaxVideoDownTagVOList.add(biaxVideoDownTagVO); - } - biaxVideoBaseVO.setDownTagList(biaxVideoDownTagVOList); - } - } - if (featureTagList != null && featureTagList.size() > 0) { - List featureTagNameList = featureTagList.stream().filter(o -> o.getBiaxVideoId().equals(item.getId())).map(BiaxVideoFeatureTagBaseVO::getTagName).collect(Collectors.toList()); - biaxVideoBaseVO.setFeatureTagList(featureTagNameList); - } - if(item.getRouteId() != null && item.getRouteId() > 0){ - IkRouteEntity routeDTO = routeService.getById(item.getRouteId()); - if (routeDTO != null && routeDTO.getRouteRunNum() != null) { - if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - if(routeName.contains("_")){ - routeName = routeName.substring(0, routeName.lastIndexOf("_")); - } - biaxVideoBaseVO.setRouteName(routeName); - } - } - } - biaxVideoList.add(biaxVideoBaseVO); - } - } - model.setBiaxVideoList(biaxVideoList); - - List panoramaPhotoList = new ArrayList<>(); - List panoramaPhotoEntityList = panoramaPhotoService.getListByScenicSpotId(entity.getId()); - if (panoramaPhotoEntityList != null && panoramaPhotoEntityList.size() > 0) { - List photoIdList = panoramaPhotoEntityList.stream().map(PanoramaPhotoEntity::getId).collect(Collectors.toList()); - List tagList = panoramaPhotoTagService.getListByPanoramaPhotoIdList(photoIdList); - PanoramaPhotoBaseVO panoramaPhotoBaseVO; - List featureTagBaseList = getPanoramaPhotoFeatureTagList(photoIdList); - for (PanoramaPhotoEntity item : panoramaPhotoEntityList) { - panoramaPhotoBaseVO = new PanoramaPhotoBaseVO(); - BeanUtil.copyProperties(item, panoramaPhotoBaseVO); - List panoramaPhotoTagList = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - PanoramaPhotoTagVO panoramaPhotoTagVO; - for (PanoramaPhotoTagEntity tagItem : tagList) { - panoramaPhotoTagVO = new PanoramaPhotoTagVO(); - BeanUtil.copyProperties(tagItem, panoramaPhotoTagVO); - if(StrUtil.isNotEmpty(tagItem.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(tagItem.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - panoramaPhotoTagVO.setFileUrl(fileInfoDto.getUrl()); - } - panoramaPhotoTagList.add(panoramaPhotoTagVO); - } - } - panoramaPhotoBaseVO.setTagList(panoramaPhotoTagList); - if (featureTagBaseList != null && featureTagBaseList.size() > 0) { - List featureTagNameList = featureTagBaseList.stream().filter(o -> o.getPanoramaPhotoId().equals(item.getId())).map(PanoramaPhotoFeatureTagBaseVO::getTagName).collect(Collectors.toList()); - panoramaPhotoBaseVO.setFeatureTagList(featureTagNameList); - } - panoramaPhotoList.add(panoramaPhotoBaseVO); - } - } - model.setPanoramaPhotoList(panoramaPhotoList); - List rtmpUrlList = new ArrayList<>(); - if (StrUtil.isNotEmpty(model.getDeviceSn())) { - List missionVideoDTOList = missionVideoManager.getListByDeviceSn(model.getDeviceSn()); - if (missionVideoDTOList != null && missionVideoDTOList.size() > 0) { - rtmpUrlList = missionVideoDTOList.stream().filter(o -> StrUtil.isNotEmpty(o.getUrl())).map(MissionVideoDTO::getUrl).collect(Collectors.toList()); - } - } - model.setRtmpUrlList(rtmpUrlList); - Integer isFavourite = 0; - long count = myFavoriteService.countByScenicSpotIdAndUserId(model.getId(), userId); - if (count > 0) { - isFavourite = 1; - } - if (StrUtil.isNotEmpty(model.getDeviceSn())) { - List pairedDeviceList = getPairedDeviceList(model.getDeviceSn()); - model.setPairedDeviceList(pairedDeviceList); - IkDeviceEntity ikDeviceEntity = ikDeviceService.getByDeviceSn(model.getDeviceSn()); - if(ikDeviceEntity != null && ikDeviceEntity.getId() != null){ - MissionImageEntity missionImageEntity = missionImageService.getLastOneByDeviceId(ikDeviceEntity.getId()); - if(missionImageEntity != null && StrUtil.isNotEmpty(missionImageEntity.getThumbnailUrl())){ - try { - String devicePhotoUrl = RSAUtil.decryptOne(missionImageEntity.getThumbnailUrl()); - model.setDevicePhotoUrl(devicePhotoUrl); - }catch (Exception e){ - log.error(e.getMessage()); - } - } - } - } - model.setIsFavourite(isFavourite); - return model; - } - - /** - * 根据机库SN获取配对设备列表 - * @param deviceSn 机库SN - * @return - */ - private List getPairedDeviceList(String deviceSn){ - List list = new ArrayList<>(); - List pairedList = ikDeviceService.getPairedListByDeviceSn(deviceSn); - if (pairedList != null && pairedList.size() > 0) { - for (IkDeviceEntity item : pairedList) { - PairedDeviceVO model = new PairedDeviceVO(); - model.setDeviceSn(item.getDeviceSn()); - List missionVideoDTOList = missionVideoManager.getListByDeviceSn(item.getDeviceSn()); - if (missionVideoDTOList != null && missionVideoDTOList.size() > 0) { - List rtmpUrlList = missionVideoDTOList.stream().filter(o -> StrUtil.isNotEmpty(o.getUrl())).map(MissionVideoDTO::getUrl).distinct().collect(Collectors.toList()); - if(rtmpUrlList != null && rtmpUrlList.size() > 0){ - List rtmpUrlTempList = rtmpUrlList.stream().filter(o -> o.contains("_red")).collect(Collectors.toList()); - if(rtmpUrlTempList == null || rtmpUrlTempList.size() == 0){ - rtmpUrlList.add(rtmpUrlList.get(0) + "_red"); - } - model.setRtmpUrlList(rtmpUrlList); - } - } - list.add(model); - } - } - return list; - } - - /** - * 根据双轴视频ID集合获取下轴标签列表 - * - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - public List getBiaxVideoDownTagList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - List downTagList = downTagService.getListByBiaxVideoIdList(biaxVideoIdList); - if (downTagList != null && downTagList.size() > 0) { - BiaxVideoDownTagDTO model; - for (BiaxVideoDownTagEntity item : downTagList) { - model = new BiaxVideoDownTagDTO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - } - return list; - } - - /** - * 根据双轴视频ID集合获取上轴轴标签列表 - * - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - public List getBiaxVideoUpTagList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - List downTagList = upTagService.getListByBiaxVideoIdList(biaxVideoIdList); - if (downTagList != null && downTagList.size() > 0) { - BiaxVideoUpTagDTO model; - for (BiaxVideoUpTagEntity item : downTagList) { - model = new BiaxVideoUpTagDTO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - } - return list; - } - - /** - * 根据双轴视频ID集合获取特色景观标签列表 - * - * @param biaxVideoIdList 双轴视频ID集合 - * @return - */ - public List getBiaxVideoFeatureTagList(List biaxVideoIdList) { - List list = new ArrayList<>(); - if (biaxVideoIdList != null && biaxVideoIdList.size() > 0) { - List featureTagList = biaxVideoFeatureTagService.getListByBiaxVideoIdList(biaxVideoIdList); - if (featureTagList != null && featureTagList.size() > 0) { - for (BiaxVideoFeatureTagEntity item : featureTagList) { - TourismTagEntity tourismTagEntity = tagService.getByCode(item.getTagCode()); - if (tourismTagEntity != null && StrUtil.isNotEmpty(tourismTagEntity.getTagName())) { - BiaxVideoFeatureTagBaseVO model = new BiaxVideoFeatureTagBaseVO(); - model.setBiaxVideoId(item.getBiaxVideoId()); - model.setTagName(tourismTagEntity.getTagName()); - list.add(model); - } - } - } - } - return list; - } - - /** - * 根据全景图片ID集合获取特色景观标签列表 - * - * @param panoramaPhotoIdList 全景照片ID集合 - * @return - */ - public List getPanoramaPhotoFeatureTagList(List panoramaPhotoIdList) { - List list = new ArrayList<>(); - if (panoramaPhotoIdList != null && panoramaPhotoIdList.size() > 0) { - List featureTagList = panoramaPhotoFeatureTagService.getListByPanoramaPhotoIdList(panoramaPhotoIdList); - if (featureTagList != null && featureTagList.size() > 0) { - for (PanoramaPhotoFeatureTagEntity item : featureTagList) { - TourismTagEntity tourismTagEntity = tagService.getByCode(item.getTagCode()); - if (tourismTagEntity != null && StrUtil.isNotEmpty(tourismTagEntity.getTagName())) { - PanoramaPhotoFeatureTagBaseVO model = new PanoramaPhotoFeatureTagBaseVO(); - model.setPanoramaPhotoId(item.getPanoramaPhotoId()); - model.setTagName(tourismTagEntity.getTagName()); - list.add(model); - } - } - } - } - return list; - } - - /** - * 获取列表 - * - * @param scenicSpotName 景点名称 - * @param userId 操作用户ID - * @return - */ - public List getList(String scenicSpotName, Long userId) { - List list = new ArrayList<>(); - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(scenicSpotName), ScenicSpotEntity::getScenicSpotName, scenicSpotName); - List entityList = scenicSpotService.list(qw); - if (entityList != null && entityList.size() > 0) { - for (ScenicSpotEntity item : entityList) { - ScenicSpotPageVO model = doToPageVO(item, userId); - list.add(model); - } - } - return list; - } - - /** - * 获取我收藏的景点分页 - * - * @param query 查询条件 - * @param userId 用户ID - * @return - */ - public PageInfo getMyFavoritePageList(MyFavoritePageQuery query, Long userId) { - Map queryMap = new HashMap<>(2); - if (StrUtil.isNotEmpty(query.getScenicSpotName())) { - queryMap.put("scenicSpotName", query.getScenicSpotName()); - } - queryMap.put("userId", userId); - PageInfo scenicSpotPageList = scenicSpotService.getMyFavoritePageList(query.getPager(), queryMap); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(scenicSpotPageList, pageList); - if (scenicSpotPageList.getList() != null && scenicSpotPageList.getList().size() > 0) { - List list = scenicSpotPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (ScenicSpotEntity item : list) { - MyFavoriteScenicSpotPageVO model = doToMyFavoritePageVO(item, userId); - voList.add(model); - } - pageList.setList(voList); - } - return pageList; - } - - /** - * 实体转我的收藏景点实体 - * - * @param entity 景点实体 - * @param userId 用户ID - * @return - */ - private MyFavoriteScenicSpotPageVO doToMyFavoritePageVO(ScenicSpotEntity entity, Long userId) { - MyFavoriteScenicSpotPageVO model = new MyFavoriteScenicSpotPageVO(); - BeanUtil.copyProperties(entity, model); - List scenicSpotDeviceList = scenicSpotDeviceService.getListByScenicSpotId(entity.getId()); - if (scenicSpotDeviceList != null && scenicSpotDeviceList.size() > 0) { - model.setDeviceSn(scenicSpotDeviceList.get(0).getDeviceSn()); - } - List tagNameList = new ArrayList<>(); - List scenicSpotTagList = scenicSpotTagService.getListByScenicSpotId(entity.getId()); - if (scenicSpotTagList != null && scenicSpotTagList.size() > 0) { - List tagCodeList = scenicSpotTagList.stream().map(ScenicSpotTagEntity::getTagCode).collect(Collectors.toList()); - List tagList = tagService.getListByCodeList(tagCodeList); - if (tagList != null && tagList.size() > 0) { - tagNameList = tagList.stream().map(TourismTagEntity::getTagName).collect(Collectors.toList()); - } - } - model.setTagNameList(tagNameList); - List featuredPhotoUrlList = new ArrayList<>(); - List featuredPhotoList = featuredPhotoService.getListByScenicSpotId(entity.getId()); - if (featuredPhotoList != null && featuredPhotoList.size() > 0) { - for (FeaturedPhotoEntity photoItem : featuredPhotoList) { - if(StrUtil.isNotEmpty(photoItem.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(entity.getVirtualFlyPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - featuredPhotoUrlList.add(fileInfoDto.getUrl()); - } - } - } - model.setFeaturedPhotoList(featuredPhotoUrlList); - Integer isFavourite = -2; - long count = myFavoriteService.countByScenicSpotIdAndUserId(model.getId(), userId); - if (count > 0) { - isFavourite = 1; - } - model.setIsFavourite(isFavourite); - return model; - } - - /** - * 获取坐标列表 - * - * @param coordinateType 坐标类型(1:景点,2:双轴视频,3:全景照片) - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - public CoordinateListVO getCoordinateList(Integer coordinateType, BigDecimal longitude, BigDecimal latitude, Long userId) { - CoordinateListVO coordinateListVO = new CoordinateListVO(); - if (coordinateType == null) { - List scenicSpotList = getScenicSpotList(longitude, latitude, userId); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - coordinateListVO.setScenicSpotList(scenicSpotList); - } - List biaxVideoList = getBiaxVideoList(longitude, latitude); - if (biaxVideoList != null && biaxVideoList.size() > 0) { - coordinateListVO.setBiaxVideoList(biaxVideoList); - } - List panoramaPhotoList = getPanoramaPhotoList(longitude, latitude); - if (panoramaPhotoList != null && panoramaPhotoList.size() > 0) { - coordinateListVO.setPanoramaPhotoList(panoramaPhotoList); - } - } else { - if (1 == coordinateType) { - List scenicSpotList = getScenicSpotList(longitude, latitude, userId); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - coordinateListVO.setScenicSpotList(scenicSpotList); - } - } else if (2 == coordinateType) { - List biaxVideoList = getBiaxVideoList(longitude, latitude); - if (biaxVideoList != null && biaxVideoList.size() > 0) { - coordinateListVO.setBiaxVideoList(biaxVideoList); - } - } else if (3 == coordinateType) { - List panoramaPhotoList = getPanoramaPhotoList(longitude, latitude); - if (panoramaPhotoList != null && panoramaPhotoList.size() > 0) { - coordinateListVO.setPanoramaPhotoList(panoramaPhotoList); - } - } - } - return coordinateListVO; - } - - /** - * 获取全景照片坐标列表 - * - * @return - */ - private List getPanoramaPhotoList(BigDecimal longitude, BigDecimal latitude) { - List list = new ArrayList<>(); - List entityList = new ArrayList<>(); - List scenicSpotList = new ArrayList<>(); - if(longitude != null && latitude != null){ - scenicSpotList = getScenicSpotListByCoordinate(longitude, latitude); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - List scenicSpotIdList = scenicSpotList.stream().map(ScenicSpotEntity::getId).collect(Collectors.toList()); - entityList = panoramaPhotoService.getListByScenicSpotIdList(scenicSpotIdList); - } - }else{ - entityList = panoramaPhotoService.list(); - if(entityList != null && entityList.size() > 0){ - List scenicSpotIdList = entityList.stream().map(PanoramaPhotoEntity::getScenicSpotId).collect(Collectors.toList()); - scenicSpotList = scenicSpotService.listByIds(scenicSpotIdList); - } - } - if (entityList != null && entityList.size() > 0) { - PanoramaPhotoListVO model; - for (PanoramaPhotoEntity item : entityList) { - model = new PanoramaPhotoListVO(); - BeanUtil.copyProperties(item, model); - List featureTagNameList = panoramaPhotoManager.getPanoramaPhotoFeatureTagList(item.getId()); - model.setFeatureTagList(featureTagNameList); - List tagList = panoramaPhotoManager.getPanoramaPhotoTagList(item.getId()); - model.setTagList(tagList); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - List tempList = scenicSpotList.stream().filter(o -> item.getScenicSpotId().equals(o.getId())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - ScenicSpotEntity scenicSpotEntity = tempList.get(0); - if(StrUtil.isNotEmpty(scenicSpotEntity.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(scenicSpotEntity.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setPhotoUrl(fileInfoDto.getUrl()); - } - } - } - list.add(model); - } - } - return list; - } - - /** - * 获取双轴视频坐标列表 - * - * @return - */ - private List getBiaxVideoList(BigDecimal longitude, BigDecimal latitude) { - List list = new ArrayList<>(); - List entityList = new ArrayList<>(); - List scenicSpotList = new ArrayList<>(); - if(longitude != null && latitude != null){ - scenicSpotList = getScenicSpotListByCoordinate(longitude, latitude); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - List scenicSpotIdList = scenicSpotList.stream().map(ScenicSpotEntity::getId).collect(Collectors.toList()); - entityList = biaxVideoService.getListByScenicSpotIdList(scenicSpotIdList); - } - }else{ - entityList = biaxVideoService.list(); - if(entityList != null && entityList.size() > 0){ - List scenicSpotIdList = entityList.stream().map(BiaxVideoEntity::getScenicSpotId).collect(Collectors.toList()); - scenicSpotList = scenicSpotService.listByIds(scenicSpotIdList); - } - } - if (entityList != null && entityList.size() > 0) { - BiaxVideoListVO model; - for (BiaxVideoEntity item : entityList) { - model = new BiaxVideoListVO(); - BeanUtil.copyProperties(item, model); - if(StrUtil.isNotEmpty(item.getVideoFile())){ - JSONObject json = JSONObject.parseObject(item.getVideoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setFileUrl(fileInfoDto.getUrl()); - } - List upTagList = biaxVideoManager.getBiaxVideoUpTagList(item.getId()); - model.setUpTagList(upTagList); - List downTagList = biaxVideoManager.getBiaxVideoDownTagList(item.getId()); - model.setDownTagList(downTagList); - List featureTagNameList = biaxVideoManager.getBiaxVideoFeatureTagList(item.getId()); - model.setFeatureTagList(featureTagNameList); - if (scenicSpotList != null && scenicSpotList.size() > 0) { - List tempList = scenicSpotList.stream().filter(o -> item.getScenicSpotId().equals(o.getId())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - ScenicSpotEntity scenicSpotEntity = tempList.get(0); - if(StrUtil.isNotEmpty(scenicSpotEntity.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(scenicSpotEntity.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setPhotoUrl(fileInfoDto.getUrl()); - } - } - } - if(item.getRouteId() != null && item.getRouteId() > 0){ - IkRouteEntity routeDTO = routeService.getById(item.getRouteId()); - if (routeDTO != null && routeDTO.getRouteRunNum() != null) { - if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - if(routeName.contains("_")){ - routeName = routeName.substring(0, routeName.lastIndexOf("_")); - } - model.setRouteName(routeName); - } - } - } - list.add(model); - } - } - return list; - } - - /** - * 根据经纬度获取景点列表 - * @param longitude 经度 - * @param latitude 纬度 - * @return - */ - private List getScenicSpotListByCoordinate(BigDecimal longitude, BigDecimal latitude){ - List entityList; - if(longitude != null && latitude != null){ - entityList = scenicSpotService.getNearbyList(longitude, latitude); - }else{ - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - entityList = scenicSpotService.list(qw); - } - return entityList; - } - - - /** - * 获取景点坐标列表 - * - * @return - */ - private List getScenicSpotList(BigDecimal longitude, BigDecimal latitude, Long userId) { - List list = new ArrayList<>(); - List entityList = getScenicSpotListByCoordinate(longitude, latitude); - if (entityList != null && entityList.size() > 0) { - ScenicSpotPageVO model; - for (ScenicSpotEntity item : entityList) { - model = doToPageVO(item, userId); - list.add(model); - } - } - return list; - } - - /** - * 根据主键 - * - * @param id 主键ID - * @param userId 用户ID - * @return - */ - public ScenicSpotPageVO getEntity(Long id, Long userId) { - ScenicSpotPageVO model = new ScenicSpotPageVO(); - if (id != null) { - ScenicSpotEntity entity = scenicSpotService.getById(id); - if (entity != null && entity.getId() != null) { - model = doToPageVO(entity, userId); - } - } - return model; - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/resources/application.yml b/zlt-business/tourism-center/tourism-open-api/src/main/resources/application.yml deleted file mode 100644 index bec9c6bc..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/resources/application.yml +++ /dev/null @@ -1,74 +0,0 @@ -spring: - datasource: -# url: jdbc:mysql://${zlt.datasource.ip}:3306/user-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - url: jdbc:mysql://${zlt.datasource.ip}/tourism-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - username: ${zlt.datasource.username} - password: ${zlt.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.zlt.tourism.model - global-config: - db-config: - id-type: auto - -springdoc: - group-configs: - - group: 'default' - paths-to-match: '/**' - packages-to-scan: com.central.user.controller - -knife4j: - enable: true - setting: - swagger-model-name: 业务中心接口文档 - -zlt: - cache-manager: - configs: - - key: menu - second: 300 - - key: user - second: 1800 - #多租户配置 - tenant: - enable: true - ignoreTables: - - sys_user - - sys_role_user - - sys_role_menu - ignoreSqls: - # 用户关联角色时,显示所有角色 - - com.central.user.mapper.SysRoleMapper.findAll - # 用户列表显示用户所关联的所有角色 - - com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds - # 数据权限 - datascope: - enabled: false - ignoreTables: - - sys_role_user - - sys_role_menu - includeSqls: - # 用户列表 - - com.central.user.mapper.SysUserMapper.findList - # 角色列表 - - com.central.user.mapper.SysRoleMapper.findList - # 菜单列表 - - com.central.user.mapper.SysMenuMapper.selectList - - tencent: - app-id: ${zlt.security.tencent.app-id} - app-secret: ${zlt.security.tencent.app-secret} - access-token-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token= - get-phonenumber-url: https://api.weixin.qq.com/cgi-bin/token -#审计日志 -# audit-log: -# enabled: true -# log-type: db -# datasource: -# driver-class-name: com.mysql.cj.jdbc.Driver -# jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai -# username: ${zlt.datasource.username} -# password: ${zlt.datasource.password} diff --git a/zlt-business/tourism-center/tourism-open-api/src/main/resources/bootstrap.yml b/zlt-business/tourism-center/tourism-open-api/src/main/resources/bootstrap.yml deleted file mode 100644 index 7f165621..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/main/resources/bootstrap.yml +++ /dev/null @@ -1,10 +0,0 @@ -server: - port: 8098 - -spring: - application: - name: cultural-tourism-open-api -# cloud: -# nacos: -# config: -# group: CULTURAL_TOURISM_GROUP diff --git a/zlt-business/tourism-center/tourism-open-api/src/test/java/com/ikingtec/tourism/service/TourismOrderServiceTest.java b/zlt-business/tourism-center/tourism-open-api/src/test/java/com/ikingtec/tourism/service/TourismOrderServiceTest.java deleted file mode 100644 index 691fe418..00000000 --- a/zlt-business/tourism-center/tourism-open-api/src/test/java/com/ikingtec/tourism/service/TourismOrderServiceTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.ikingtec.tourism.service; - -import com.alibaba.fastjson.JSON; -import com.zlt.tourism.model.tourism.TourismOrderEnity; -import com.zlt.tourism.service.IkMissionService; -import com.zlt.tourism.service.TourismOrderService; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections.MapUtils; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -import javax.annotation.Resource; -import java.io.IOException; -import java.util.Map; - -/** - * @Author: duzhichao - * @CreateTime: 2024-12-11 16:36 - * @Description: 订单测试 - */ -@RunWith(SpringRunner.class) -@SpringBootTest -@Slf4j -public class TourismOrderServiceTest { - - @Resource - private TourismOrderService tourismOrderService; - - @Resource - private IkMissionService ikMissionService; - - @Test - public void testExecRoute() throws IOException { - Map map = tourismOrderService.sendExecRoute("011D73", "aaaaaa", "RJCSDRONE20240011"); - log.info(MapUtils.getString(map, "result")); - } - - @Test - public void testMonitorOrderStatus() throws Exception { - TourismOrderEnity enity = new TourismOrderEnity(); - enity.setTakeOffDroneSn("RJCSDRONE20240011"); - String message = JSON.toJSONString(enity); - tourismOrderService.monitorOrderStatus(message); - } - - @Test - public void testGetDeviceStatus() throws Exception { - String deviceStatus = ikMissionService.getDeviceStatus("RJCSDRONE20240011", "droneStatus"); - log.info(deviceStatus); - } -} diff --git a/zlt-business/tourism-center/tourism-open-api/web/WEB-INF/web.xml b/zlt-business/tourism-center/tourism-open-api/web/WEB-INF/web.xml deleted file mode 100644 index d80081d1..00000000 --- a/zlt-business/tourism-center/tourism-open-api/web/WEB-INF/web.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/zlt-business/tourism-center/tourism-service/pom.xml b/zlt-business/tourism-center/tourism-service/pom.xml deleted file mode 100644 index 06029f22..00000000 --- a/zlt-business/tourism-center/tourism-service/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - tourism-center - com.zlt - 6.0.0 - - - 4.0.0 - tourism-service - tourism-service - jar - - - - - - - - com.zlt - tourism-core - 6.0.0 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - repackage - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - true - - - - com.spotify - docker-maven-plugin - - ${docker.image.prefix}/${project.artifactId} - - ${project.version} - latest - - true - ${docker.baseImage} - ${docker.volumes} - - ${docker.java.opts} - - ["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"] - - - / - ${project.build.directory} - ${project.build.finalName}.jar - - - - - - - ${project.artifactId}-release - - diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/CulturalTourismApplication.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/CulturalTourismApplication.java deleted file mode 100644 index 99c63e58..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/CulturalTourismApplication.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.zlt.tourism; - -import com.alibaba.fastjson.serializer.SerializerFeature; -import com.alibaba.fastjson.support.config.FastJsonConfig; -import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; -import com.central.common.lb.annotation.EnableBaseFeignInterceptor; -import com.central.common.lb.annotation.EnableFeignInterceptor; -import lombok.extern.slf4j.Slf4j; -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.http.HttpMessageConverters; -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; -import org.springframework.cloud.openfeign.EnableFeignClients; -import org.springframework.context.annotation.Bean; -import org.springframework.core.env.Environment; -import org.springframework.http.MediaType; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.scheduling.annotation.EnableAsync; - -import java.net.InetAddress; -import java.util.ArrayList; -import java.util.List; - -/** - * @author fucj - * @doc 文旅服务启动类 - */ -@EnableFeignClients(basePackages = {"com.central", "com.zlt"}) -@EnableFeignInterceptor -@EnableBaseFeignInterceptor -@EnableDiscoveryClient -@Slf4j -@EnableAsync -@SpringBootApplication(scanBasePackages = {"com.zlt.tourism"}) -public class CulturalTourismApplication extends SpringBootServletInitializer implements ApplicationRunner { - - public static void main(String[] args) throws Exception { - SpringApplication app = new SpringApplication(new Class[]{CulturalTourismApplication.class}); - Environment env = app.run(args).getEnvironment(); - String protocol = "http"; - if (env.getProperty("server.ssl.key-store") != null) { - protocol = "https"; - } - - String contextPath = ""; - if (env.getProperty("server.servlet.context-path") != null) { - contextPath = env.getProperty("server.servlet.context-path"); - } - - log.info("\n----------------------------------------------------------\n\tCulturalTourismApplication '{}' is running! Access URLs:\n\tLocal: \t\t{}://localhost:{}{}\n\tExternal: \t{}://{}:{}{}\n\tProfile(s): \t{}\n----------------------------------------------------------", new Object[]{env.getProperty("spring.application.name"), protocol, env.getProperty("server.port"), contextPath, protocol, InetAddress.getLocalHost().getHostAddress(), env.getProperty("server.port"), contextPath, env.getActiveProfiles()}); - String configServerStatus = env.getProperty("configserver.status"); - log.info("\n----------------------------------------------------------\n\tConfig Server: \t{}\n----------------------------------------------------------", configServerStatus == null ? "Not found or not setup for this application" : configServerStatus); - - } - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { - return builder.sources(CulturalTourismApplication.class); - } - - @Override - public void run(ApplicationArguments args){ - } - - @Bean - public HttpMessageConverters fastJsonHttpMessageConverters() { - // 1. 需要定义一个converter转换消息的对象 - FastJsonHttpMessageConverter fasHttpMessageConverter = - new FastJsonHttpMessageConverter(); - - // 2. 添加fastjson的配置信息,比如:是否需要格式化返回的json的数据 - FastJsonConfig fastJsonConfig = new FastJsonConfig(); - fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat, SerializerFeature.DisableCircularReferenceDetect); - - // 3. 在converter中添加配置信息 - fasHttpMessageConverter.setFastJsonConfig(fastJsonConfig); - HttpMessageConverter converter = fasHttpMessageConverter; - //解决中文乱码 - List fastMediaTypes = new ArrayList<>(); - fastMediaTypes.add(MediaType.APPLICATION_JSON_UTF8); - fasHttpMessageConverter.setSupportedMediaTypes(fastMediaTypes); - - return new HttpMessageConverters(converter); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoController.java deleted file mode 100644 index 14cf4dda..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoController.java +++ /dev/null @@ -1,238 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.*; -import com.zlt.tourism.manager.BiaxVideoManager; -import com.zlt.tourism.model.tourism.ScenicSpotEntity; -import com.zlt.tourism.service.ScenicSpotService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.BiaxVideoPageVO; -import com.zlt.tourism.vo.BiaxVideoVO; -import com.zlt.tourism.vo.ValidScenicSpotVO; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; - -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import java.util.Map; - -/** - * 双轴视频控制器 - * - * @author caiji - * @version 1.0 - * @description 双轴视频控制器 - * @create 2024/7/18 16:13 - **/ -@Tag(name = "双轴视频管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/biax/video/") -public class BiaxVideoController { - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoManager biaxVideoManager; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody BiaxVideoAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = biaxVideoManager.add(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增基础信息和上轴标记点") - @PostMapping(value = "addBasicInfo", produces = MediaType.APPLICATION_JSON_VALUE) - public Result addBasicInfo(@Valid @RequestBody BiaxVideoBasicAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = biaxVideoManager.addBasicInfo(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 新增下轴标记点 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增下轴标记点") - @PostMapping(value = "addDownTag", produces = MediaType.APPLICATION_JSON_VALUE) - public Result addDownTag(@Valid @RequestBody BiaxVideoDownTagListAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = biaxVideoManager.addDownTag(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 编辑基础信息 - * - * @param model 实体 - * @return - */ - @Operation(summary = "编辑基础信息和上轴标记点") - @PutMapping(value = "updateBasicInfo", produces = MediaType.APPLICATION_JSON_VALUE) - public Result updateBasicInfo(@Valid @RequestBody BiaxVideoBasicUpdateDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = biaxVideoManager.updateBasicInfo(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 编辑 - * - * @param model 实体 - * @return - */ - @Operation(summary = "编辑") - @PutMapping(value = "update", produces = MediaType.APPLICATION_JSON_VALUE) - public Result update(@Valid @RequestBody BiaxVideoUpdateDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = biaxVideoManager.update(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody BiaxVideoPageQuery query) { - PageInfo pageList = biaxVideoManager.selectPageList(query); - return Result.succeed(pageList); - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - try { - Result result = biaxVideoManager.delete(id); - return result; - } catch (Exception e) { - log.error(e.getMessage()); - return Result.failed("操作失败!"); - } - } - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @GetMapping(value = "get/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@PathVariable("id") Long id) { - BiaxVideoVO model = biaxVideoManager.getEntity(id); - return Result.succeed(model); - } - - /** - * 验证景点是否已绑定双轴视频 - * - * @param scenicSpotId 景点ID - * @return - */ - @GetMapping(value = "validExist", produces = MediaType.APPLICATION_JSON_VALUE) - public Result validExist(@NotNull(message = "景点ID不能为空") Long scenicSpotId, Long biaxVideoId){ - ValidScenicSpotVO model = new ValidScenicSpotVO(); - boolean existScenicSpot = biaxVideoManager.existScenicSpot(scenicSpotId, biaxVideoId); - if(existScenicSpot){ - ScenicSpotEntity scenicSpotEntity = scenicSpotService.getById(scenicSpotId); - if(scenicSpotEntity != null && StrUtil.isNotEmpty(scenicSpotEntity.getScenicSpotName())){ - model.setMsg("是否更新" + scenicSpotEntity.getScenicSpotName() + "下的双轴视频"); - }else{ - return Result.failed("景点不存在!"); - } - model.setStatus(-2); - }else{ - model.setStatus(1); - } - return Result.succeed(model); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoFeatureTagController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoFeatureTagController.java deleted file mode 100644 index b7643c0a..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/BiaxVideoFeatureTagController.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.zlt.tourism.dto.BiaxVideoFeatureTagAddDTO; -import com.zlt.tourism.model.tourism.BiaxVideoFeatureTagEntity; -import com.zlt.tourism.service.BiaxVideoFeatureTagService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.Map; - -/** - * 双轴视频特色景观标签接口类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频特色景观标签接口类 - * @create 2024/7/24 14:53 - **/ -@Tag(name = "双轴视频特色景观标签管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/biax/video/feature/tag/") -public class BiaxVideoFeatureTagController { - - /** - * 双轴视频特色景观标签业务类 - */ - @Autowired - private BiaxVideoFeatureTagService featureTagService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody BiaxVideoFeatureTagAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - BiaxVideoFeatureTagEntity entity = new BiaxVideoFeatureTagEntity(); - BeanUtil.copyProperties(model, entity); - boolean existRecord = featureTagService.existRecord(entity); - if(existRecord){ - return Result.failed("该关系已存在,操作失败!"); - } - boolean addResult = featureTagService.save(entity); - return addResult ? Result.succeed("新增成功") : Result.failed("新增失败"); - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = featureTagService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/DeviceController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/DeviceController.java deleted file mode 100644 index 155c9e92..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/DeviceController.java +++ /dev/null @@ -1,209 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.zlt.tourism.core.StationResult; -import com.zlt.tourism.dto.device.DeviceListQuery; -import com.zlt.tourism.dto.org.OrganizationQuery; -import com.zlt.tourism.enums.DockTypeEnum; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.service.IkDeviceService; -import com.zlt.tourism.vo.DeviceBasicVO; -import com.zlt.tourism.vo.DeviceVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.constraints.NotBlank; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 设备控制器 - * - * @author caiji - * @version 1.0 - * @description 设备控制器 - * @create 2024/7/4 14:37 - **/ -@Tag(name = "设备管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/device/") -public class DeviceController { - - /** - * Station-Web远程调用业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * Station-admin远程调用业务类 - */ -// @Autowired -// private StationAdminService stationAdminService; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService deviceService; - - /** - * 获取设备列表 - * - * @param version 版本号 - * @return - */ - @Operation(summary = "查询指定范围内的设备") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "version", value = "版本号", required = true, paramType = "query") -// }) - @GetMapping("query") - public StationResult queryDevice(@NotBlank(message = "版本号不能为空") String version) { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - DeviceListQuery query = new DeviceListQuery(); - query.setVersion(version); - query.setChannel(1); - query.setIndustryType(10); - StationResult result = stationWebService.queryDevice(query); - return result; - } else { - return StationResult.error("获取当前用户失败!"); - } - } - - /** - * 获取设备列表 - * - * @return - */ - @Operation(summary = "获取设备树形列表") - @GetMapping("treeList") - public StationResult getTreeList() { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - OrganizationQuery query = new OrganizationQuery(); - query.setVersion("1.1"); - query.setChannel(1); - query.setIndustryType(10); - StationResult result = stationWebService.getOrganizationList(query); - return result; - } else { - return StationResult.error("获取当前用户失败!"); - } - } - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - @Operation(summary = "根据主键获取实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @GetMapping(value = "get/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@PathVariable("id") Long id) { - DeviceVO model = new DeviceVO(); - /*StationResult result = stationAdminService.getDeviceById(id); - if (result != null && 0 == result.getFlag() && result.get("data") != null) { - if (result.containsKey("data") && result.get("data") != null) { - JSONObject jsonObject = JSONObject.parseObject(result.get("data").toString()); - if (jsonObject != null && jsonObject.containsKey("id")) { - model.setId(jsonObject.getLong("id")); - if (jsonObject.containsKey("deviceSn")) { - model.setDeviceSn(jsonObject.getString("deviceSn")); - } - if (jsonObject.containsKey("cmdVersion")) { - model.setCmdVersion(jsonObject.getInteger("cmdVersion")); - } - if (jsonObject.containsKey("deviceName")) { - model.setDeviceName(jsonObject.getString("deviceName")); - } - if (jsonObject.containsKey("deviceType")) { - model.setDeviceType(jsonObject.getInteger("deviceType")); - } - if (jsonObject.containsKey("longitude")) { - model.setLongitude(jsonObject.getBigDecimal("longitude")); - } - if (jsonObject.containsKey("latitude")) { - model.setLatitude(jsonObject.getBigDecimal("latitude")); - } - if (jsonObject.containsKey("altitude")) { - model.setAltitude(jsonObject.getBigDecimal("altitude")); - } - } - } - }*/ - return Result.succeed(model); - } - - /** - * 获取设备列表 - * @param organizationId 机构ID - * @param deviceTypes 设备类型,多个逗号分隔 - * @return - */ - @Operation(summary = "获取机库列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "organizationId", value = "机构ID", required = false, paramType = "query"), -// @ApiImplicitParam(name = "deviceTypes", value = "设备类型,多个逗号分隔", required = false, paramType = "query") -// }) - @GetMapping("dock/list") - public Result> queryDevice(Long organizationId, String deviceTypes) { - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - List list = new ArrayList<>(); -// if(organizationId == null && user.getOrganizationId() != null){ -// organizationId = user.getOrganizationId(); -// } - Map map = new HashMap<>(); - map.put("deleted", 0); - if(organizationId != null){ - map.put("organizationId", organizationId); - } - if(StrUtil.isNotEmpty(deviceTypes)){ - List deviceTypeList = new ArrayList<>(); - String[] strDeviceTypes = deviceTypes.split(","); - if(strDeviceTypes != null && strDeviceTypes.length > 0){ - for (String item : strDeviceTypes) { - deviceTypeList.add(Integer.parseInt(item)); - } - } - if(deviceTypeList.size() > 0){ - map.put("deviceTypeList", deviceTypeList); - } - }else{ - map.put("deviceTypeList", DockTypeEnum.getKeyList()); - } - List deviceList = deviceService.getList(map); - if(deviceList != null && deviceList.size() > 0){ - DeviceBasicVO model; - for (IkDeviceEntity item : deviceList) { - model = new DeviceBasicVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } else { - return Result.failed("获取当前用户失败!"); - } - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/OrganizationController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/OrganizationController.java deleted file mode 100644 index 2dfb1900..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/OrganizationController.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.model.Result; -import com.zlt.tourism.model.iking.IkOrganizationEntity; -import com.zlt.tourism.service.IkOrganizationService; -import com.zlt.tourism.vo.OrganizationBasicVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.ArrayList; -import java.util.List; - -/** - * 机构管理 - * - * @author caiji - * @version 1.0 - * @description 机构管理 - * @create 2024/8/7 15:00 - **/ -@Tag(name = "机构管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/org/") -public class OrganizationController { - - /** - * 根据父级ID获取列表 - * - * @param parentId 父级ID - * @return - */ - @Operation(summary = "根据父级ID获取列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "parentId", value = "父级ID", required = true, paramType = "query") -// }) - @GetMapping(value = "listByParentId", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> listByParentId(Long parentId) { - List list = new ArrayList<>(); - if (parentId == null) { - parentId = 0L; - } - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkOrganizationEntity::getParentId, parentId); - qw.eq(IkOrganizationEntity::getStatus, 0); - List orgList = organizationService.list(qw); - if (orgList != null && orgList.size() > 0) { - OrganizationBasicVO model; - for (IkOrganizationEntity item : orgList) { - model = new OrganizationBasicVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } - - /** - * 机构业务类 - */ - @Autowired - private IkOrganizationService organizationService; - - /** - * 根据级别获取列表 - * - * @param level 级别 - * @return - */ - @Operation(summary = "根据级别获取列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "level", value = "级别", required = true, paramType = "query") -// }) - @GetMapping(value = "listByLevel", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> listByLevel(Integer level) { - List list = new ArrayList<>(); - if (level == null) { - level = 0; - } - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkOrganizationEntity::getLevel, level); - qw.eq(IkOrganizationEntity::getStatus, 0); - List orgList = organizationService.list(qw); - if (orgList != null && orgList.size() > 0) { - OrganizationBasicVO model; - for (IkOrganizationEntity item : orgList) { - model = new OrganizationBasicVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoController.java deleted file mode 100644 index 0bd849e5..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoController.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.util.StrUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.PanoramaPhotoAddDTO; -import com.zlt.tourism.dto.PanoramaPhotoPageQuery; -import com.zlt.tourism.dto.PanoramaPhotoUpdateDTO; -import com.zlt.tourism.manager.PanoramaPhotoManager; -import com.zlt.tourism.model.tourism.ScenicSpotEntity; -import com.zlt.tourism.service.ScenicSpotService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.PanoramaPhotoPageVO; -import com.zlt.tourism.vo.PanoramaPhotoVO; -import com.zlt.tourism.vo.ValidScenicSpotVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import java.util.Map; - -/** - * 全景照片接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片接口类 - * @create 2024/7/18 17:44 - **/ -@Tag(name = "全景照片管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/panorama/photo/") -public class PanoramaPhotoController { - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoManager panoramaPhotoManager; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody PanoramaPhotoAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = panoramaPhotoManager.add(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 编辑 - * - * @param model 实体 - * @return - */ - @Operation(summary = "编辑") - @PutMapping(value = "update", produces = MediaType.APPLICATION_JSON_VALUE) - public Result update(@Valid @RequestBody PanoramaPhotoUpdateDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = panoramaPhotoManager.update(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody PanoramaPhotoPageQuery query) { - PageInfo pageList = panoramaPhotoManager.selectPageList(query); - return Result.succeed(pageList); - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - try { - Result result = panoramaPhotoManager.delete(id); - return result; - } catch (Exception e) { - log.error(e.getMessage()); - return Result.failed("操作失败!"); - } - } - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @GetMapping(value = "get/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@PathVariable("id") Long id) { - PanoramaPhotoVO model = panoramaPhotoManager.getEntity(id); - return Result.succeed(model); - } - - /** - * 验证景点是否已绑定全景照片 - * - * @param scenicSpotId 景点ID - * @return - */ - @GetMapping(value = "validExist", produces = MediaType.APPLICATION_JSON_VALUE) - public Result validExist(@NotNull(message = "景点ID不能为空") Long scenicSpotId, Long panoramaPhotoId){ - ValidScenicSpotVO model = new ValidScenicSpotVO(); - boolean existScenicSpot = panoramaPhotoManager.existScenicSpot(scenicSpotId, panoramaPhotoId); - if(existScenicSpot){ - ScenicSpotEntity scenicSpotEntity = scenicSpotService.getById(scenicSpotId); - if(scenicSpotEntity != null && StrUtil.isNotEmpty(scenicSpotEntity.getScenicSpotName())){ - model.setMsg("是否更新" + scenicSpotEntity.getScenicSpotName() + "下的全景照片"); - }else{ - return Result.failed("景点不存在!"); - } - model.setStatus(-2); - }else{ - model.setStatus(1); - } - return Result.succeed(model); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoFeatureTagController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoFeatureTagController.java deleted file mode 100644 index 7efbe8e9..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PanoramaPhotoFeatureTagController.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.zlt.tourism.dto.PanoramaPhotoFeatureTagAddDTO; -import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity; -import com.zlt.tourism.service.PanoramaPhotoFeatureTagService; -import com.zlt.tourism.util.ParamsErrorUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.Map; - -/** - * 全景照片特色景观标签接口类 - * - * @author caiji - * @version 1.0 - * @description 全景照片特色景观标签接口类 - * @create 2024/7/24 14:53 - **/ -@Tag(name = "全景照片特色景观标签管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/panorama/photo/feature/tag/") -public class PanoramaPhotoFeatureTagController { - - /** - * 全景照片特色景观标签业务类 - */ - @Autowired - private PanoramaPhotoFeatureTagService featureTagService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody PanoramaPhotoFeatureTagAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - PanoramaPhotoFeatureTagEntity entity = new PanoramaPhotoFeatureTagEntity(); - BeanUtil.copyProperties(model, entity); - boolean existRecord = featureTagService.existRecord(entity); - if(existRecord){ - return Result.failed("该关系已存在,操作失败!"); - } - boolean addResult = featureTagService.save(entity); - return addResult ? Result.succeed("新增成功") : Result.failed("新增失败"); - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = featureTagService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularScenicSpotController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularScenicSpotController.java deleted file mode 100644 index d4a5517e..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularScenicSpotController.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.zlt.tourism.controller; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.PopularScenicSpotAddBatchDTO; -import com.zlt.tourism.dto.PopularScenicSpotAddDTO; -import com.zlt.tourism.dto.PopularScenicSpotPageQuery; -import com.zlt.tourism.model.tourism.PopularScenicSpotEntity; -import com.zlt.tourism.service.PopularScenicSpotService; -import com.zlt.tourism.service.ScenicSpotService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.PopularScenicSpotListBasicVO; -import com.zlt.tourism.vo.PopularScenicSpotPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 热门景点控制器 - * - * @author caiji - * @version 1.0 - * @description 热门景点控制器 - * @create 2024/7/19 9:06 - **/ -@Tag(name = "热门景点管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/popular/scenic/spot/") -public class PopularScenicSpotController { - - /** - * 热门景点业务类 - */ - @Autowired - private PopularScenicSpotService popularScenicSpotService; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody PopularScenicSpotAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - if (model.getScenicSpotId() != null) { - PopularScenicSpotEntity entity = new PopularScenicSpotEntity(); - entity.setScenicSpotId(model.getScenicSpotId()); - entity.setOrderNumber(model.getOrderNumber() != null ? model.getOrderNumber() : 1); - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - boolean existScenicSpot = popularScenicSpotService.existScenicSpot(entity); - if (existScenicSpot) { - return Result.failed("该热门景点已存在,操作失败!"); - } - boolean result = popularScenicSpotService.save(entity); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } else { - return Result.failed("景点ID为空,操作失败!"); - } - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody PopularScenicSpotPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(PopularScenicSpotEntity::getOrderNumber); - PageInfo popularScenicSpotPageList = popularScenicSpotService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(popularScenicSpotPageList, pageList); - if (popularScenicSpotPageList.getList() != null && popularScenicSpotPageList.getList().size() > 0) { - List list = popularScenicSpotPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (PopularScenicSpotEntity item : list) { - PopularScenicSpotPageVO model = new PopularScenicSpotPageVO(); - BeanUtil.copyProperties(item, model); - if (item.getScenicSpotId() != null) { - ScenicSpotEntity scenicSpotEntity = scenicSpotService.getById(item.getScenicSpotId()); - if (scenicSpotEntity != null && StrUtil.isNotEmpty(scenicSpotEntity.getScenicSpotName())) { - model.setScenicSpotName(scenicSpotEntity.getScenicSpotName()); - } - } - voList.add(model); - } - pageList.setList(voList); - } - return Result.succeed(pageList);*/ - return null; - } - - /** - * 批量新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "批量新增") - @PostMapping(value = "addBatch", produces = MediaType.APPLICATION_JSON_VALUE) - public Result addBatch(@Valid @RequestBody PopularScenicSpotAddBatchDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - List scenicSpotIdList = model.getScenicSpotIdList(); - if (scenicSpotIdList != null && scenicSpotIdList.size() > 0) { - //先删除 - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - popularScenicSpotService.remove(qw); - List list = new ArrayList(scenicSpotIdList.size()); - PopularScenicSpotEntity entity; - int orderNumber = 1; - for (Long item : scenicSpotIdList) { - if(item != null){ - entity = new PopularScenicSpotEntity(); - entity.setScenicSpotId(item); - entity.setOrderNumber(orderNumber); - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - list.add(entity); - orderNumber++; - } - } - boolean result = popularScenicSpotService.saveBatch(list); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } else { - return Result.failed("景点集合为空,操作失败!"); - } - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = popularScenicSpotService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } - - /** - * 获取列表 - * - * @return - */ - @Operation(summary = "获取列表") - @GetMapping(value = "list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findList() { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(PopularScenicSpotEntity::getOrderNumber); - List tagList = popularScenicSpotService.list(qw); - List list = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - List scenicSpotIdList = tagList.stream().filter(o -> o.getScenicSpotId() != null).map(PopularScenicSpotEntity::getScenicSpotId).collect(Collectors.toList()); - PopularScenicSpotListBasicVO model; - for (Long item : scenicSpotIdList) { - model = new PopularScenicSpotListBasicVO(); - model.setScenicSpotId(item); - list.add(model); - } - } - if (list.size() < 10) { - int size = 10 - list.size(); - for (int i = 0; i < size; i++) { - PopularScenicSpotListBasicVO model = new PopularScenicSpotListBasicVO(); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularTagController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularTagController.java deleted file mode 100644 index 871545f2..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/PopularTagController.java +++ /dev/null @@ -1,220 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.PopularTagAddBatchDTO; -import com.zlt.tourism.dto.PopularTagAddDTO; -import com.zlt.tourism.dto.PopularTagPageQuery; -import com.zlt.tourism.model.tourism.PopularTagEntity; -import com.zlt.tourism.service.PopularTagService; -import com.zlt.tourism.service.TourismTagService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.PopularTagListBasicVO; -import com.zlt.tourism.vo.PopularTagPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 热门标签控制器 - * - * @author caiji - * @version 1.0 - * @description 热门标签控制器 - * @create 2024/7/19 9:06 - **/ -@Tag(name = "热门标签管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/popular/tag/") -public class PopularTagController { - - /** - * 热门标签业务类 - */ - @Autowired - private PopularTagService popularTagService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody PopularTagAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - PopularTagEntity entity = new PopularTagEntity(); - entity.setTagCode(model.getTagCode()); - entity.setOrderNumber(model.getOrderNumber() != null ? model.getOrderNumber() : 1); - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - boolean existScenicSpot = popularTagService.existTag(entity); - if (existScenicSpot) { - return Result.failed("该热门标签已存在,操作失败!"); - } - boolean result = popularTagService.save(entity); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody PopularTagPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(PopularTagEntity::getOrderNumber); - PageInfo popularTagPageList = popularTagService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(popularTagPageList, pageList); - if (popularTagPageList.getList() != null && popularTagPageList.getList().size() > 0) { - List list = popularTagPageList.getList(); - List voList = new ArrayList<>(list.size()); - List tagCodeList = list.stream().filter(o -> StrUtil.isNotEmpty(o.getTagCode())).map(PopularTagEntity::getTagCode).collect(Collectors.toList()); - List tourismTagList = tagService.getListByCodeList(tagCodeList); - for (PopularTagEntity item : list) { - PopularTagPageVO model = new PopularTagPageVO(); - BeanUtil.copyProperties(item, model); - if (StrUtil.isNotEmpty(item.getTagCode()) && tourismTagList != null && tourismTagList.size() > 0) { - List tempList = tourismTagList.stream().filter(o -> o.getTagCode().equals(item.getTagCode())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - model.setTagName(tempList.get(0).getTagName()); - } - } - voList.add(model); - } - pageList.setList(voList); - } - return Result.succeed(pageList);*/ - return null; - } - - /** - * 批量新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "批量新增") - @PostMapping(value = "addBatch", produces = MediaType.APPLICATION_JSON_VALUE) - public Result addBatch(@Valid @RequestBody PopularTagAddBatchDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - List tagCodeList = model.getTagCodeList(); - if (tagCodeList != null && tagCodeList.size() > 0) { - //先删除 - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - popularTagService.remove(qw); - List list = new ArrayList(tagCodeList.size()); - PopularTagEntity entity; - int orderNumber = 1; - for (String item : tagCodeList) { - if(item != null){ - entity = new PopularTagEntity(); - entity.setTagCode(item); - entity.setOrderNumber(orderNumber); - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - list.add(entity); - orderNumber++; - } - } - boolean result = popularTagService.saveBatch(list); - return result ? Result.succeed("操作成功!") : Result.failed("操作失败!"); - } else { - return Result.failed("标签集合为空,操作失败!"); - } - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = popularTagService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } - - /** - * 获取列表 - * - * @return - */ - @Operation(summary = "获取列表") - @GetMapping(value = "list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findList() { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(PopularTagEntity::getOrderNumber); - List tagList = popularTagService.list(qw); - List list = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - List tagCodeList = tagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagCode())).map(PopularTagEntity::getTagCode).collect(Collectors.toList()); - PopularTagListBasicVO model; - for (String item : tagCodeList) { - model = new PopularTagListBasicVO(); - model.setTagCode(item); - list.add(model); - } - } - if (list.size() < 5) { - int size = 5 - list.size(); - for (int i = 0; i < size; i++) { - PopularTagListBasicVO model = new PopularTagListBasicVO(); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/RouteController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/RouteController.java deleted file mode 100644 index e5c329b6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/RouteController.java +++ /dev/null @@ -1,302 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.RouteBasicPageQuery; -import com.zlt.tourism.dto.route.RoutePageQuery; -import com.zlt.tourism.feign.StationWebService; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.model.iking.IkRouteEntity; -import com.zlt.tourism.model.tourism.ScenicSpotDeviceEntity; -import com.zlt.tourism.service.IkDeviceService; -import com.zlt.tourism.service.IkRouteService; -import com.zlt.tourism.service.ScenicSpotDeviceService; -import com.zlt.tourism.vo.RouteTreeVO; -import com.zlt.tourism.vo.RouteVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 航线控制类 - * - * @author caiji - * @version 1.0 - * @description 航线控制类 - * @create 2024/8/7 8:47 - **/ -@Tag(name = "航线管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/route/") -public class RouteController { - - /** - * 航线业务类 - */ - @Autowired - private IkRouteService ikRouteService; - - /** - * 景点和设备关系业务类 - */ - @Autowired - private ScenicSpotDeviceService scenicSpotDeviceService; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService deviceService; - - /** - * station-web模块远程调用 - */ - @Autowired - private StationWebService stationWebService; - - - /** - * 根据设备SN获取航线列表 - * - * @param deviceSn 设备SN - * @return - */ - @Operation(summary = "根据设备SN获取航线列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "deviceSn", value = "设备SN", required = true, paramType = "path") -// }) - @GetMapping(value = "listByDeviceSn/{deviceSn}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getListByDeviceSn(@PathVariable("deviceSn") String deviceSn) { - List list = new ArrayList<>(); - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(IkRouteEntity::getDeviceSn, deviceSn); - qw.eq(IkRouteEntity::getDeleted, 0); - List routeList = ikRouteService.list(qw); - if (routeList != null && routeList.size() > 0) { - RouteVO model; - for (IkRouteEntity item : routeList) { - model = new RouteVO(); - model.setRouteId(item.getId()); - model.setRouteName(item.getRouteName()); - list.add(model); - } - } - /*if(StrUtil.isNotEmpty(deviceSn)){ - IkDeviceEntity deviceEntity = deviceService.getByDeviceSn(deviceSn); - if(deviceEntity != null && deviceEntity.getId() != null){ - List routeList = ikRouteService.getNearbyRouteList(deviceEntity.getLongitude(), deviceEntity.getLatitude()); - if (routeList != null && routeList.size() > 0) { - RouteVO model; - for (IkRouteEntity item : routeList) { - model = new RouteVO(); - model.setRouteId(item.getId()); - model.setRouteName(item.getRouteName()); - list.add(model); - } - } - }else{ - return Result.failed("设备不存在,查询失败!"); - } - }else{ - return Result.failed("设备SN为空,查询失败!"); - }*/ - return Result.succeed(list); - } - - /** - * 根据景点ID获取航线列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Operation(summary = "根据景点ID获取航线列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "scenicSpotId", value = "景点ID", required = true, paramType = "path") -// }) - @GetMapping(value = "listByScenicSpotId/{scenicSpotId}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getListBScenicSpotId(@PathVariable("scenicSpotId") Long scenicSpotId) { - String deviceSn = ""; - List list = scenicSpotDeviceService.getListByScenicSpotId(scenicSpotId); - if (list != null && list.size() > 0) { - List tempList = list.stream().filter(o -> StrUtil.isNotEmpty(o.getDeviceSn())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - deviceSn = tempList.get(0).getDeviceSn(); - } - } - if (StrUtil.isNotEmpty(deviceSn)) { - return getListByDeviceSn(deviceSn); - } - return Result.failed("该景点没有关联设备!"); - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageListTest", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody RouteBasicPageQuery query) { - PageInfo pageList = new PageInfo<>(); - pageList.setPages(0); - pageList.setTotal(0); - List voList = new ArrayList<>(); - BigDecimal longitude = null; - BigDecimal latitude = null; - IkDeviceEntity deviceEntity = null; - if(StrUtil.isNotEmpty(query.getDeviceSn())){ - deviceEntity = getDeviceByDeviceSn(query.getDeviceSn()); - }else if(query.getScenicSpotId() != null){ - String deviceSn = ""; - List list = scenicSpotDeviceService.getListByScenicSpotId(query.getScenicSpotId()); - if (list != null && list.size() > 0) { - List tempList = list.stream().filter(o -> StrUtil.isNotEmpty(o.getDeviceSn())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - deviceSn = tempList.get(0).getDeviceSn(); - } - } - if (StrUtil.isNotEmpty(deviceSn)) { - deviceEntity = getDeviceByDeviceSn(deviceSn); - } - } - if(deviceEntity != null && deviceEntity.getId() != null){ - longitude = deviceEntity.getLongitude(); - latitude = deviceEntity.getLatitude(); - if(longitude != null && latitude != null){ - Map map = new HashMap<>(3); - if(longitude != null){ - map.put("longitude", longitude.toString()); - } - if(latitude != null){ - map.put("latitude", latitude.toString()); - } - BigDecimal limit = new BigDecimal(6000).setScale(7, BigDecimal.ROUND_HALF_UP); - map.put("radius", limit); - PageInfo routePage = ikRouteService.getNearbyRoutePageList(query.getPager(), map); - BeanUtil.copyProperties(routePage, pageList); - if (routePage.getList() != null && routePage.getList().size() > 0) { - List list = routePage.getList(); - for (IkRouteEntity item : list) { - RouteVO model = new RouteVO(); - model.setRouteId(item.getId()); - model.setId(item.getId()); - model.setParentId(item.getParentId()); -// String routeName = RSAUtil.decryptOne(item.getRouteName()); - model.setRouteName(item.getRouteName()); - voList.add(model); - } - pageList.setList(voList); - } - } - } - return Result.succeed(pageList); - } - - /** - * 获取树形分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取树形分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findTreePageList(@RequestBody RouteBasicPageQuery query) { - PageInfo pageList = new PageInfo<>(); - pageList.setPages(0); - pageList.setTotal(0); - List voList = new ArrayList<>(); - RoutePageQuery routePageQuery = new RoutePageQuery(); - BeanUtil.copyProperties(query, routePageQuery); - routePageQuery.setChannel(1); - routePageQuery.setVersion("_3_6_4"); - routePageQuery.setDeviceSn(null); - IkDeviceEntity deviceEntity = null; - if(StrUtil.isNotEmpty(query.getDeviceSn())){ - deviceEntity = getDeviceByDeviceSn(query.getDeviceSn()); - }else if(query.getScenicSpotId() != null){ - String deviceSn = ""; - List list = scenicSpotDeviceService.getListByScenicSpotId(query.getScenicSpotId()); - if (list != null && list.size() > 0) { - List tempList = list.stream().filter(o -> StrUtil.isNotEmpty(o.getDeviceSn())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - deviceSn = tempList.get(0).getDeviceSn(); - } - } - if (StrUtil.isNotEmpty(deviceSn)) { - deviceEntity = getDeviceByDeviceSn(deviceSn); - } - } - if(deviceEntity != null && deviceEntity.getId() != null){ - if(deviceEntity.getLongitude() != null){ - routePageQuery.setLongitude(deviceEntity.getLongitude().toString()); - } - if(deviceEntity.getLatitude() != null){ - routePageQuery.setLatitude(deviceEntity.getLatitude().toString()); - } - } - Object object = stationWebService.getRouteList(routePageQuery); - if(object != null){ - String dataStr = JSONObject.toJSONString(object); - JSONObject jsonObject = JSONObject.parseObject(dataStr); - if(jsonObject != null && jsonObject.containsKey("flag") && 0 == jsonObject.getInteger("flag")){ - Object data = jsonObject.get("data"); - String pageStr = JSONObject.toJSONString(data); - JSONObject pageData = JSONObject.parseObject(pageStr); - if(pageData != null){ - int totalCount = 0; - int totalPage = 0; - if(pageData.containsKey("totalCount")){ - totalCount = pageData.getInteger("totalCount"); - } - if(pageData.containsKey("totalPage")){ - totalPage = pageData.getInteger("totalPage"); - } - if(pageData.containsKey("list")){ - JSONArray jsonArray = pageData.getJSONArray("list"); - if(jsonArray != null && jsonArray.size() > 0){ - for (int i = 0; i < jsonArray.size(); i++) { - RouteTreeVO model = JSONObject.toJavaObject(jsonArray.getJSONObject(i), RouteTreeVO.class); - model.setRouteName(model.getRouteNameDecode()); - voList.add(model); - } - } - } - pageList.setPages(totalPage); - pageList.setTotal(totalCount); - } - } - } - pageList.setList(voList); - return Result.succeed(pageList); - } - - /** - * 根据设备SN获取设备实体 - * @param deviceSn 设备SN - * @return - */ - private IkDeviceEntity getDeviceByDeviceSn(String deviceSn){ - if(StrUtil.isNotEmpty(deviceSn)){ - IkDeviceEntity deviceEntity = deviceService.getByDeviceSn(deviceSn); - return deviceEntity; - } - return null; - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/ScenicSpotController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/ScenicSpotController.java deleted file mode 100644 index c9ace9b6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/ScenicSpotController.java +++ /dev/null @@ -1,305 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.ScenicSpotAddDTO; -import com.zlt.tourism.dto.ScenicSpotPageQuery; -import com.zlt.tourism.dto.ScenicSpotUpdateDTO; -import com.zlt.tourism.manager.ScenicSpotManager; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.model.tourism.*; -import com.zlt.tourism.service.*; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.*; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 景点控制器类 - * - * @author caiji - * @version 1.0 - * @description 景点控制器类 - * @create 2024/7/18 11:49 - **/ -@Tag(name = "景点管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/scenic/spot/") -public class ScenicSpotController { - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotManager scenicSpotManager; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 景点设备关系业务类 - */ - @Autowired - private ScenicSpotDeviceService scenicSpotDeviceService; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService ikDeviceService; - - /** - * 景点和标签关系业务类 - */ - @Autowired - private ScenicSpotTagService scenicSpotTagService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tourismTagService; - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoService biaxVideoService; - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoService panoramaPhotoService; - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody ScenicSpotAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = scenicSpotManager.add(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 编辑 - * - * @param model 实体 - * @return - */ - @Operation(summary = "编辑") - @PutMapping(value = "update", produces = MediaType.APPLICATION_JSON_VALUE) - public Result update(@Valid @RequestBody ScenicSpotUpdateDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - Result result = scenicSpotManager.update(model, user.getId()); - return result; - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 根据设备SN获取实体 - * - * @param deviceSn 设备Sn - * @return - */ - @Operation(summary = "根据设备SN获取实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "deviceSn", value = "设备SN", required = true, paramType = "path") -// }) - @GetMapping(value = "getByDeviceSn/{deviceSn}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntityByDeviceSn(@PathVariable("deviceSn") String deviceSn) { - ScenicSpotVO model = scenicSpotManager.getByDeviceSn(deviceSn); - return Result.succeed(model); - } - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - @Operation(summary = "根据主键ID获取实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @GetMapping(value = "get/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getEntity(@PathVariable("id") Long id) { - ScenicSpotVO model = scenicSpotManager.getEntity(id); - return Result.succeed(model); - } - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody ScenicSpotPageQuery query) { - PageInfo pageList = scenicSpotManager.selectPageList(query); - return Result.succeed(pageList); - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - try { - Result result = scenicSpotManager.delete(id); - return result; - } catch (Exception e) { - log.error(e.getMessage()); - return Result.failed("操作失败!"); - } - } - - - /** - * 根据景点名称获取列表 - * - * @param scenicSpotName 景点名称 - * @return - */ - @Operation(summary = "根据景点名称获取列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "scenicSpotName", value = "景点名称", required = false, paramType = "query"), -// @ApiImplicitParam(name = "queryType", value = "查询类别,1:双轴视频,2:全景照片", required = false, paramType = "query") -// }) - @GetMapping(value = "listByName", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findListByName(String scenicSpotName, Integer queryType) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(scenicSpotName), ScenicSpotEntity::getScenicSpotName, scenicSpotName); - qw.orderByDesc(ScenicSpotEntity::getCreatedAt); - List tagList = scenicSpotService.list(qw); - List list = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - ScenicSpotBaseListVO model; - for (ScenicSpotEntity item : tagList) { - model = new ScenicSpotBaseListVO(); - BeanUtil.copyProperties(item, model); - if(queryType != null && queryType == 1){ - List biaxVideoList = biaxVideoService.getListByScenicSpotId(item.getId()); - if(biaxVideoList != null && biaxVideoList.size() > 0){ - model.setScenicSpotName(item.getScenicSpotName() + "(" + biaxVideoList.get(0).getBiaxVideoName() + ")"); - } - }else if(queryType != null && queryType == 2){ - List panoramaPhotoList = panoramaPhotoService.getListByScenicSpotId(item.getId()); - if(panoramaPhotoList != null && panoramaPhotoList.size() > 0){ - model.setScenicSpotName(item.getScenicSpotName() + "(" + panoramaPhotoList.get(0).getPhotoName() + ")"); - } - } - list.add(model); - } - } - return Result.succeed(list); - } - - /** - * 根据景点ID获取设备 - * - * @param scenicSpotId 景点ID - * @return - */ - @Operation(summary = "根据景点ID获取设备") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "scenicSpotId", value = "设备SN", required = true, paramType = "path") -// }) - @GetMapping(value = "getDeviceByScenicSpotId/{scenicSpotId}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result getDeviceByScenicSpotId(@PathVariable("scenicSpotId") Long scenicSpotId) { - IkDeviceVO model = new IkDeviceVO(); - List list = scenicSpotDeviceService.getListByScenicSpotId(scenicSpotId); - if(list != null && list.size() > 0){ - IkDeviceEntity deviceEntity = ikDeviceService.getByDeviceSn(list.get(0).getDeviceSn()); - if(deviceEntity != null && deviceEntity.getId() != null){ - BeanUtil.copyProperties(deviceEntity, model); - } - } - return Result.succeed(model); - } - - /** - * 根据景点ID获取标签列表 - * - * @param scenicSpotId 景点ID - * @return - */ - @Operation(summary = "根据景点ID获取标签列表") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "scenicSpotId", value = "景点ID", required = true, paramType = "query") -// }) - @GetMapping(value = "getTagListByScenicSpotId", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> getTagListByScenicSpotId(Long scenicSpotId) { - List list = new ArrayList<>(); - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - if(scenicSpotId != null){ - List scenicSpotTagList = scenicSpotTagService.getListByScenicSpotId(scenicSpotId); - if(scenicSpotTagList != null && scenicSpotTagList.size() > 0){ - List tagCodeList = scenicSpotTagList.stream().map(ScenicSpotTagEntity::getTagCode).collect(Collectors.toList()); - if (tagCodeList != null && tagCodeList.size() > 0) { - qw.in(TourismTagEntity::getTagCode, tagCodeList); - } - } - } - qw.orderByAsc(TourismTagEntity::getOrderNumber); - List tagList = tourismTagService.list(qw); - if(tagList != null && tagList.size() > 0) { - TourismTagListVO model; - for (TourismTagEntity item : tagList) { - model = new TourismTagListVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismFileController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismFileController.java deleted file mode 100644 index aad72470..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismFileController.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.zlt.tourism.controller; - -import com.central.common.model.Result; -import com.zlt.tourism.dto.UploadFileDTO; -import com.zlt.tourism.feign.StationWebService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestPart; -import org.springframework.web.bind.annotation.RestController; -import org.springframework.web.multipart.MultipartFile; - -/** - * 文件管理控制类 - * - * @author caiji - * @version 1.0 - * @description 文件管理控制类 - * @create 2024/7/24 11:29 - **/ -@Tag(name = "文旅文件管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/file/") -public class TourismFileController { - - /** - * 文件业务类 - */ - @Autowired - private StationWebService stationWebService; - - /** - * 上传 - */ - @Operation(summary = "上传") - @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public Result upload(@RequestPart("file") MultipartFile file) { - try { - Result result = stationWebService.uploadFile(file); - return result; - } catch (Exception e) { - log.error(e.getMessage()); - } - return Result.failed("上传文件失败!"); - } - - /** - * 上传文件 - */ - @Operation(summary = "上传文件") - @PostMapping(value = "/uploadFile", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public Result uploadFile(UploadFileDTO model) { - if(model.getFileList() == null || model.getFileList().size() == 0){ - return Result.failed("文件为空,上传失败!"); - } - try { - Result result = stationWebService.uploadFile(model.getFileList().get(0)); - return result; - } catch (Exception e) { - log.error(e.getMessage()); - } - return Result.failed("上传文件失败!"); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismMissionController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismMissionController.java deleted file mode 100644 index aaf6778c..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismMissionController.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.controller; - -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.model.iking.IkMissionEntity; -import com.zlt.tourism.query.MissionServicePageQuery; -import com.zlt.tourism.query.TourismUserPageQuery; -import com.zlt.tourism.service.IkMissionService; -import com.zlt.tourism.vo.TourismUserPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import javax.annotation.Resource; - -/** - * @Author: duzhichao - * @CreateTime: 2024-11-05 11:40 - * @Description: mgnt查询任务 - */ -@Tag(name = "文旅用户管理") -@Slf4j -@RestController -@RequestMapping("/tourism/service/mission/") -public class TourismMissionController { - - @Resource - IkMissionService ikMissionService; - - - @Operation(summary = "获取文旅任务分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody MissionServicePageQuery query) { - PageInfo pageList= ikMissionService.queryPage(query); - return Result.succeed(pageList); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismStreamerController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismStreamerController.java deleted file mode 100644 index ce160dda..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismStreamerController.java +++ /dev/null @@ -1,169 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.central.common.model.SysUser; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.TourismStreamerAddDTO; -import com.zlt.tourism.dto.TourismStreamerPageQuery; -import com.zlt.tourism.feign.UserCenterService; -import com.zlt.tourism.model.tourism.TourismStreamerEntity; -import com.zlt.tourism.service.TourismStreamerService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.TourismStreamerListVO; -import com.zlt.tourism.vo.TourismStreamerPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * 主播控制器 - * - * @author caiji - * @version 1.0 - * @description 主播控制器 - * @create 2024/7/19 10:41 - **/ -@Tag(name = "主播权限管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/streamer/") -public class TourismStreamerController { - - /** - * 主播业务类 - */ - @Autowired - private TourismStreamerService streamerService; - - /** - * 用户业务类 - */ - @Autowired - private UserCenterService userCenterService; - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody TourismStreamerPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(query.getUserName()), TourismStreamerEntity::getUserName, query.getUserName()); - qw.like(StrUtil.isNotEmpty(query.getRealName()), TourismStreamerEntity::getRealName, query.getRealName()); - qw.like(StrUtil.isNotEmpty(query.getMobile()), TourismStreamerEntity::getMobile, query.getMobile()); - qw.eq(query.getStreamerType() != null, TourismStreamerEntity::getStreamerType, query.getStreamerType()); - qw.orderByDesc(TourismStreamerEntity::getCreatedAt); - PageInfo tagPageList = streamerService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(tagPageList, pageList); - if (tagPageList.getList() != null && tagPageList.getList().size() > 0) { - List list = tagPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (TourismStreamerEntity item : list) { - TourismStreamerPageVO model = new TourismStreamerPageVO(); - BeanUtil.copyProperties(item, model); - voList.add(model); - } - pageList.setList(voList); - } - return Result.succeed(pageList);*/ - return null; - } - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody TourismStreamerAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if(user == null || user.getId() == null){ - return Result.failed("获取登录用户失败,请重新登录"); - } - SysUser sysUser = userCenterService.findByMobile(model.getMobile()); - if(sysUser == null || sysUser.getId() == null){ - return Result.failed(3,"未检索到对应用户!"); - } - boolean existMobile = streamerService.existMobile(model.getMobile()); - if (existMobile) { - return Result.failed(2,"该用户已拥有主播权限!"); - } - TourismStreamerEntity entity = new TourismStreamerEntity(); - entity.setUserId(sysUser.getId()); - entity.setUserName(sysUser.getUsername()); - entity.setRealName(sysUser.getNickname()); - entity.setMobile(model.getMobile()); - entity.setStreamerType(1); - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - boolean addResult = streamerService.save(entity); - return addResult ? Result.succeed(1, "主播权限已开通!") : Result.failed("主播权限开通失败"); - } - - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = streamerService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } - - /** - * 获取全部列表 - * - * @return - */ - @Operation(summary = "获取全部列表") - @GetMapping(value = "list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findList() { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByDesc(TourismStreamerEntity::getCreatedAt); - List tagList = streamerService.list(qw); - List list = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - TourismStreamerListVO model; - for (TourismStreamerEntity item : tagList) { - model = new TourismStreamerListVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismTagController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismTagController.java deleted file mode 100644 index 116a6dba..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismTagController.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.zlt.tourism.controller; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.context.LoginUserContextHolder; -import com.central.common.model.LoginAppUser; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.TourismTagAddDTO; -import com.zlt.tourism.dto.TourismTagPageQuery; -import com.zlt.tourism.dto.TourismTagUpdateDTO; -import com.zlt.tourism.model.tourism.TourismTagEntity; -import com.zlt.tourism.service.TourismTagService; -import com.zlt.tourism.util.ParamsErrorUtil; -import com.zlt.tourism.vo.TourismTagListVO; -import com.zlt.tourism.vo.TourismTagPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.validation.Valid; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * 标签接口类 - * - * @author caiji - * @version 1.0 - * @description 标签接口类 - * @create 2024/7/17 13:10 - **/ -@Tag(name = "标签管理") -@Slf4j -@RestController -@RequestMapping("/tourism/api/tag/") -public class TourismTagController { - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tourismTagService; - - /** - * 获取分页列表 - * - * @param query 查询条件 - * @return - */ - @Operation(summary = "根据查询对象,获取分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody TourismTagPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(query.getTagName()), TourismTagEntity::getTagName, query.getTagName()); - qw.orderByDesc(TourismTagEntity::getCreatedAt); - PageInfo tagPageList = tourismTagService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(tagPageList, pageList); - if (tagPageList.getList() != null && tagPageList.getList().size() > 0) { - List list = tagPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (TourismTagEntity item : list) { - TourismTagPageVO model = new TourismTagPageVO(); - BeanUtil.copyProperties(item, model); - voList.add(model); - } - pageList.setList(voList); - } - return Result.succeed(pageList);*/ - return null; - } - - /** - * 新增 - * - * @param model 实体 - * @return - */ - @Operation(summary = "新增") - @PostMapping(value = "add", produces = MediaType.APPLICATION_JSON_VALUE) - public Result add(@Valid @RequestBody TourismTagAddDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user != null && user.getId() != null) { - TourismTagEntity entity = new TourismTagEntity(); - BeanUtil.copyProperties(model, entity); - boolean existCode = tourismTagService.existCode(entity); - if (existCode) { - return Result.failed("该标签编码已存在,操作失败!"); - } - boolean existName = tourismTagService.existName(entity); - if (existName) { - return Result.failed("该标签名称已存在,操作失败!"); - } - entity.setCreateUserId(user.getId()); - entity.setUpdateUserId(user.getId()); - boolean addResult = tourismTagService.save(entity); - return addResult ? Result.succeed("") : Result.failed(""); - } else { - return Result.failed("获取登录用户失败,请重新登录"); - } - } - - /** - * 更新 - * - * @param model 实体 - * @return - */ - @Operation(summary = "更新") - @PutMapping(value = "update", produces = MediaType.APPLICATION_JSON_VALUE) - public Result update(@Valid @RequestBody TourismTagUpdateDTO model, BindingResult paramResult) { - if (paramResult.hasErrors()) { - Map map = ParamsErrorUtil.getErrors(paramResult); - return Result.failed(map.values().toString()); - } - LoginAppUser user = LoginUserContextHolder.getUser(); - if (user == null || user.getId() == null) { - return Result.failed("获取登录用户失败,请重新登录!"); - } - TourismTagEntity entity = tourismTagService.getById(model.getId()); - if (entity != null && entity.getId() != null) { - if(!model.getTagCode().equals(entity.getTagCode())){ - boolean isUse = tourismTagService.isUse(entity.getTagCode()); - if(isUse){ - return Result.failed("该标签编码已使用,不能修改编码!"); - } - } - entity.setTagCode(model.getTagCode()); - entity.setTagName(model.getTagName()); - entity.setOrderNumber(model.getOrderNumber()); - entity.setUpdatedAt(new Date()); - entity.setUpdateUserId(user.getId()); - boolean existCode = tourismTagService.existCode(entity); - if (existCode) { - return Result.failed("该标签编码已存在,操作失败!"); - } - boolean existName = tourismTagService.existName(entity); - if (existName) { - return Result.failed("该标签名称已存在,操作失败!"); - } - boolean updateResult = tourismTagService.updateById(entity); - return updateResult ? Result.succeed("") : Result.failed(""); - } else { - return Result.failed("该记录不存在,请确认!"); - } - } - - /** - * 删除 - * - * @param id 主键 - * @return - */ - @Operation(summary = "删除,根据主键ID删除实体") -// @ApiImplicitParams({ -// @ApiImplicitParam(name = "id", value = "主键ID", required = true, paramType = "path") -// }) - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - TourismTagEntity entity = tourismTagService.getById(id); - if(entity == null || StrUtil.isEmpty(entity.getTagCode())){ - return Result.failed("该记录不存在,删除失败!"); - } - boolean isUse = tourismTagService.isUse(entity.getTagCode()); - if(isUse){ - return Result.failed("该标签编码已使用,不能删除!"); - } - boolean result = tourismTagService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } - - /** - * 获取全部列表 - * - * @return - */ - @Operation(summary = "获取全部列表") - @GetMapping(value = "list", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findList() { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.orderByAsc(TourismTagEntity::getOrderNumber); - List tagList = tourismTagService.list(qw); - List list = new ArrayList<>(); - if (tagList != null && tagList.size() > 0) { - TourismTagListVO model; - for (TourismTagEntity item : tagList) { - model = new TourismTagListVO(); - BeanUtil.copyProperties(item, model); - list.add(model); - } - } - return Result.succeed(list); - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismUserController.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismUserController.java deleted file mode 100644 index 4db6f96b..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/controller/TourismUserController.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.zlt.tourism.controller; - -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.query.TourismUserPageQuery; -import com.zlt.tourism.service.TourismUserService; -import com.zlt.tourism.vo.TourismUserPageVO; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; - -/** - * @Author: duzhichao - * @CreateTime: 2024-10-08 11:17 - * @Description: 文旅用户后台管理 - */ -@Tag(name = "文旅用户管理") -@Slf4j -@RestController -@RequestMapping("/tourism/service/user/") -public class TourismUserController { - - @Resource - private TourismUserService tourismUserService; - - @Operation(summary = "获取文旅用户分页列表") - @PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE) - public Result> findPageList(@RequestBody TourismUserPageQuery query) { - PageInfo pageList= tourismUserService.findUserPageList(query); - return Result.succeed(pageList); - } - - - @Operation(summary = "删除,根据主键ID删除实体") - @DeleteMapping(value = "delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE) - public Result delete(@PathVariable("id") Long id) { - boolean result = tourismUserService.removeById(id); - if (result) { - return Result.succeed("删除成功!"); - } else { - return Result.failed("删除失败!"); - } - } - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoAddDTO.java deleted file mode 100644 index 648c671e..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoAddDTO.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 双轴视频新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频新增实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频新增实体类") -public class BiaxVideoAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - @NotBlank(message = "双轴视频名称不能为空") - @Size(max = 128, message = "双轴视频名称长度超过128位") - private String biaxVideoName; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - /*@NotNull(message = "关联景点不能为空")*/ - private Long scenicSpotId; - - /** - * 设备SN - */ - @Schema(description ="设备SN") - @NotBlank(message = "设备SN不能为空") - @Size(max = 50, message = "设备SN长度超过50位") - private String deviceSn; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @NotNull(message = "关联航线不能为空") - private Long routeId; - - /** - * 视频文件 - */ - @Schema(description ="视频文件") - @NotNull(message = "视频文件不能为空") - private FileInfoDto videoFile; - - /** - * 视频时长(秒) - */ - @Schema(description ="视频时长(秒)") - @NotNull(message = "视频时长不能为空") - private Integer videoMins; - - /** - * 上轴标记点每段时长(秒) - */ - @Schema(description ="上轴标记点每段时长(秒)") - @NotNull(message = "上轴标记点每段时长不能为空") - private Integer upTagPosition; - - /** - * 上轴标记点列表 - */ - @Schema(description ="上轴标记点列表") - @NotEmpty(message = "上轴标记点不能为空") - private List upTagList; - - /** - * 下轴轴标记点列表 - */ - @Schema(description ="下轴轴标记点列表") - @NotEmpty(message = "下轴轴标记点不能为空") - private List downTagList; - - /** - * 特色景观标签编码列表 - */ - @Schema(description ="特色景观标签编码列表") - private List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicAddDTO.java deleted file mode 100644 index f967f8e1..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicAddDTO.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 双轴视频新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频新增实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频新增实体类") -public class BiaxVideoBasicAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - @NotBlank(message = "双轴视频名称不能为空") - @Size(max = 128, message = "双轴视频名称长度超过128位") - private String biaxVideoName; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @NotNull(message = "关联航线不能为空") - private Long routeId; - - /** - * 视频文件 - */ - @Schema(description ="视频文件") - @NotNull(message = "视频文件不能为空") - private FileInfoDto videoFile; - - /** - * 视频时长(秒) - */ - @Schema(description ="视频时长(秒)") - @NotNull(message = "视频时长不能为空") - private Integer videoMins; - - /** - * 上轴标记点每段时长(秒) - */ - @Schema(description ="上轴标记点每段时长(秒)") - @NotNull(message = "上轴标记点每段时长不能为空") - private Integer upTagPosition; - - /** - * 上轴标记点列表 - */ - @Schema(description ="上轴标记点列表") - @NotEmpty(message = "上轴标记点不能为空") - private List upTagList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicUpdateDTO.java deleted file mode 100644 index 53f1c855..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoBasicUpdateDTO.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 双轴视频基础信息更新实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频基础信息更新实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频基础信息更新实体类") -public class BiaxVideoBasicUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @NotNull(message = "关联航线不能为空") - private Long routeId; - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - @NotBlank(message = "双轴视频名称不能为空") - @Size(max = 126, message = "双轴视频名称长度超过128位") - private String biaxVideoName; - - /** - * 视频文件 - */ - @Schema(description ="视频文件") - @NotNull(message = "视频文件不能为空") - private FileInfoDto videoFile; - - /** - * 视频时长(秒) - */ - @Schema(description ="视频时长(秒)") - @NotNull(message = "视频时长不能为空") - private Integer videoMins; - - /** - * 上轴标记点每段时长(秒) - */ - @Schema(description ="上轴标记点每段时长(秒)") - @NotNull(message = "上轴标记点每段时长不能为空") - private Integer upTagPosition; - - /** - * 上轴标记点列表 - */ - @Schema(description ="上轴标记点列表") - @NotEmpty(message = "上轴标记点不能为空") - private List upTagList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagAddDTO.java deleted file mode 100644 index 08f46c64..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagAddDTO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 双轴视频上轴标记新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记新增实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description ="双轴视频上轴标记新增实体类") -public class BiaxVideoDownTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记位置(mm:ss) - */ - @Schema(description ="标记位置(mm:ss)") - private String tagPosition; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagListAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagListAddDTO.java deleted file mode 100644 index 59ea42b4..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoDownTagListAddDTO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 双轴视频下轴标记点新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频下轴标记点新增实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频下轴标记点新增实体类") -public class BiaxVideoDownTagListAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 下轴轴标记点列表 - */ - @Schema(description ="下轴轴标记点列表") - @NotEmpty(message = "下轴轴标记点不能为空") - private List downTagList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoFeatureTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoFeatureTagAddDTO.java deleted file mode 100644 index 163d8f12..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoFeatureTagAddDTO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 双轴视频特色景观标签新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频特色景观标签新增实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="双轴视频特色景观标签新增实体类") -@Data -public class BiaxVideoFeatureTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - @NotBlank(message = "标签编码不能为空") - private String tagCode; - - /** - * 双轴视频ID - */ - @Schema(description ="双轴视频ID") - @NotNull(message = "双轴视频ID不能为空") - private Long biaxVideoId; - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoPageQuery.java deleted file mode 100644 index fdfa24e1..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoPageQuery.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 双轴视频分页查询类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="双轴视频分页查询类") -@Data -public class BiaxVideoPageQuery extends BasePage { - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - private String biaxVideoName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpTagAddDTO.java deleted file mode 100644 index 50ea88d0..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpTagAddDTO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 双轴视频上轴标记新增实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记新增实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description ="双轴视频上轴标记新增实体类") -public class BiaxVideoUpTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpdateDTO.java deleted file mode 100644 index a578b3a9..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/BiaxVideoUpdateDTO.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 双轴视频更新实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频更新实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频更新实体类") -public class BiaxVideoUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - /*@NotNull(message = "关联景点不能为空")*/ - private Long scenicSpotId; - - /** - * 设备SN - */ - @Schema(description ="设备SN") - @NotBlank(message = "设备SN不能为空") - @Size(max = 50, message = "设备SN长度超过50位") - private String deviceSn; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @NotNull(message = "关联航线不能为空") - private Long routeId; - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - @NotBlank(message = "双轴视频名称不能为空") - @Size(max = 126, message = "双轴视频名称长度超过128位") - private String biaxVideoName; - - /** - * 视频文件 - */ - @Schema(description ="视频文件") - @NotNull(message = "视频文件不能为空") - private FileInfoDto videoFile; - - /** - * 视频时长(秒) - */ - @Schema(description ="视频时长(秒)") - @NotNull(message = "视频时长不能为空") - private Integer videoMins; - - /** - * 上轴标记点每段时长(秒) - */ - @Schema(description ="上轴标记点每段时长(秒)") - @NotNull(message = "上轴标记点每段时长不能为空") - private Integer upTagPosition; - - /** - * 上轴标记点名称列表 - */ - @Schema(description ="上轴标记点名称列表") - @NotEmpty(message = "上轴标记点名称不能为空") - private List upTagList; - - /** - * 下轴轴标记点列表 - */ - @Schema(description ="下轴轴标记点列表") - @NotEmpty(message = "下轴轴标记点不能为空") - private List downTagList; - - /** - * 特色景观标签编码列表 - */ - @Schema(description ="特色景观标签编码列表") - private List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeatureTagDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeatureTagDTO.java deleted file mode 100644 index cdeb371e..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeatureTagDTO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 特色景观标签新增/编辑传输实体类 - * - * @author caiji - * @version 1.0 - * @description 特色景观标签新增/编辑传输实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="特色景观标签新增/编辑传输实体类") -@Data -public class FeatureTagDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeaturedRouteAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeaturedRouteAddDTO.java deleted file mode 100644 index 1ff537b0..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/FeaturedRouteAddDTO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; - -/** - * 精选航线新增实体类 - * - * @author caiji - * @version 1.0 - * @description 精选航线新增实体类 - * @create 2024/7/18 15:40 - **/ -@Schema(description ="精选航线新增实体类") -@Data -public class FeaturedRouteAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description ="航线名称") - @Size(max = 50, message = "航线名称长度超过50位") - private String routeName; - - /** - * 航线文件 - */ - @Schema(description ="航线文件") - private FileInfoDto routeFile; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoAddDTO.java deleted file mode 100644 index a385071f..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoAddDTO.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 全景照片新增实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片新增实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片新增实体类") -public class PanoramaPhotoAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - @NotBlank(message = "照片名称不能为空") - @Size(max = 128, message = "照片名称长度超过128位") - private String photoName; - - /** - * 标记列表 - */ - @Schema(description ="标记列表") - private List tagList; - - /** - * 经度 - */ - @Schema(description ="经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description ="纬度") - private BigDecimal latitude; - - /** - * 特色景观标签编码列表 - */ - @Schema(description ="特色景观标签编码列表") - private List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoFeatureTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoFeatureTagAddDTO.java deleted file mode 100644 index 0e25a3bb..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoFeatureTagAddDTO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 全景照片特色景观标签新增实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片特色景观标签新增实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="全景照片特色景观标签新增实体类") -@Data -public class PanoramaPhotoFeatureTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - @NotBlank(message = "标签编码不能为空") - private String tagCode; - - /** - * 全景照片ID - */ - @Schema(description ="全景照片ID") - @NotNull(message = "全景照片ID不能为空") - private Long panoramaPhotoId; - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoPageQuery.java deleted file mode 100644 index 1f77b6e5..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoPageQuery.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 双轴视频分页查询类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="双轴视频分页查询类") -@Data -public class PanoramaPhotoPageQuery extends BasePage { - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagAddDTO.java deleted file mode 100644 index bb1bada4..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagAddDTO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 全景照片新增实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片新增实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片新增实体类") -public class PanoramaPhotoTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; - - /** - * 照片文件 - */ - @Schema(description ="照片文件") - private FileInfoDto photoFile; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagUpdateDTO.java deleted file mode 100644 index 17ee74eb..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoTagUpdateDTO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 全景照片标记更新实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片标记更新实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片标记更新实体类") -public class PanoramaPhotoTagUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; - - /** - * 照片文件 - */ - @Schema(description ="照片文件") - private FileInfoDto photoFile; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoUpdateDTO.java deleted file mode 100644 index 3d9cfd0e..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PanoramaPhotoUpdateDTO.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 全景照片更新实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片更新实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片更新实体类") -public class PanoramaPhotoUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @NotNull(message = "关联景点不能为空") - private Long scenicSpotId; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - @NotBlank(message = "照片名称不能为空") - @Size(max = 128, message = "照片名称长度超过128位") - private String photoName; - - /** - * 标记列表 - */ - @Schema(description ="标记列表") - private List tagList; - - /** - * 经度 - */ - @Schema(description ="经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description ="纬度") - private BigDecimal latitude; - - /** - * 特色景观标签编码列表 - */ - @Schema(description ="特色景观标签编码列表") - private List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddBatchDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddBatchDTO.java deleted file mode 100644 index d7a3cec2..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddBatchDTO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotEmpty; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 热门景点批量新增实体类 - * - * @author caiji - * @version 1.0 - * @description 热门景点批量新增实体类 - * @create 2024/7/19 9:26 - **/ -@Schema(description ="热门景点批量新增实体类") -@Data -public class PopularScenicSpotAddBatchDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID列表 - */ - @Schema(description ="景点ID列表") - @NotEmpty(message = "景点集合不能为空") - private List scenicSpotIdList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddDTO.java deleted file mode 100644 index 96e401eb..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotAddDTO.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 热门景点新增实体类 - * - * @author caiji - * @version 1.0 - * @description 热门景点新增实体类 - * @create 2024/7/19 9:26 - **/ -@Schema(description ="热门景点新增实体类") -@Data -public class PopularScenicSpotAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @NotNull(message = "景点ID不能为空") - private Long scenicSpotId; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotPageQuery.java deleted file mode 100644 index acf0ebb3..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularScenicSpotPageQuery.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 热门景点分页查询类 - * - * @author caiji - * @version 1.0 - * @description 热门景点分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="热门景点分页查询类") -@Data -public class PopularScenicSpotPageQuery extends BasePage { - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddBatchDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddBatchDTO.java deleted file mode 100644 index 25a281c2..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddBatchDTO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotEmpty; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 热门标签批量新增实体类 - * - * @author caiji - * @version 1.0 - * @description 热门标签批量新增实体类 - * @create 2024/7/19 9:26 - **/ -@Schema(description ="热门标签批量新增实体类") -@Data -public class PopularTagAddBatchDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码列表 - */ - @Schema(description ="标签编码列表") - @NotEmpty(message = "标签列表不能为空") - private List tagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddDTO.java deleted file mode 100644 index 825eb398..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagAddDTO.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.zlt.tourism.dto; - -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/7/19 9:26 - **/ -@Schema(description ="热门标签新增实体类") -@Data -public class PopularTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - @NotBlank(message = "标签编码不能为空") - private String tagCode; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagPageQuery.java deleted file mode 100644 index bb811262..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/PopularTagPageQuery.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 热门标签分页查询类 - * - * @author caiji - * @version 1.0 - * @description 热门标签分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="热门标签分页查询类") -@Data -public class PopularTagPageQuery extends BasePage { - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/RouteBasicPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/RouteBasicPageQuery.java deleted file mode 100644 index bc849592..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/RouteBasicPageQuery.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 景点分页查询类 - * - * @author caiji - * @version 1.0 - * @description 景点分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="景点分页查询类") -@Data -public class RouteBasicPageQuery extends BasePage { - - /** - * 设备SN - */ - @Schema(description ="设备SN") - private String deviceSn; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - private Long scenicSpotId; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 创建航迹人Id - */ - @Schema(description = "创建航迹人Id,如果不传,则查询所有航迹,传了userId,则查询userId航迹") - private Long userId; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddDTO.java deleted file mode 100644 index 80ac8631..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddDTO.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 景点新增实体类 - * - * @author caiji - * @version 1.0 - * @description 景点新增实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点新增/编辑实体类") -@Data -public class ScenicSpotAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - @NotBlank(message = "景点名称不能为空") - @Size(max = 128, message = "景点名称长度超过128位") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - @NotBlank(message = "景点等级不能为空") - @Size(max = 50, message = "景点等级长度超过50位") - private String scenicSpotGrade; - - /** - * 机构编码 - */ - @Schema(description ="机构编码") - @NotBlank(message = "机构编码不能为空") - @Size(max = 32, message = "机构编码长度超过32位") - private String orgCode; - - /** - * 地址-省份编码 - */ - @Schema(description ="地址-省份编码") - @NotBlank(message = "省份编码不能为空") - @Size(max = 32, message = "省份编码长度超过32位") - private String provinceCode; - - /** - * 地址-地市编码 - */ - @Schema(description ="地址-地市编码") - @Size(max = 32, message = "地市编码长度超过32位") - private String cityCode; - - /** - * 地址-景区编码 - */ - @Schema(description ="地址-景区编码") - @Size(max = 32, message = "景区编码长度超过32位") - private String scenicAreaCode; - - /** - * 标签编码集合 - */ - @Schema(description ="标签编码集合") - private List tagCodeList; - - /** - * 关联设备SN - */ - @Schema(description ="关联设备SN") - @NotBlank(message = "关联设备SN不能为空") - @Size(max = 50, message = "关联设备SN长度超过50位") - private String deviceSn; - - /** - * 景点照片文件 - */ - @Schema(description ="景点照片文件") - private FileInfoDto photoFile; - - /** - * 语音讲解文件 - */ - @Schema(description ="语音讲解文件") - private FileInfoDto introduceAudioFile; - - /** - * 虚拟飞行图片文件 - */ - @Schema(description ="虚拟飞行图片文件") - private FileInfoDto virtualFlyPhotoFile; - - /** - * 精选图片文件集合 - */ - @Schema(description ="精选文件集合") - private List featuredPhotoFileList; - - /** - * 精选航线 - */ - @Schema(description ="精选航线") - private List routeList; - - /** - * 热度 - */ - @Schema(description ="热度") - private BigDecimal hotScore; - - /** - * 简介 - */ - @Schema(description ="简介") - @Size(max = 2000, message = "景区简介长度超过2000位") - private String scenicSpotAbout; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddOrUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddOrUpdateDTO.java deleted file mode 100644 index b7689339..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotAddOrUpdateDTO.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 景点新增/编辑实体类 - * - * @author caiji - * @version 1.0 - * @description 景点新增/编辑实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点新增/编辑实体类") -@Data -public class ScenicSpotAddOrUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - @NotBlank(message = "景点名称不能为空") - @Size(max = 128, message = "景点名称长度超过128位") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - @NotBlank(message = "景点等级不能为空") - @Size(max = 50, message = "景点等级长度超过50位") - private String scenicSpotGrade; - - /** - * 地址-省份 - */ - @Schema(description ="地址-省份") - @NotBlank(message = "省份不能为空") - @Size(max = 128, message = "省份长度超过128位") - private String province; - - /** - * 地址-地市 - */ - @Schema(description ="地址-地市") - @NotBlank(message = "地市不能为空") - @Size(max = 128, message = "地市长度超过128位") - private String city; - - /** - * 地址-景区 - */ - @Schema(description ="地址-景区") - @NotBlank(message = "景区不能为空") - @Size(max = 128, message = "景区长度超过50位") - private String scenicArea; - - /** - * 标签ID集合 - */ - @Schema(description ="标签ID集合") - private List tagIdList; - - /** - * 精选图片集合 - */ - @Schema(description ="精选图片集合") - private List featuredPhotoFileList; - - /** - * 精选航线 - */ - @Schema(description ="精选航线") - private List routeList; - - /** - * 简介 - */ - @Schema(description ="简介") - @Size(max = 2000, message = "景区简介长度超过2000位") - private String scenicSpotAbout; - - /** - * 关联设备SN - */ - @Schema(description ="关联设备SN") - @Size(max = 50, message = "关联设备SN长度超过50位") - private String deviceSn; - - /** - * 经度 - */ - @Schema(description ="经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description ="纬度") - private BigDecimal latitude; - - /** - * 高度 - */ - @Schema(description ="高度") - private BigDecimal altitude; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotPageQuery.java deleted file mode 100644 index 95cf1d6e..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotPageQuery.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 景点分页查询类 - * - * @author caiji - * @version 1.0 - * @description 景点分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="景点分页查询类") -@Data -public class ScenicSpotPageQuery extends BasePage { - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - private String scenicSpotGrade; - - /** - * 景点标签 - */ - @Schema(description ="景点标签") - private String tagCode; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotUpdateDTO.java deleted file mode 100644 index ef4d9970..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/ScenicSpotUpdateDTO.java +++ /dev/null @@ -1,135 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 景点新增/编辑实体类 - * - * @author caiji - * @version 1.0 - * @description 景点新增/编辑实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点新增/编辑实体类") -@Data -public class ScenicSpotUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - @NotBlank(message = "景点名称不能为空") - @Size(max = 128, message = "景点名称长度超过128位") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - @NotBlank(message = "景点等级不能为空") - @Size(max = 50, message = "景点等级长度超过50位") - private String scenicSpotGrade; - - /** - * 机构编码 - */ - @Schema(description ="机构编码") - @NotBlank(message = "机构编码不能为空") - @Size(max = 32, message = "机构编码长度超过32位") - private String orgCode; - - /** - * 地址-省份编码 - */ - @Schema(description ="地址-省份编码") - @NotBlank(message = "省份编码不能为空") - @Size(max = 32, message = "省份编码长度超过32位") - private String provinceCode; - - /** - * 地址-地市编码 - */ - @Schema(description ="地址-地市编码") - @Size(max = 32, message = "地市编码长度超过32位") - private String cityCode; - - /** - * 地址-景区编码 - */ - @Schema(description ="地址-景区编码") - @Size(max = 32, message = "景区编码长度超过32位") - private String scenicAreaCode; - - /** - * 热度 - */ - @Schema(description ="热度") - private BigDecimal hotScore; - - /** - * 景点照片文件 - */ - @Schema(description ="景点照片文件") - private FileInfoDto photoFile; - - /** - * 语音讲解文件 - */ - @Schema(description ="语音讲解文件") - private FileInfoDto introduceAudioFile; - - /** - * 虚拟飞行图片文件 - */ - @Schema(description ="虚拟飞行图片文件") - private FileInfoDto virtualFlyPhotoFile; - - /** - * 精选图片文件集合 - */ - @Schema(description ="精选图片文件集合") - private List featuredPhotoFileList; - - /** - * 标签编码集合 - */ - @Schema(description ="标签编码集合") - private List tagCodeList; - - /** - * 精选航线 - */ - @Schema(description ="精选航线") - private List routeList; - - /** - * 简介 - */ - @Schema(description ="简介") - @Size(max = 2000, message = "景区简介长度超过2000位") - private String scenicSpotAbout; - - /** - * 关联设备SN - */ - @Schema(description ="关联设备SN") - @Size(max = 50, message = "关联设备SN长度超过50位") - private String deviceSn; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerAddDTO.java deleted file mode 100644 index e91aa0e8..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerAddDTO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.zlt.tourism.dto; - -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/7/17 14:10 - **/ -@Schema(description ="主播新增实体类") -@Data -public class TourismStreamerAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 手机号 - */ - @Schema(description ="手机号") - @NotBlank(message = "手机号不能为空") - private String mobile; - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerPageQuery.java deleted file mode 100644 index a4ebc426..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismStreamerPageQuery.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 主播分页查询类 - * - * @author caiji - * @version 1.0 - * @description 主播分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="主播分页查询类") -@Data -public class TourismStreamerPageQuery extends BasePage { - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String userName; - - /** - * 真实姓名 - */ - @Schema(description ="真实姓名") - private String realName; - - - /** - * 手机号 - */ - @Schema(description ="手机号") - private String mobile; - - - /** - * 主播类型(1:主播,2:副播) - */ - @Schema(description ="主播类型(1:主播,2:副播)") - private Integer streamerType; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddBatchDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddBatchDTO.java deleted file mode 100644 index eac61501..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddBatchDTO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 标签批量新增实体类 - * - * @author caiji - * @version 1.0 - * @description 标签批量新增实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="标签批量新增实体类") -@Data -public class TourismTagAddBatchDTO implements Serializable { - - private static final long serialVersionUID = 1L; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddDTO.java deleted file mode 100644 index 3555edbc..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagAddDTO.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.dto; - -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/7/17 14:10 - **/ -@Schema(description ="标签新增实体类") -@Data -public class TourismTagAddDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - @NotBlank(message = "标签编码不能为空") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - @NotBlank(message = "标签名称不能为空") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagPageQuery.java deleted file mode 100644 index 5ada1ee9..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagPageQuery.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 标签分页查询类 - * - * @author caiji - * @version 1.0 - * @description 标签分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="标签分页查询类") -@Data -public class TourismTagPageQuery extends BasePage { - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagUpdateDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagUpdateDTO.java deleted file mode 100644 index b83b1eda..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/TourismTagUpdateDTO.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.zlt.tourism.dto; - -import com.baomidou.mybatisplus.annotation.TableField; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serializable; - -/** - * 标签新增实体类 - * - * @author caiji - * @version 1.0 - * @description 标签新增实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="标签新增实体类") -@Data -public class TourismTagUpdateDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @NotNull(message = "主键ID不能为空") - private Long id; - - /** - * 标签编码 - */ - @TableField("tag_code") - @NotBlank(message = "标签编码不能为空") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - @NotBlank(message = "标签名称不能为空") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UploadFileDTO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UploadFileDTO.java deleted file mode 100644 index 4f427559..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UploadFileDTO.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.zlt.tourism.dto; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import org.springframework.web.multipart.MultipartFile; - -import java.io.Serializable; -import java.util.List; - -/** - * 文件传输类 - * - * @author caiji - * @version 1.0 - * @description 文件传输类 - * @create 2024/8/12 15:27 - **/ -@Data -@Schema(description ="文件传输类") -public class UploadFileDTO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 文件 - */ - @Schema(description ="文件") - private List fileList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UserPageQuery.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UserPageQuery.java deleted file mode 100644 index b007f690..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/dto/UserPageQuery.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.zlt.tourism.dto; - -import com.zlt.tourism.core.BasePage; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * 用户分页查询类 - * - * @author caiji - * @version 1.0 - * @description 用户分页查询类 - * @create 2024/7/17 13:59 - **/ -@Schema(description ="用户分页查询类") -@Data -public class UserPageQuery extends BasePage { - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String username; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java deleted file mode 100644 index 607b9329..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/BiaxVideoManager.java +++ /dev/null @@ -1,757 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.*; -import com.zlt.tourism.dto.route.WayPointDTO; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.model.tourism.*; -import com.zlt.tourism.service.*; -import com.zlt.tourism.vo.BiaxVideoDownTagVO; -import com.zlt.tourism.vo.BiaxVideoPageVO; -import com.zlt.tourism.vo.BiaxVideoUpTagVO; -import com.zlt.tourism.vo.BiaxVideoVO; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - -/** - * 双轴视频业务类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频业务类 - * @create 2024/7/18 16:15 - **/ -@Slf4j -@Service -public class BiaxVideoManager { - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoService biaxVideoService; - - /** - * 双轴视频上轴标记业务类 - */ - @Autowired - private BiaxVideoUpTagService biaxVideoUpTagService; - - /** - * 双轴视频下轴标记业务类 - */ - @Autowired - private BiaxVideoDownTagService biaxVideoDownTagService; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 双轴视频特色景观标签业务类 - */ - @Autowired - private BiaxVideoFeatureTagService featureTagService; - - /** - * 航线业务类 - */ - @Resource - private RouteManager routeManager; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService deviceService; - - /** - * 新增 - * - * @param model 实体 - * @param userId 操作用户ID - * @return - */ - public Result add(BiaxVideoAddDTO model, Long userId) { - BiaxVideoEntity entity = new BiaxVideoEntity(); - BeanUtil.copyProperties(model, entity, "videoFile", "videoMins", "upTagPosition"); - if (model.getVideoFile() != null && StrUtil.isNotEmpty(model.getVideoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(model.getVideoFile()); - entity.setVideoFile(photoFile); - } - Result upTagResult = validUpTag(model.getUpTagList()); - if(upTagResult.getResp_code() == 1){ - return upTagResult; - } - if (validDuration(model.getVideoMins(), model.getUpTagPosition(), model.getUpTagList().size())) { - return Result.failed("视频总时长校验未通过,请重新输入每段时长或修改上轴标记点数量!"); - } - if (model.getDownTagList() != null && model.getDownTagList().size() > 0) { - if (model.getDownTagList().size() > 6) { - return Result.failed("下轴标记点最多只能配置6个!"); - } - for (BiaxVideoDownTagAddDTO item : model.getDownTagList()) { - if(StrUtil.isEmpty(item.getTagName())){ - return Result.failed("下轴标记点的名称不能为空!"); - } - if(StrUtil.isEmpty(item.getTagPosition())){ - return Result.failed("下轴标记点的标记位置不能为空!"); - } - if(!item.getTagPosition().contains(":")){ - return Result.failed("下轴标记点的标记位置【" + item.getTagPosition() + "】格式不正确!"); - } - int tempSecond = formatSecond(item.getTagPosition()); - if(tempSecond > model.getUpTagPosition()){ - return Result.failed("下轴标记点位置有误,已超出每段时长,请重新输入!"); - } - } - } - if(model.getRouteId() != null && model.getRouteId() > 0){ - List wayPointList = routeManager.getPointListByRoutId(model.getRouteId()); - if(wayPointList != null && wayPointList.size() > 0){ - List tmpList = wayPointList.stream().filter(o -> o.getLongitude() != null && new BigDecimal(o.getLongitude()).compareTo(BigDecimal.ZERO) > 0 && o.getLatitude() != null && new BigDecimal(o.getLatitude()).compareTo(BigDecimal.ZERO) > 0).collect(Collectors.toList()); - if(tmpList != null && tmpList.size() > 0){ - WayPointDTO wayPointDTO = new WayPointDTO(); - if(tmpList.size() >= 2){ - wayPointDTO = tmpList.get(1); - }else{ - wayPointDTO = tmpList.get(0); - } - entity.setLongitude(new BigDecimal(wayPointDTO.getLongitude())); - entity.setLatitude(new BigDecimal(wayPointDTO.getLatitude())); - } - } - } - if(entity.getLongitude() == null || entity.getLatitude() == null){ - if(StrUtil.isNotEmpty(model.getDeviceSn())){ - IkDeviceEntity deviceEntity = deviceService.getByDeviceSn(model.getDeviceSn()); - if(deviceEntity != null && deviceEntity.getId() != null){ - entity.setLongitude(deviceEntity.getLongitude()); - entity.setLatitude(deviceEntity.getLatitude()); - } - } - } - entity.setVideoMins(formatTime(model.getVideoMins())); - entity.setUpTagPosition(formatTime(model.getUpTagPosition())); - entity.setCreateUserId(userId); - entity.setUpdateUserId(userId); - List existList = biaxVideoService.getListByScenicSpotId(entity.getScenicSpotId()); - if(existList != null && existList.size() > 0){ - for (BiaxVideoEntity item : existList) { - item.setScenicSpotId(0L); - } - biaxVideoService.updateBatchById(existList); - } - boolean result = biaxVideoService.save(entity); - if (result) { - //新增上轴标记 - if (model.getUpTagList() != null && model.getUpTagList().size() > 0) { - List upTagList = new ArrayList<>(); - BiaxVideoUpTagEntity upTagEntity; - int orderNumber = 1; - for (BiaxVideoUpTagAddDTO item : model.getUpTagList()) { - upTagEntity = new BiaxVideoUpTagEntity(); - upTagEntity.setTagName(item.getTagName()); - upTagEntity.setBiaxVideoId(entity.getId()); - upTagEntity.setOrderNumber(orderNumber); - orderNumber++; - upTagList.add(upTagEntity); - } - biaxVideoUpTagService.saveBatch(upTagList); - } - //新增下轴标记 - if (model.getDownTagList() != null && model.getDownTagList().size() > 0) { - List downTagList = new ArrayList<>(); - BiaxVideoDownTagEntity downTagEntity; - int orderNumber = 1; - for (BiaxVideoDownTagAddDTO item : model.getDownTagList()) { - downTagEntity = new BiaxVideoDownTagEntity(); - BeanUtil.copyProperties(item, downTagEntity); - if(item.getTagPosition().contains(":")){ - downTagEntity.setTagPosition(item.getTagPosition().replace(":", ":")); - } - downTagEntity.setBiaxVideoId(entity.getId()); - downTagEntity.setOrderNumber(orderNumber); - orderNumber++; - downTagList.add(downTagEntity); - } - biaxVideoDownTagService.saveBatch(downTagList); - } - //新增特色景观标签 - if(model.getFeatureTagCodeList() != null && model.getFeatureTagCodeList().size() > 0){ - List tagList = new ArrayList<>(); - BiaxVideoFeatureTagEntity tagEntity; - for (String item : model.getFeatureTagCodeList()) { - tagEntity = new BiaxVideoFeatureTagEntity(); - tagEntity.setBiaxVideoId(entity.getId()); - tagEntity.setTagCode(item); - tagList.add(tagEntity); - } - featureTagService.saveBatch(tagList); - } - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 验证下轴标记点 - * @param upTagList 下轴标记点 - * @return - */ - private Result validUpTag(List upTagList){ - if (upTagList == null || upTagList.size() == 0) { - return Result.failed("请配置上轴标记点!"); - } - if (upTagList.size() > 6) { - return Result.failed("上轴标记点最多只能配置6个!"); - } - boolean hasNullName = false; - for (BiaxVideoUpTagAddDTO item : upTagList) { - if(StrUtil.isEmpty(item.getTagName())){ - hasNullName = true; - } - } - if(hasNullName){ - return Result.failed("上轴标记点的名称不能为空!"); - } - return Result.succeed("成功"); - } - - /** - * 判断时长 - * - * @param videoMins 视频时长 - * @param upTagPosition 每段时长 - * @param tagCount 标记数 - * @return - */ - private boolean validDuration(Integer videoMins, Integer upTagPosition, Integer tagCount) { - Integer allTagPosition = upTagPosition * tagCount; - if(videoMins >= (allTagPosition + 3) || videoMins <= (allTagPosition - 3)){ - return true; - } - return false; - } - - /** - * 秒数转换成时间 - * @param seconds 秒数 - * @return - */ - private String formatTime(Integer seconds){ - String time = "00:00"; - if(seconds != null && seconds > 0){ - int hours = seconds / 3600; - int minutes = (seconds % 3600) / 60; - int remainingSeconds = seconds % 60; - if(hours > 0){ - time = String.format("%02d:%02d:%02d", hours, minutes, remainingSeconds); - }else { - time = String.format("%02d:%02d", minutes, remainingSeconds); - } - } - return time; - } - - /** - * 时间转换成秒数 - * @param time 时间 - * @return - */ - private int formatSecond(String time){ - int seconds = 0; - if(StrUtil.isNotEmpty(time)){ - Long totalDuration = 0L; - String[] videoDurationArray = time.split(":"); - if (videoDurationArray.length == 3) { - totalDuration = TimeUnit.HOURS.toMillis(Integer.parseInt(videoDurationArray[0])) + TimeUnit.MINUTES.toMillis(Integer.parseInt(videoDurationArray[1])) + TimeUnit.SECONDS.toMillis(Integer.parseInt(videoDurationArray[2])); - } else if (videoDurationArray.length == 2) { - totalDuration = TimeUnit.MINUTES.toMillis(Integer.parseInt(videoDurationArray[0])) + TimeUnit.SECONDS.toMillis(Integer.parseInt(videoDurationArray[1])); - } - if (totalDuration > 0){ - seconds = totalDuration.intValue() / 1000; - } - } - return seconds; - } - - /** - * 编辑 - * - * @param model 实体 - * @param userId 操作用户 - * @return - */ - public Result update(BiaxVideoUpdateDTO model, Long userId) { - BiaxVideoEntity entity = new BiaxVideoEntity(); - BeanUtil.copyProperties(model, entity, "videoFile", "videoMins", "upTagPosition"); - if (model.getVideoFile() != null && StrUtil.isNotEmpty(model.getVideoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(model.getVideoFile()); - entity.setVideoFile(photoFile); - } - Result upTagResult = validUpTag(model.getUpTagList()); - if(upTagResult.getResp_code() == 1){ - return upTagResult; - } - if (validDuration(model.getVideoMins(), model.getUpTagPosition(), model.getUpTagList().size())) { - return Result.failed("视频总时长校验未通过,请重新输入每段时长或修改上轴标记点数量!"); - } - if (model.getDownTagList() != null && model.getDownTagList().size() > 0) { - if (model.getDownTagList().size() > 6) { - return Result.failed("下轴标记点最多只能配置6个!"); - } - for (BiaxVideoDownTagAddDTO item : model.getDownTagList()) { - if(StrUtil.isEmpty(item.getTagName())){ - return Result.failed("下轴标记点的名称不能为空!"); - } - if(StrUtil.isEmpty(item.getTagPosition())){ - return Result.failed("下轴标记点的标记位置不能为空!"); - } - if(!item.getTagPosition().contains(":")){ - return Result.failed("下轴标记点的标记位置【" + item.getTagPosition() + "】格式不正确!"); - } - int tempSecond = formatSecond(item.getTagPosition()); - if(tempSecond > model.getUpTagPosition()){ - return Result.failed("下轴标记点位置有误,已超出每段时长,请重新输入!"); - } - } - }else{ - return Result.failed("请配置下轴标记点!"); - } - if(model.getRouteId() != null && model.getRouteId() > 0){ - List wayPointList = routeManager.getPointListByRoutId(model.getRouteId()); - if(wayPointList != null && wayPointList.size() > 0){ - List tmpList = wayPointList.stream().filter(o -> o.getLongitude() != null && new BigDecimal(o.getLongitude()).compareTo(BigDecimal.ZERO) > 0 && o.getLatitude() != null && new BigDecimal(o.getLatitude()).compareTo(BigDecimal.ZERO) > 0).collect(Collectors.toList()); - if(tmpList != null && tmpList.size() > 0){ - WayPointDTO wayPointDTO = new WayPointDTO(); - if(tmpList.size() >= 2){ - wayPointDTO = tmpList.get(1); - }else{ - wayPointDTO = tmpList.get(0); - } - entity.setLongitude(new BigDecimal(wayPointDTO.getLongitude())); - entity.setLatitude(new BigDecimal(wayPointDTO.getLatitude())); - } - } - } - if(entity.getLongitude() == null || entity.getLatitude() == null){ - if(StrUtil.isNotEmpty(model.getDeviceSn())){ - IkDeviceEntity deviceEntity = deviceService.getByDeviceSn(model.getDeviceSn()); - if(deviceEntity != null && deviceEntity.getId() != null){ - entity.setLongitude(deviceEntity.getLongitude()); - entity.setLatitude(deviceEntity.getLatitude()); - } - } - } - entity.setVideoMins(formatTime(model.getVideoMins())); - entity.setUpTagPosition(formatTime(model.getUpTagPosition())); - entity.setUpdateUserId(userId); - List existList = biaxVideoService.getListByScenicSpotId(entity.getScenicSpotId()); - if(existList != null && existList.size() > 0){ - for (BiaxVideoEntity item : existList) { - item.setScenicSpotId(0L); - } - biaxVideoService.updateBatchById(existList); - } - boolean result = biaxVideoService.updateById(entity); - if (result) { - //更新上轴标记 - updateUpTag(model.getId(), model.getUpTagList()); - //更新下轴标记 - updateDownTag(model.getId(), model.getDownTagList()); - //更新特色景观标签 - if(model.getFeatureTagCodeList() != null && model.getFeatureTagCodeList().size() > 0){ - updateFeatureTag(model.getId(), model.getFeatureTagCodeList()); - } - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 更新特色景观标签 - * @param biaxVideoId 双轴视频ID - * @param featureTagCodeList 特色景观列表 - */ - private boolean updateFeatureTag(Long biaxVideoId, List featureTagCodeList) { - boolean result = false; - if (biaxVideoId != null) { - featureTagService.deleteByBiaxVideoId(biaxVideoId); - if (featureTagCodeList != null && featureTagCodeList.size() > 0) { - List list = new ArrayList<>(featureTagCodeList.size()); - BiaxVideoFeatureTagEntity model; - for (String item : featureTagCodeList) { - model = new BiaxVideoFeatureTagEntity(); - model.setTagCode(item); - model.setBiaxVideoId(biaxVideoId); - list.add(model); - } - result = featureTagService.saveBatch(list); - } - } - return result; - } - - /** - * 更新下轴标记 - * - * @param biaxVideoId 双轴视频ID - * @param downTagList 下轴标记列表 - */ - private boolean updateDownTag(Long biaxVideoId, List downTagList) { - boolean result = false; - if (biaxVideoId != null) { - biaxVideoDownTagService.deleteByBiaxVideoId(biaxVideoId); - if (downTagList != null && downTagList.size() > 0) { - List list = new ArrayList<>(downTagList.size()); - BiaxVideoDownTagEntity model; - int orderNumber = 1; - for (BiaxVideoDownTagAddDTO item : downTagList) { - model = new BiaxVideoDownTagEntity(); - BeanUtil.copyProperties(item, model); - if(item.getTagPosition().contains(":")){ - model.setTagPosition(item.getTagPosition().replace(":", ":")); - } - model.setBiaxVideoId(biaxVideoId); - model.setOrderNumber(orderNumber); - orderNumber++; - list.add(model); - } - result = biaxVideoDownTagService.saveBatch(list); - } - } - return result; - } - - /** - * 更新上轴标记 - * - * @param biaxVideoId 双轴视频ID - * @param upTagNameList 上轴标记列表 - * @return - */ - private boolean updateUpTag(Long biaxVideoId, List upTagNameList) { - boolean result = false; - if (biaxVideoId != null) { - biaxVideoUpTagService.deleteByBiaxVideoId(biaxVideoId); - if (upTagNameList != null && upTagNameList.size() > 0) { - List list = new ArrayList<>(upTagNameList.size()); - BiaxVideoUpTagEntity model; - int orderNumber = 1; - for (BiaxVideoUpTagAddDTO item : upTagNameList) { - model = new BiaxVideoUpTagEntity(); - model.setTagName(item.getTagName()); - model.setBiaxVideoId(biaxVideoId); - model.setOrderNumber(orderNumber); - orderNumber++; - list.add(model); - } - result = biaxVideoUpTagService.saveBatch(list); - } - } - return result; - } - - /** - * 获取分页 - * - * @param query 查询条件 - * @return - */ - public PageInfo selectPageList(BiaxVideoPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(query.getBiaxVideoName()), BiaxVideoEntity::getBiaxVideoName, query.getBiaxVideoName()); - qw.orderByDesc(BiaxVideoEntity::getCreatedAt); - PageInfo tagPageList = biaxVideoService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(tagPageList, pageList); - if (tagPageList.getList() != null && tagPageList.getList().size() > 0) { - List list = tagPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (BiaxVideoEntity item : list) { - BiaxVideoPageVO model = doToPageVO(item); - voList.add(model); - } - pageList.setList(voList); - } - return pageList;*/ - return null; - } - - /** - * 实体转分页实体 - * - * @param item 实体 - * @return - */ - private BiaxVideoPageVO doToPageVO(BiaxVideoEntity item) { - BiaxVideoPageVO model = new BiaxVideoPageVO(); - BeanUtil.copyProperties(item, model); - if (item.getScenicSpotId() != null) { - ScenicSpotEntity scenicSpotEntity = scenicSpotService.getById(item.getScenicSpotId()); - if (scenicSpotEntity != null && StrUtil.isNotEmpty(scenicSpotEntity.getScenicSpotName())) { - String scenicSpotName = scenicSpotEntity.getScenicSpotName(); - model.setScenicSpotName(scenicSpotName); - } - } - List biaxVideoUpTagList = biaxVideoUpTagService.getListByBiaxVideoId(item.getId()); - if (biaxVideoUpTagList != null && biaxVideoUpTagList.size() > 0) { - List upTagList = biaxVideoUpTagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagName())).map(BiaxVideoUpTagEntity::getTagName).collect(Collectors.toList()); - model.setUpTagNameList(upTagList); - } - List biaxVideoDownTagList = biaxVideoDownTagService.getByBiaxVideoId(item.getId()); - if (biaxVideoDownTagList != null && biaxVideoDownTagList.size() > 0) { - List downTagNameList = biaxVideoDownTagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagName())).map(BiaxVideoDownTagEntity::getTagName).collect(Collectors.toList()); - model.setDownTagNameList(downTagNameList); - } - if (model.getRouteId() != null) { - //@TODO 待项目启动后完成 - /*RouteDTO routeDTO = routeManager.getById(item.getRouteId()); - if (routeDTO != null && routeDTO.getRouteRunNum() != null) { - if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - model.setRouteName(routeName); - } - }*/ - } - return model; - } - - /** - * 根据主键ID删除记录 - * - * @param id 主键ID - * @return - */ - public Result delete(Long id) { - if (id != null) { - boolean result = biaxVideoService.removeById(id); - if (result) { - biaxVideoUpTagService.deleteByBiaxVideoId(id); - biaxVideoDownTagService.deleteByBiaxVideoId(id); - featureTagService.deleteByBiaxVideoId(id); - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } else { - return Result.failed("主键ID为空,操作失败!"); - } - } - - /** - * 根据主键ID获取详情 - * - * @param id 主键ID - * @return - */ - public BiaxVideoVO getEntity(Long id) { - BiaxVideoVO model = new BiaxVideoVO(); - BiaxVideoEntity entity = biaxVideoService.getById(id); - if (entity != null && entity.getId() != null) { - BeanUtil.copyProperties(entity, model, "videoFile", "videoMins", "upTagPosition"); - if (StrUtil.isNotEmpty(entity.getVideoFile())) { - JSONObject json = JSONObject.parseObject(entity.getVideoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setVideoFile(fileInfoDto); - } - model.setVideoMins(formatSecond(entity.getVideoMins())); - model.setUpTagPosition(formatSecond(entity.getUpTagPosition())); - List biaxVideoUpTagList = biaxVideoUpTagService.getListByBiaxVideoId(id); - if (biaxVideoUpTagList != null && biaxVideoUpTagList.size() > 0) { - List upTagList = new ArrayList<>(biaxVideoUpTagList.size()); - BiaxVideoUpTagVO upTagVO; - for (BiaxVideoUpTagEntity item : biaxVideoUpTagList) { - upTagVO = new BiaxVideoUpTagVO(); - BeanUtil.copyProperties(item, upTagVO); - upTagList.add(upTagVO); - } - model.setUpTagList(upTagList); - } - List biaxVideoDownTagList = biaxVideoDownTagService.getByBiaxVideoId(id); - if (biaxVideoDownTagList != null && biaxVideoDownTagList.size() > 0) { - List downTagList = new ArrayList<>(biaxVideoDownTagList.size()); - BiaxVideoDownTagVO downTagVO; - for (BiaxVideoDownTagEntity item : biaxVideoDownTagList) { - downTagVO = new BiaxVideoDownTagVO(); - BeanUtil.copyProperties(item, downTagVO); - if(item.getTagPosition().contains(":")){ - downTagVO.setTagPosition(item.getTagPosition().replace(":", ":")); - } - downTagList.add(downTagVO); - } - model.setDownTagList(downTagList); - } - List featureTagList = featureTagService.getListByBiaxVideoId(id); - if(featureTagList != null && featureTagList.size() > 0){ - List tagCodeList = featureTagList.stream().map(BiaxVideoFeatureTagEntity::getTagCode).collect(Collectors.toList()); - model.setFeatureTagCodeList(tagCodeList); - } - if(entity.getRouteId() != null){ - //@TODO 待项目启动后完成 - /*RouteDTO routeDTO = routeManager.getById(entity.getRouteId()); - if (routeDTO != null && routeDTO.getRouteRunNum() != null) { - if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - model.setRouteName(routeName); - } - }*/ - } - } - return model; - } - - /** - * 新增下轴标记点 - * - * @param model 下轴标记点 - * @param userId 操作用户ID - * @return - */ - public Result addDownTag(BiaxVideoDownTagListAddDTO model, Long userId) { - BiaxVideoEntity entity = biaxVideoService.getById(model.getId()); - if (entity == null || entity.getId() == null) { - return Result.failed("请先配置基础信息和上轴标记点!"); - } - if (model.getDownTagList() == null || model.getDownTagList().size() == 0) { - return Result.failed("请配置下轴标记点!"); - } - if (model.getDownTagList().size() > 6) { - return Result.failed("下轴标记点最多只能配置6个!"); - } - //更新下轴标记 - boolean result = updateDownTag(model.getId(), model.getDownTagList()); - if (result) { - entity.setUpdateUserId(userId); - entity.setUpdatedAt(new Date()); - biaxVideoService.updateById(entity); - } - return result ? Result.succeed("成功") : Result.failed("失败"); - } - - /** - * 更新基础信息 - * - * @param model 实体 - * @param userId 操作用户ID - * @return - */ - public Result updateBasicInfo(BiaxVideoBasicUpdateDTO model, Long userId) { - BiaxVideoEntity entity = new BiaxVideoEntity(); - BeanUtil.copyProperties(model, entity, "videoFile", "videoMins", "upTagPosition"); - if (model.getVideoFile() != null && StrUtil.isNotEmpty(model.getVideoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(model.getVideoFile()); - entity.setVideoFile(photoFile); - } - if (model.getUpTagList() == null || model.getUpTagList().size() == 0) { - return Result.failed("请配置上轴标记点!"); - } - if (model.getUpTagList().size() > 6) { - return Result.failed("上轴标记点最多只能配置6个!"); - } - if (validDuration(model.getVideoMins(), model.getUpTagPosition(), model.getUpTagList().size())) { - return Result.failed("视频总时长校验未通过,请重新输入每段时长或修改上轴标记点数量!"); - } - entity.setVideoMins(formatTime(model.getVideoMins())); - entity.setUpTagPosition(formatTime(model.getUpTagPosition())); - entity.setUpdateUserId(userId); - boolean result = biaxVideoService.updateById(entity); - if (result) { - //更新上轴标记 - updateUpTag(model.getId(), model.getUpTagList()); - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 新增基础信息和上轴标记点 - * - * @param model 实体 - * @param userId 操作用户ID - * @return - */ - public Result addBasicInfo(BiaxVideoBasicAddDTO model, Long userId) { - BiaxVideoEntity entity = new BiaxVideoEntity(); - BeanUtil.copyProperties(model, entity, "videoFile", "videoMins", "upTagPosition"); - if (model.getVideoFile() != null && StrUtil.isNotEmpty(model.getVideoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(model.getVideoFile()); - entity.setVideoFile(photoFile); - } - if (model.getUpTagList() == null || model.getUpTagList().size() == 0) { - return Result.failed("请配置上轴标记点!"); - } - if (model.getUpTagList().size() > 6) { - return Result.failed("上轴标记点最多只能配置6个!"); - } - if (validDuration(model.getVideoMins(), model.getUpTagPosition(), model.getUpTagList().size())) { - return Result.failed("视频总时长校验未通过,请重新输入每段时长或修改上轴标记点数量!"); - } - entity.setVideoMins(formatTime(model.getVideoMins())); - entity.setUpTagPosition(formatTime(model.getUpTagPosition())); - entity.setCreateUserId(userId); - entity.setUpdateUserId(userId); - boolean result = biaxVideoService.save(entity); - if (result) { - //新增上轴标记 - if (model.getUpTagList() != null && model.getUpTagList().size() > 0) { - List upTagList = new ArrayList<>(); - BiaxVideoUpTagEntity upTagEntity; - int orderNumber = 1; - for (BiaxVideoUpTagAddDTO item : model.getUpTagList()) { - upTagEntity = new BiaxVideoUpTagEntity(); - upTagEntity.setTagName(item.getTagName()); - upTagEntity.setBiaxVideoId(entity.getId()); - upTagEntity.setOrderNumber(orderNumber); - orderNumber++; - upTagList.add(upTagEntity); - } - biaxVideoUpTagService.saveBatch(upTagList); - } - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 判断景点是否已绑定双轴视频 - * @param scenicSpotId 景点ID - * @return - */ - public boolean existScenicSpot(Long scenicSpotId, Long biaxVideoId) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(BiaxVideoEntity::getScenicSpotId, scenicSpotId); - if(biaxVideoId != null){ - qw.ne(BiaxVideoEntity::getId, biaxVideoId); - } - long count = biaxVideoService.count(qw); - return count > 0; - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java deleted file mode 100644 index f8188e45..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/PanoramaPhotoManager.java +++ /dev/null @@ -1,354 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.*; -import com.zlt.tourism.model.tourism.PanoramaPhotoEntity; -import com.zlt.tourism.model.tourism.PanoramaPhotoFeatureTagEntity; -import com.zlt.tourism.model.tourism.PanoramaPhotoTagEntity; -import com.zlt.tourism.model.tourism.ScenicSpotEntity; -import com.zlt.tourism.service.PanoramaPhotoFeatureTagService; -import com.zlt.tourism.service.PanoramaPhotoService; -import com.zlt.tourism.service.PanoramaPhotoTagService; -import com.zlt.tourism.service.ScenicSpotService; -import com.zlt.tourism.vo.PanoramaPhotoPageVO; -import com.zlt.tourism.vo.PanoramaPhotoTagVO; -import com.zlt.tourism.vo.PanoramaPhotoVO; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -/** - * 全景照片业务类 - * - * @author caiji - * @version 1.0 - * @description 全景照片业务类 - * @create 2024/7/18 17:37 - **/ -@Slf4j -@Service -public class PanoramaPhotoManager { - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoService panoramaPhotoService; - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoTagService panoramaPhotoTagService; - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 全景照片特色景观标签业务类 - */ - @Autowired - private PanoramaPhotoFeatureTagService featureTagService; - - /** - * 新增 - * - * @param model 实体 - * @param userId 操作用户ID - * @return - */ - - public Result add(PanoramaPhotoAddDTO model, Long userId) { - PanoramaPhotoEntity entity = new PanoramaPhotoEntity(); - BeanUtil.copyProperties(model, entity); - if (model.getLongitude() != null && model.getLongitude().compareTo(BigDecimal.ZERO) > 0) { - entity.setLongitude(model.getLongitude().add(new BigDecimal(180))); - } - if (model.getLatitude() != null && model.getLatitude().compareTo(BigDecimal.ZERO) > 0) { - entity.setLatitude(model.getLatitude().add(new BigDecimal(90))); - } - entity.setCreateUserId(userId); - entity.setUpdateUserId(userId); - List existList = panoramaPhotoService.getListByScenicSpotId(entity.getScenicSpotId()); - if(existList != null && existList.size() > 0){ - for (PanoramaPhotoEntity item : existList) { - item.setScenicSpotId(0L); - } - panoramaPhotoService.updateBatchById(existList); - } - boolean result = panoramaPhotoService.save(entity); - if (result) { - //新增标记 - if (model.getTagList() != null && model.getTagList().size() > 0) { - List tagList = new ArrayList<>(model.getTagList().size()); - PanoramaPhotoTagEntity tagEntity; - for (PanoramaPhotoTagAddDTO item : model.getTagList()) { - tagEntity = new PanoramaPhotoTagEntity(); - BeanUtil.copyProperties(item, tagEntity, "photoFile"); - if (item.getPhotoFile() != null && StrUtil.isNotEmpty(item.getPhotoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(item.getPhotoFile()); - tagEntity.setPhotoFile(photoFile); - } - tagEntity.setPanoramaPhotoId(entity.getId()); - tagList.add(tagEntity); - } - panoramaPhotoTagService.saveBatch(tagList); - } - //新增特色景观标签 - if (model.getFeatureTagCodeList() != null && model.getFeatureTagCodeList().size() > 0) { - List tagList = new ArrayList<>(); - PanoramaPhotoFeatureTagEntity tagEntity; - for (String item : model.getFeatureTagCodeList()) { - tagEntity = new PanoramaPhotoFeatureTagEntity(); - tagEntity.setPanoramaPhotoId(entity.getId()); - tagEntity.setTagCode(item); - tagList.add(tagEntity); - } - featureTagService.saveBatch(tagList); - } - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 更新 - * - * @param model 实体 - * @param userId 操作用户ID - * @return - */ - public Result update(PanoramaPhotoUpdateDTO model, Long userId) { - PanoramaPhotoEntity entity = new PanoramaPhotoEntity(); - BeanUtil.copyProperties(model, entity); - if (model.getLongitude() != null && model.getLongitude().compareTo(BigDecimal.ZERO) > 0) { - entity.setLongitude(model.getLongitude().add(new BigDecimal(180))); - } - if (model.getLatitude() != null && model.getLatitude().compareTo(BigDecimal.ZERO) > 0) { - entity.setLatitude(model.getLatitude().add(new BigDecimal(90))); - } - entity.setUpdateUserId(userId); - List existList = panoramaPhotoService.getListByScenicSpotId(entity.getScenicSpotId()); - if(existList != null && existList.size() > 0){ - for (PanoramaPhotoEntity item : existList) { - item.setScenicSpotId(0L); - } - panoramaPhotoService.updateBatchById(existList); - } - boolean result = panoramaPhotoService.updateById(entity); - if (result) { - //更新标记 - updateUpTag(model.getId(), model.getTagList()); - //更新特色景观标签 - if (model.getFeatureTagCodeList() != null && model.getFeatureTagCodeList().size() > 0) { - updateFeatureTag(model.getId(), model.getFeatureTagCodeList()); - } - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 更新特色景观标签 - * - * @param panoramaPhotoId 双轴视频ID - * @param featureTagCodeList 特色景观列表 - */ - private boolean updateFeatureTag(Long panoramaPhotoId, List featureTagCodeList) { - boolean result = false; - if (panoramaPhotoId != null) { - featureTagService.deleteByPanoramaPhotoId(panoramaPhotoId); - if (featureTagCodeList != null && featureTagCodeList.size() > 0) { - List list = new ArrayList<>(featureTagCodeList.size()); - PanoramaPhotoFeatureTagEntity model; - for (String item : featureTagCodeList) { - model = new PanoramaPhotoFeatureTagEntity(); - model.setTagCode(item); - model.setPanoramaPhotoId(panoramaPhotoId); - list.add(model); - } - result = featureTagService.saveBatch(list); - } - } - return result; - } - - /** - * 更新标记 - * - * @param panoramaPhotoId 全景照片ID - * @param tagNameList 标签名称列表 - */ - private boolean updateUpTag(Long panoramaPhotoId, List tagNameList) { - boolean result = false; - if (panoramaPhotoId != null) { - panoramaPhotoTagService.deleteByPanoramaPhotoId(panoramaPhotoId); - if (tagNameList != null && tagNameList.size() > 0) { - List list = new ArrayList<>(tagNameList.size()); - PanoramaPhotoTagEntity model; - for (PanoramaPhotoTagUpdateDTO item : tagNameList) { - model = new PanoramaPhotoTagEntity(); - BeanUtil.copyProperties(item, model, "photoFile"); - if (item.getPhotoFile() != null && StrUtil.isNotEmpty(item.getPhotoFile().getUrl())) { - String photoFile = JSONObject.toJSONString(item.getPhotoFile()); - model.setPhotoFile(photoFile); - } - model.setPanoramaPhotoId(panoramaPhotoId); - list.add(model); - } - result = panoramaPhotoTagService.saveBatch(list); - } - } - return result; - } - - /** - * 根据主键ID删除记录 - * - * @param id 主键ID - * @return - */ - public Result delete(Long id) { - if (id != null) { - boolean result = panoramaPhotoService.removeById(id); - if (result) { - panoramaPhotoTagService.deleteByPanoramaPhotoId(id); - featureTagService.deleteByPanoramaPhotoId(id); - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } else { - return Result.failed("主键ID为空,操作失败!"); - } - } - - /** - * 获取分页 - * - * @param query 查询条件 - * @return - */ - public PageInfo selectPageList(PanoramaPhotoPageQuery query) { - /*LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.like(StrUtil.isNotEmpty(query.getPhotoName()), PanoramaPhotoEntity::getPhotoName, query.getPhotoName()); - qw.orderByDesc(PanoramaPhotoEntity::getCreatedAt); - PageInfo tagPageList = panoramaPhotoService.selectPageList(query.getPager(), qw); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(tagPageList, pageList); - if (tagPageList.getList() != null && tagPageList.getList().size() > 0) { - List list = tagPageList.getList(); - List voList = new ArrayList<>(list.size()); - for (PanoramaPhotoEntity item : list) { - PanoramaPhotoPageVO model = doToPageVO(item); - voList.add(model); - } - pageList.setList(voList); - } - return pageList;*/ - return null; - } - - /** - * 实体转分页实体 - * - * @param item 实体 - * @return - */ - private PanoramaPhotoPageVO doToPageVO(PanoramaPhotoEntity item) { - PanoramaPhotoPageVO model = new PanoramaPhotoPageVO(); - BeanUtil.copyProperties(item, model); - if (item.getScenicSpotId() != null) { - ScenicSpotEntity scenicSpotEntity = scenicSpotService.getById(item.getScenicSpotId()); - if (scenicSpotEntity != null && StrUtil.isNotEmpty(scenicSpotEntity.getScenicSpotName())) { - String scenicSpotName = scenicSpotEntity.getScenicSpotName(); - model.setScenicSpotName(scenicSpotName); - } - } - List tagList = panoramaPhotoTagService.getListByPanoramaPhotoId(item.getId()); - if (tagList != null && tagList.size() > 0) { - List tagNameList = tagList.stream().filter(o -> StrUtil.isNotEmpty(o.getTagName())).map(PanoramaPhotoTagEntity::getTagName).collect(Collectors.toList()); - model.setTagNameList(tagNameList); - } - if (item.getLongitude() != null && item.getLongitude().compareTo(BigDecimal.ZERO) > 0) { - model.setLongitude(item.getLongitude().subtract(new BigDecimal(180))); - } - if (item.getLatitude() != null && item.getLatitude().compareTo(BigDecimal.ZERO) > 0) { - model.setLatitude(item.getLatitude().subtract(new BigDecimal(90))); - } - return model; - } - - /** - * 根据主键ID获取记录 - * - * @param id 主键ID - * @return - */ - public PanoramaPhotoVO getEntity(Long id) { - PanoramaPhotoVO model = new PanoramaPhotoVO(); - PanoramaPhotoEntity entity = panoramaPhotoService.getById(id); - if (entity != null && entity.getId() != null) { - BeanUtil.copyProperties(entity, model); - List tagList = panoramaPhotoTagService.getListByPanoramaPhotoId(id); - if (tagList != null && tagList.size() > 0) { - List tagVOList = new ArrayList<>(); - PanoramaPhotoTagVO tagVO; - for (PanoramaPhotoTagEntity item : tagList) { - tagVO = new PanoramaPhotoTagVO(); - BeanUtil.copyProperties(item, tagVO, "photoFile"); - if (StrUtil.isNotEmpty(item.getPhotoFile())) { - JSONObject json = JSONObject.parseObject(item.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - tagVO.setPhotoFile(fileInfoDto); - } - tagVOList.add(tagVO); - } - model.setTagList(tagVOList); - } - List featureTagList = featureTagService.getListByPanoramaPhotoId(id); - if (featureTagList != null && featureTagList.size() > 0) { - List tagCodeList = featureTagList.stream().map(PanoramaPhotoFeatureTagEntity::getTagCode).collect(Collectors.toList()); - model.setFeatureTagCodeList(tagCodeList); - } - if (entity.getLongitude() != null && entity.getLongitude().compareTo(BigDecimal.ZERO) > 0) { - model.setLongitude(entity.getLongitude().subtract(new BigDecimal(180))); - } - if (entity.getLatitude() != null && entity.getLatitude().compareTo(BigDecimal.ZERO) > 0) { - model.setLatitude(entity.getLatitude().subtract(new BigDecimal(90))); - } - } - return model; - } - - /** - * 判断景点是否已绑定全景照片 - * - * @param scenicSpotId 景点ID - * @return - */ - public boolean existScenicSpot(Long scenicSpotId, Long panoramaPhotoId) { - LambdaQueryWrapper qw = new LambdaQueryWrapper<>(); - qw.eq(PanoramaPhotoEntity::getScenicSpotId, scenicSpotId); - if(panoramaPhotoId != null){ - qw.ne(PanoramaPhotoEntity::getId, panoramaPhotoId); - } - long count = panoramaPhotoService.count(qw); - return count > 0; - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java deleted file mode 100644 index 5771d1d8..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/manager/ScenicSpotManager.java +++ /dev/null @@ -1,680 +0,0 @@ -package com.zlt.tourism.manager; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONObject; -import com.central.common.model.Result; -import com.github.pagehelper.PageInfo; -import com.zlt.tourism.dto.*; -import com.zlt.tourism.model.iking.IkDeviceEntity; -import com.zlt.tourism.model.tourism.*; -import com.zlt.tourism.service.*; -import com.zlt.tourism.vo.FeaturedRouteVO; -import com.zlt.tourism.vo.ScenicSpotPageVO; -import com.zlt.tourism.vo.ScenicSpotVO; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 景点业务类 - * - * @author caiji - * @version 1.0 - * @description 景点业务类 - * @create 2024/7/18 13:19 - **/ -@Slf4j -@Service -public class ScenicSpotManager { - - /** - * 景点业务类 - */ - @Autowired - private ScenicSpotService scenicSpotService; - - /** - * 景点标签业务类 - */ - @Autowired - private ScenicSpotTagService scenicSpotTagService; - - /** - * 精选图片业务类 - */ - @Autowired - private FeaturedPhotoService featuredPhotoService; - - /** - * 景点设备关系业务类 - */ - @Autowired - private ScenicSpotDeviceService scenicSpotDeviceService; - - /** - * 标签业务类 - */ - @Autowired - private TourismTagService tagService; - - /** - * 精选航线业务类 - */ - @Autowired - private FeaturedRouteService featuredRouteService; - - /** - * 热门景点业务类 - */ - @Autowired - private PopularScenicSpotService popularScenicSpotService; - - /** - * 我的收藏业务类 - */ - @Autowired - private MyFavoriteService myFavoriteService; - - /** - * 双轴视频业务类 - */ - @Autowired - private BiaxVideoService biaxVideoService; - - /** - * 全景照片业务类 - */ - @Autowired - private PanoramaPhotoService panoramaPhotoService; - - /** - * 设备业务类 - */ - @Autowired - private IkDeviceService ikDeviceService; - - /** - * 航线业务类 - */ - @Resource - private RouteManager routeManager; - - /** - * 机构业务类 - */ -// @Autowired -// private OrganizationManager organizationManager; - - /** - * 更新航线 - * - * @param scenicSpotId 景点ID - * @param routeList 航线列表 - * @param isUpdate 是否新增 - * @return - */ - private boolean updateRoute(Long scenicSpotId, List routeList, boolean isUpdate) { - boolean result = false; - if (scenicSpotId != null) { - if (isUpdate) { - //先删除 - featuredRouteService.deleteByScenicSpotId(scenicSpotId); - } - if (routeList != null && routeList.size() > 0) { - List featuredRouteList = new ArrayList<>(); - List routeIdList = new ArrayList<>(); - FeaturedRouteEntity featuredRouteEntity; - int orderNumber = 1; - for (FeaturedRouteAddDTO item : routeList) { - if(item.getRouteId() != null){ - if(!routeIdList.contains(item.getRouteId().toString())){ - featuredRouteEntity = new FeaturedRouteEntity(); - if(item.getRouteFile() != null && StrUtil.isNotEmpty(item.getRouteFile().getUrl())){ - featuredRouteEntity.setRouteFile(JSONObject.toJSONString(item.getRouteFile())); - } - featuredRouteEntity.setScenicSpotId(scenicSpotId); - featuredRouteEntity.setRouteId(item.getRouteId()); - featuredRouteEntity.setRouteName(item.getRouteName()); - featuredRouteEntity.setOrderNumber(orderNumber); - featuredRouteList.add(featuredRouteEntity); - orderNumber++; - routeIdList.add(item.toString()); - } - } - } - result = featuredRouteService.saveBatch(featuredRouteList); - } else { - result = true; - } - } - return result; - } - - /** - * 更新景点标签 - * - * @param scenicSpotId 景点ID - * @param tagCodeList 标签编码集合 - * @param isUpdate 是否是更新 - * @return - */ - private boolean updateTag(Long scenicSpotId, List tagCodeList, boolean isUpdate) { - boolean result = false; - if (scenicSpotId != null) { - if (isUpdate) { - //先删除 - scenicSpotTagService.deleteByScenicSpotId(scenicSpotId); - } - if (tagCodeList != null && tagCodeList.size() > 0) { - List scenicSpotTagList = new ArrayList<>(); - ScenicSpotTagEntity scenicSpotTagEntity; - for (String item : tagCodeList) { - scenicSpotTagEntity = new ScenicSpotTagEntity(); - scenicSpotTagEntity.setTagCode(item); - scenicSpotTagEntity.setScenicSpotId(scenicSpotId); - scenicSpotTagList.add(scenicSpotTagEntity); - } - result = scenicSpotTagService.saveBatch(scenicSpotTagList); - } else { - result = true; - } - } - return result; - } - - /** - * 更新精选图片 - * - * @param scenicSpotId 景点ID - * @param featuredPhotoFileList 精选图片集合 - * @param isUpdate 是否是更新 - * @return - */ - private boolean updateFeaturedPhoto(Long scenicSpotId, List featuredPhotoFileList, boolean isUpdate) { - boolean result = false; - if (scenicSpotId != null) { - if (isUpdate) { - //先删除 - featuredPhotoService.deleteByScenicSpotId(scenicSpotId); - } - if (featuredPhotoFileList != null && featuredPhotoFileList.size() > 0) { - List featuredPhotoList = new ArrayList<>(); - FeaturedPhotoEntity featuredPhotoEntity; - int orderNumber = 1; - for (FileInfoDto item : featuredPhotoFileList) { - if(item != null && StrUtil.isNotEmpty(item.getUrl())){ - featuredPhotoEntity = new FeaturedPhotoEntity(); - featuredPhotoEntity.setPhotoFile(JSONObject.toJSONString(item)); - featuredPhotoEntity.setScenicSpotId(scenicSpotId); - featuredPhotoEntity.setOrderNumber(orderNumber); - featuredPhotoList.add(featuredPhotoEntity); - orderNumber++; - } - } - if(featuredPhotoList != null && featuredPhotoList.size() > 0){ - result = featuredPhotoService.saveBatch(featuredPhotoList); - } - } else { - result = true; - } - } - return result; - } - - /** - * 更新景点和设备关联关系 - * - * @param scenicSpotId 景点ID - * @param deviceSn 设备SN - * @param isUpdate 是否是更新 - * @return - */ - private boolean updateDevice(Long scenicSpotId, String deviceSn, boolean isUpdate) { - boolean result = false; - if (scenicSpotId != null) { - if (isUpdate) { - //先删除 - scenicSpotDeviceService.deleteByScenicSpotId(scenicSpotId); - } - if (StrUtil.isNotEmpty(deviceSn)) { - ScenicSpotDeviceEntity scenicSpotDeviceEntity = new ScenicSpotDeviceEntity(); - scenicSpotDeviceEntity.setScenicSpotId(scenicSpotId); - scenicSpotDeviceEntity.setDeviceSn(deviceSn); - result = scenicSpotDeviceService.save(scenicSpotDeviceEntity); - } else { - result = true; - } - } - return result; - } - - /** - * 根据设备SN获取景点信息 - * - * @param deviceSn 设备SN - * @return - */ - public ScenicSpotVO getByDeviceSn(String deviceSn) { - ScenicSpotVO model = new ScenicSpotVO(); - if (StrUtil.isNotEmpty(deviceSn)) { - List scenicSpotDeviceList = scenicSpotDeviceService.getListByDeviceSn(deviceSn); - if (scenicSpotDeviceList != null && scenicSpotDeviceList.size() > 0) { - Long scenicSpotId = scenicSpotDeviceList.get(0).getScenicSpotId(); - ScenicSpotEntity entity = scenicSpotService.getById(scenicSpotId); - model = doToVo(entity); - model.setDeviceSn(deviceSn); - } - } - return model; - } - - /** - * 实体转换 - * - * @param entity 实体 - * @return - */ - private ScenicSpotVO doToVo(ScenicSpotEntity entity) { - ScenicSpotVO model = new ScenicSpotVO(); - if (entity != null && entity.getId() != null) { - BeanUtil.copyProperties(entity, model,"photoFile", "introduceAudioFile", "virtualFlyPhotoFile"); - if(StrUtil.isNotEmpty(entity.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(entity.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setPhotoFile(fileInfoDto); - } - if(StrUtil.isNotEmpty(entity.getIntroduceAudioFile())){ - JSONObject json = JSONObject.parseObject(entity.getIntroduceAudioFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setIntroduceAudioFile(fileInfoDto); - } - if(StrUtil.isNotEmpty(entity.getVirtualFlyPhotoFile())){ - JSONObject json = JSONObject.parseObject(entity.getVirtualFlyPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - model.setVirtualFlyPhotoFile(fileInfoDto); - } - List tagCodeList = new ArrayList<>(); - List tagNameList = new ArrayList<>(); - List scenicSpotTagList = scenicSpotTagService.getListByScenicSpotId(entity.getId()); - if (scenicSpotTagList != null && scenicSpotTagList.size() > 0) { - tagCodeList = scenicSpotTagList.stream().map(ScenicSpotTagEntity::getTagCode).collect(Collectors.toList()); - List tagList = tagService.getListByCodeList(tagCodeList); - if (tagList != null && tagList.size() > 0) { - tagNameList = tagList.stream().map(TourismTagEntity::getTagName).collect(Collectors.toList()); - } - } - model.setTagCodeList(tagCodeList); - model.setTagNameList(tagNameList); - List featuredPhotoUrlList = new ArrayList<>(); - List featuredPhotoList = featuredPhotoService.getListByScenicSpotId(entity.getId()); - if (featuredPhotoList != null && featuredPhotoList.size() > 0) { - for (FeaturedPhotoEntity item : featuredPhotoList) { - if(StrUtil.isNotEmpty(item.getPhotoFile())){ - JSONObject json = JSONObject.parseObject(item.getPhotoFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - featuredPhotoUrlList.add(fileInfoDto); - } - } - } - model.setFeaturedPhotoFileList(featuredPhotoUrlList); - List featuredRouteVOList = new ArrayList<>(); - List routeList = featuredRouteService.getListByScenicSpotId(entity.getId()); - if (routeList != null && routeList.size() > 0) { - FeaturedRouteVO featuredRouteVO; - for (FeaturedRouteEntity item : routeList) { - featuredRouteVO = new FeaturedRouteVO(); - BeanUtil.copyProperties(item, featuredRouteVO, "routeFile"); - if(StrUtil.isEmpty(item.getRouteName())){ - - //@TODO 待项目启动后完成 - /*RouteDTO routeDTO = routeManager.getById(item.getRouteId()); - if (routeDTO != null && StrUtil.isNotEmpty(routeDTO.getRouteName())) { - if (StrUtil.isNotEmpty(routeDTO.getRouteName())) { - String routeName = RSAUtil.decryptOne(routeDTO.getRouteName()); - featuredRouteVO.setRouteName(routeName); - } - }*/ - } - if(StrUtil.isNotEmpty(item.getRouteFile())){ - JSONObject json = JSONObject.parseObject(item.getRouteFile()); - FileInfoDto fileInfoDto = json.toJavaObject(FileInfoDto.class); - featuredRouteVO.setRouteFile(fileInfoDto); - } - featuredRouteVOList.add(featuredRouteVO); - } - } - model.setRouteList(featuredRouteVOList); - } - return model; - } - - /** - * 获取分页 - * - * @param query 查询条件 - * @return - */ - public PageInfo selectPageList(ScenicSpotPageQuery query) { - Map map = new HashMap<>(3); - if (StrUtil.isNotEmpty(query.getScenicSpotGrade())) { - map.put("scenicSpotGrade", query.getScenicSpotGrade()); - } - if (StrUtil.isNotEmpty(query.getScenicSpotName())) { - map.put("scenicSpotName", query.getScenicSpotName()); - } - if (StrUtil.isNotEmpty(query.getTagCode())) { - map.put("tagCode", query.getTagCode()); - } - PageInfo scenicSpotPageList = scenicSpotService.getScenicSpotPageList(query.getPager(), map); - PageInfo pageList = new PageInfo<>(); - BeanUtil.copyProperties(scenicSpotPageList, pageList); - if (scenicSpotPageList.getList() != null && scenicSpotPageList.getList().size() > 0) { - List list = scenicSpotPageList.getList(); - List voList = new ArrayList<>(list.size()); - List idList = list.stream().map(ScenicSpotEntity::getId).collect(Collectors.toList()); - List biaxVideoList = biaxVideoService.getListByScenicSpotIdList(idList); - List panoramaPhotoList = panoramaPhotoService.getListByScenicSpotIdList(idList); - for (ScenicSpotEntity item : list) { - ScenicSpotPageVO model = doToPageVO(item, biaxVideoList, panoramaPhotoList); - voList.add(model); - } - pageList.setList(voList); - } - return pageList; - } - - /** - * 实体转换 - * - * @param entity 实体 - * @return - */ - private ScenicSpotPageVO doToPageVO(ScenicSpotEntity entity, List biaxVideoList, List panoramaPhotoList) { - ScenicSpotPageVO model = new ScenicSpotPageVO(); - BeanUtil.copyProperties(entity, model); - List scenicSpotDeviceList = scenicSpotDeviceService.getListByScenicSpotId(entity.getId()); - if (scenicSpotDeviceList != null && scenicSpotDeviceList.size() > 0) { - model.setDeviceSn(scenicSpotDeviceList.get(0).getDeviceSn()); - if (StrUtil.isNotEmpty(model.getDeviceSn())) { - IkDeviceEntity deviceEntity = ikDeviceService.getByDeviceSn(model.getDeviceSn()); - if (deviceEntity != null && StrUtil.isNotEmpty(deviceEntity.getDeviceName())) { - model.setDeviceName(deviceEntity.getDeviceName()); - } - } - } - List tagNameList = new ArrayList<>(); - List scenicSpotTagList = scenicSpotTagService.getListByScenicSpotId(entity.getId()); - if (scenicSpotTagList != null && scenicSpotTagList.size() > 0) { - List tagCodeList = scenicSpotTagList.stream().map(ScenicSpotTagEntity::getTagCode).collect(Collectors.toList()); - List tagList = tagService.getListByCodeList(tagCodeList); - if (tagList != null && tagList.size() > 0) { - tagNameList = tagList.stream().map(TourismTagEntity::getTagName).collect(Collectors.toList()); - } - } - model.setTagNameList(tagNameList); - if (biaxVideoList != null && biaxVideoList.size() > 0) { - List tempList = biaxVideoList.stream().filter(o -> o.getScenicSpotId() != null && o.getScenicSpotId().equals(entity.getId())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - model.setBiaxVideoName(tempList.get(0).getBiaxVideoName()); - } - } - if (panoramaPhotoList != null && panoramaPhotoList.size() > 0) { - List tempList = panoramaPhotoList.stream().filter(o -> o.getScenicSpotId() != null && o.getScenicSpotId().equals(entity.getId())).collect(Collectors.toList()); - if (tempList != null && tempList.size() > 0) { - model.setPanoramaPhotoName(tempList.get(0).getPhotoName()); - } - } - return model; - } - - /** - * 根据主键ID删除 - * - * @param id - * @return - */ - public Result delete(Long id) { - if (id != null) { - //删除景点 - boolean result = scenicSpotService.removeById(id); - if (result) { - //删除景点精选航线 - featuredRouteService.deleteByScenicSpotId(id); - //删除热门景点 - popularScenicSpotService.deleteByScenicSpotId(id); - //删除精选照片 - featuredPhotoService.deleteByScenicSpotId(id); - //删除双轴视频 - biaxVideoService.deleteByScenicSpotId(id); - //删除全景照片 - panoramaPhotoService.deleteByScenicSpotId(id); - //删除景点与设备关系 - scenicSpotDeviceService.deleteByScenicSpotId(id); - //删除我的收藏 - myFavoriteService.deleteByScenicSpotId(id); - return Result.succeed("操作成功!"); - - } else { - return Result.failed("操作失败!"); - } - } else { - return Result.failed("主键ID为空,操作失败!"); - } - } - - /** - * 新增 - * - * @param model 新增实体 - * @param userId 用户ID - * @return - */ - public Result add(ScenicSpotAddDTO model, Long userId) { - if(model.getTagCodeList() != null){ - if(model.getTagCodeList().size() > 4){ - return Result.failed("景点标签最多只能添加4个,操作失败!"); - } - } - ScenicSpotEntity entity = new ScenicSpotEntity(); - BeanUtil.copyProperties(model, entity, "photoFile", "introduceAudioFile", "virtualFlyPhotoFile"); - boolean existName = scenicSpotService.existName(entity); - if (existName) { - return Result.failed("景点名称已存在,操作失败!"); - } - if(model.getRouteList() != null && model.getRouteList().size() > 0){ - for (FeaturedRouteAddDTO item : model.getRouteList()) { - if(StrUtil.isEmpty(item.getRouteName())){ - return Result.failed("精选航线ID不能为空,操作失败!"); - } - if(StrUtil.isEmpty(item.getRouteName())){ - return Result.failed("精选航线名称不能为空,操作失败!"); - }else if(item.getRouteName().length() > 15){ - return Result.failed("精选航线名称超度不能超过15个字符,操作失败!"); - } - } - } - entity.setUpdateUserId(userId); - entity.setCreateUserId(userId); - if (StrUtil.isNotEmpty(model.getDeviceSn())) { - IkDeviceEntity deviceDetailDTO = ikDeviceService.getByDeviceSn(model.getDeviceSn()); - if (deviceDetailDTO != null && deviceDetailDTO.getId() != null) { - entity.setLongitude(deviceDetailDTO.getLongitude()); - entity.setLatitude(deviceDetailDTO.getLatitude()); - entity.setAltitude(deviceDetailDTO.getAltitude()); - } - } - if(model.getPhotoFile() != null && StrUtil.isNotEmpty(model.getPhotoFile().getUrl())){ - String photoFile = JSONObject.toJSONString(model.getPhotoFile()); - entity.setPhotoFile(photoFile); - } - if(model.getIntroduceAudioFile() != null && StrUtil.isNotEmpty(model.getIntroduceAudioFile().getUrl())){ - String introduceAudioFile = JSONObject.toJSONString(model.getIntroduceAudioFile()); - entity.setIntroduceAudioFile(introduceAudioFile); - } - if(model.getVirtualFlyPhotoFile() != null && StrUtil.isNotEmpty(model.getVirtualFlyPhotoFile().getUrl())){ - String virtualFlyPhotoFile = JSONObject.toJSONString(model.getVirtualFlyPhotoFile()); - entity.setVirtualFlyPhotoFile(virtualFlyPhotoFile); - } - /*if(StrUtil.isNotEmpty(model.getProvinceCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getProvinceCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setProvince(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getCityCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getCityCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setCity(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getScenicAreaCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getScenicAreaCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setScenicArea(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getOrgCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getOrgCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setOrgName(organizationDTO.getName()); - } - }*/ - entity.setScenicSpotAddress(entity.getProvince() + entity.getCity() + entity.getScenicArea()); - boolean result = scenicSpotService.save(entity); - if (result) { - //新增或更新景点标签 - updateTag(entity.getId(), model.getTagCodeList(), false); - //更新精选图片 - updateFeaturedPhoto(entity.getId(), model.getFeaturedPhotoFileList(), false); - //更新绑定设备 - updateDevice(entity.getId(), model.getDeviceSn(), false); - //更新航线 - updateRoute(entity.getId(), model.getRouteList(), false); - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 编辑 - * - * @param model 编辑实体 - * @param userId 操作用户ID - * @return - */ - public Result update(ScenicSpotUpdateDTO model, Long userId) { - if(model.getTagCodeList() != null){ - if(model.getTagCodeList().size() > 4){ - return Result.failed("景点标签最多只能添加4个,操作失败!"); - } - } - ScenicSpotEntity entity = new ScenicSpotEntity(); - BeanUtil.copyProperties(model, entity, "photoFile", "introduceAudioFile", "virtualFlyPhotoFile"); - boolean existName = scenicSpotService.existName(entity); - if (existName) { - return Result.failed("景点名称已存在,操作失败!"); - } - if(model.getRouteList() != null && model.getRouteList().size() > 0){ - for (FeaturedRouteAddDTO item : model.getRouteList()) { - if(StrUtil.isEmpty(item.getRouteName())){ - return Result.failed("精选航线ID不能为空,操作失败!"); - } - if(StrUtil.isEmpty(item.getRouteName())){ - return Result.failed("精选航线名称不能为空,操作失败!"); - }else if(item.getRouteName().length() > 15){ - return Result.failed("精选航线名称超度不能超过15个字符,操作失败!"); - } - } - } - entity.setUpdateUserId(userId); - if (StrUtil.isNotEmpty(model.getDeviceSn())) { - IkDeviceEntity deviceDetailDTO = ikDeviceService.getByDeviceSn(model.getDeviceSn()); - if (deviceDetailDTO != null && deviceDetailDTO.getId() != null) { - entity.setLongitude(deviceDetailDTO.getLongitude()); - entity.setLatitude(deviceDetailDTO.getLatitude()); - entity.setAltitude(deviceDetailDTO.getAltitude()); - } - } - if(model.getPhotoFile() != null && StrUtil.isNotEmpty(model.getPhotoFile().getUrl())){ - String photoFile = JSONObject.toJSONString(model.getPhotoFile()); - entity.setPhotoFile(photoFile); - } - if(model.getIntroduceAudioFile() != null && StrUtil.isNotEmpty(model.getIntroduceAudioFile().getUrl())){ - String introduceAudioFile = JSONObject.toJSONString(model.getIntroduceAudioFile()); - entity.setIntroduceAudioFile(introduceAudioFile); - } - if(model.getVirtualFlyPhotoFile() != null && StrUtil.isNotEmpty(model.getVirtualFlyPhotoFile().getUrl())){ - String virtualFlyPhotoFile = JSONObject.toJSONString(model.getVirtualFlyPhotoFile()); - entity.setVirtualFlyPhotoFile(virtualFlyPhotoFile); - } - /*if(StrUtil.isNotEmpty(model.getProvinceCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getProvinceCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setProvince(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getCityCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getCityCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setCity(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getScenicAreaCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getScenicAreaCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setScenicArea(organizationDTO.getName()); - } - } - if(StrUtil.isNotEmpty(model.getOrgCode())){ - OrganizationDTO organizationDTO = organizationManager.getOrgById(Long.parseLong(model.getOrgCode())); - if(organizationDTO != null && StrUtil.isNotEmpty(organizationDTO.getName())){ - entity.setOrgName(organizationDTO.getName()); - } - }*/ - entity.setScenicSpotAddress(entity.getProvince() + entity.getCity() + entity.getScenicArea()); - boolean result = scenicSpotService.updateById(entity); - if (result) { - //新增或更新景点标签 - updateTag(entity.getId(), model.getTagCodeList(), true); - //更新精选图片 - updateFeaturedPhoto(entity.getId(), model.getFeaturedPhotoFileList(), true); - //更新绑定设备 - updateDevice(entity.getId(), model.getDeviceSn(), true); - //更新航线 - updateRoute(entity.getId(), model.getRouteList(), true); - return Result.succeed("操作成功!"); - } else { - return Result.failed("操作失败!"); - } - } - - /** - * 根据主键ID获取实体 - * - * @param id 主键ID - * @return - */ - public ScenicSpotVO getEntity(Long id) { - ScenicSpotVO model = new ScenicSpotVO(); - if (id != null) { - ScenicSpotEntity entity = scenicSpotService.getById(id); - if (entity != null && entity.getId() != null) { - model = doToVo(entity); - List list = scenicSpotDeviceService.getListByScenicSpotId(id); - if (list != null && list.size() > 0) { - model.setDeviceSn(list.get(0).getDeviceSn()); - } - } - } - return model; - } -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoDownTagVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoDownTagVO.java deleted file mode 100644 index ffaf9af8..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoDownTagVO.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description ="双轴视频上轴标记视图实体类") -public class BiaxVideoDownTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标记位置(mm:ss) - */ - @Schema(description ="标记位置(mm:ss)") - private String tagPosition; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoPageVO.java deleted file mode 100644 index a57e91c8..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoPageVO.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -/** - * 双轴视频分页视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频分页视图实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频分页视图实体类") -public class BiaxVideoPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long scenicSpotId; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description ="航线名称") - private String routeName; - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - private String biaxVideoName; - - /** - * 上轴标记点名称列表 - */ - @Schema(description ="上轴标记点名称列表") - private List upTagNameList; - - /** - * 下轴轴标记点名称列表 - */ - @Schema(description ="下轴轴标记点名称列表") - private List downTagNameList; - - /** - * 创建人员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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoUpTagVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoUpTagVO.java deleted file mode 100644 index 93b808cc..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoUpTagVO.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 双轴视频上轴标记视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频上轴标记视图实体类 - * @create 2024/7/18 8:52 - **/ -@Data -@Schema(description ="双轴视频上轴标记视图实体类") -public class BiaxVideoUpTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoVO.java deleted file mode 100644 index 42241877..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/BiaxVideoVO.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; -import com.zlt.tourism.dto.FileInfoDto; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -/** - * 双轴视频视图实体类 - * - * @author caiji - * @version 1.0 - * @description 双轴视频视图实体类 - * @create 2024/7/18 8:26 - **/ -@Data -@Schema(description ="双轴视频视图实体类") -public class BiaxVideoVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - private String biaxVideoName; - - /** - * 设备SN - */ - @Schema(description ="设备SN") - private String deviceSn; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long scenicSpotId; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description ="航线名称") - private String routeName; - - /** - * 视频文件 - */ - @Schema(description ="视频文件") - private FileInfoDto videoFile; - - /** - * 视频时长(秒) - */ - @Schema(description ="视频时长(秒)") - private Integer videoMins; - - /** - * 上轴标记点每段时长(秒) - */ - @Schema(description ="上轴标记点每段时长(秒)") - private Integer upTagPosition; - - /** - * 上轴标记点名称列表 - */ - @Schema(description ="上轴标记点名称列表") - private List upTagList; - - /** - * 下轴轴标记点列表 - */ - @Schema(description ="下轴轴标记点列表") - private List downTagList; - - /** - * 创建人员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 List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceBasicVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceBasicVO.java deleted file mode 100644 index 336d82ea..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceBasicVO.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 设备实体类 - * - * @author caiji - * @version 1.0 - * @description 设备实体类 - * @create 2024/7/19 11:15 - **/ -@Schema(description ="设备实体类") -@Data -public class DeviceBasicVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 设备id 与发货铭牌一致 - */ - @Schema(description = "设备id 与发货铭牌一致") - private String deviceSn; - - /** - * 设备名称 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceVO.java deleted file mode 100644 index 9f62b699..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/DeviceVO.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 设备实体类 - * - * @author caiji - * @version 1.0 - * @description 设备实体类 - * @create 2024/7/19 11:15 - **/ -@Schema(description ="设备实体类") -@Data -public class DeviceVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 设备id 与发货铭牌一致 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeatureTagVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeatureTagVO.java deleted file mode 100644 index d9b77cae..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeatureTagVO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 特色景观标签视图实体类 - * - * @author caiji - * @version 1.0 - * @description 特色景观标签视图实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="特色景观标签视图实体类") -@Data -public class FeatureTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeaturedRouteVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeaturedRouteVO.java deleted file mode 100644 index d2ed002b..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/FeaturedRouteVO.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.zlt.tourism.vo; - -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; -import com.zlt.tourism.dto.FileInfoDto; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 精选航线实体类 - * - * @author caiji - * @version 1.0 - * @description 精选航线实体类 - * @create 2024/7/18 15:40 - **/ -@Schema(description ="精选航线实体类") -@Data -public class FeaturedRouteVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description ="航线名称") - private String routeName; - - /** - * 航线视频文件 - */ - @Schema(description ="航线视频文件") - private FileInfoDto routeFile; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/IkDeviceVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/IkDeviceVO.java deleted file mode 100644 index 34bf0abe..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/IkDeviceVO.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * 设备视图实体类 - * - * @author caiji - * @version 1.0 - * @description 设备视图实体类 - * @create 2024/7/25 16:18 - **/ -@Data -@Schema(description ="设备视图实体类") -public class IkDeviceVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 设备SN与发货铭牌一致 - */ - @Schema(description = "设备SN 与发货铭牌一致") - private String deviceSn; - - /** - * 设备名称 - */ - @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; - - /** - * 用于标识飞机与机库的配对关系 - */ - @Schema(description = "用于标识飞机与机库的配对关系,如果是圣机库,那么是左仓和飞机的配对关系") - private String pairedDevice; - - /** - * 圣机库左仓与飞机的配对关系 - */ - @Schema(description = "圣机库左仓与飞机的配对关系") - private String pairedDevice1; - - /** - * 圣机库右仓与飞机的配对关系 - */ - @Schema(description = "圣机库右仓与飞机的配对关系") - private String pairedDevice2; - - /** - * 设备可用状态 0:维修 1:待命 2:停用 3:任务中 - */ - @Schema(description = "设备可用状态 0:维修 1:待命 2:停用 3:任务中") - private Integer status; - - /** - * 设备相关信息描述 - */ - @Schema(description = "设备相关信息描述") - private String descMsg; - - /** - * 是否删除 0 正常 1 删除 - */ - @Schema(description = "是否删除记录") - private Integer deleted; - - /** - * 行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城) - */ - @Schema(description = "这是用的ik_industry这张表,行业类型 1 电网,2 水利,3 石油(中石化),4 安防(三一),5 智慧城市(生态城)") - private Long industryId; - - /** - * 创建时间 - */ - @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; - - /** - * 更新时间 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/OrganizationBasicVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/OrganizationBasicVO.java deleted file mode 100644 index e9a56cc6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/OrganizationBasicVO.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 机构基础视图实体类 - * - * @author caiji - * @version 1.0 - * @description 机构基础视图实体类 - * @create 2024/8/7 15:05 - **/ -@Schema(description ="机构基础视图实体类") -@Data -public class OrganizationBasicVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 机构名称 - */ - @Schema(description ="机构名称") - private String name; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoPageVO.java deleted file mode 100644 index a9ca050f..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoPageVO.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.zlt.tourism.vo; - -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.List; - -/** - * 全景照片分页实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片分页实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片分页实体类") -public class PanoramaPhotoPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; - - /** - * 标记点名称列表 - */ - @Schema(description ="标记点名称列表") - private List tagNameList; - - /** - * 经度 - */ - @Schema(description ="经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description ="纬度") - private BigDecimal latitude; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoTagVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoTagVO.java deleted file mode 100644 index 0e55323c..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoTagVO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.zlt.tourism.vo; - -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; -import com.zlt.tourism.dto.FileInfoDto; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 全景照片标签实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片标签实体类 - * @create 2024/7/18 8:31 - **/ -@Data -@Schema(description ="全景照片标记实体类") -public class PanoramaPhotoTagVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标记名称 - */ - @Schema(description ="标记名称") - private String tagName; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; - - /** - * 照片文件 - */ - @Schema(description ="照片文件") - private FileInfoDto photoFile; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoVO.java deleted file mode 100644 index 87e92605..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PanoramaPhotoVO.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.zlt.tourism.vo; - -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.List; - -/** - * 全景照片视图实体类 - * - * @author caiji - * @version 1.0 - * @description 全景照片视图实体类 - * @create 2024/7/18 8:20 - **/ -@Data -@Schema(description ="全景照片视图实体类") -public class PanoramaPhotoVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 照片名称 - */ - @Schema(description ="照片名称") - private String photoName; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - private String scenicSpotId; - - /** - * 标记点列表 - */ - @Schema(description ="标记点列表") - private List tagList; - - /** - * 经度 - */ - @Schema(description ="经度") - private BigDecimal longitude; - - /** - * 纬度 - */ - @Schema(description ="纬度") - private BigDecimal latitude; - - /** - * 特色景观标签编码列表 - */ - @Schema(description ="特色景观标签编码列表") - private List featureTagCodeList; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListBasicVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListBasicVO.java deleted file mode 100644 index 446e6185..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListBasicVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 热门景点列表实体类 - * - * @author caiji - * @version 1.0 - * @description 热门景点列表实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门景点列表实体类") -public class PopularScenicSpotListBasicVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long scenicSpotId; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListVO.java deleted file mode 100644 index 802e6c3f..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotListVO.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 热门景点列表实体类 - * - * @author caiji - * @version 1.0 - * @description 热门景点列表实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门景点列表实体类") -public class PopularScenicSpotListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long scenicSpotId; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 排序号 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotPageVO.java deleted file mode 100644 index 00924573..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularScenicSpotPageVO.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 热门景点分页实体类 - * - * @author caiji - * @version 1.0 - * @description 热门景点分页实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门景点分页实体类") -public class PopularScenicSpotPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点ID - */ - @Schema(description ="景点ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long scenicSpotId; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 排序号 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListBasicVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListBasicVO.java deleted file mode 100644 index 44ebbe8c..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListBasicVO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.zlt.tourism.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 热门标签列表实体类 - * - * @author caiji - * @version 1.0 - * @description 热门标签列表实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门标签列表实体类") -public class PopularTagListBasicVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListVO.java deleted file mode 100644 index cd01d73c..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagListVO.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 热门标签列表实体类 - * - * @author caiji - * @version 1.0 - * @description 热门标签列表实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门标签列表实体类") -public class PopularTagListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; - - /** - * 排序号 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagPageVO.java deleted file mode 100644 index a0c09d38..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/PopularTagPageVO.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 热门标签分页实体类 - * - * @author caiji - * @version 1.0 - * @description 热门标签分页实体类 - * @create 2024/7/18 8:46 - **/ -@Data -@Schema(description ="热门标签分页实体类") -public class PopularTagPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; - - /** - * 排序号 - */ - @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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteTreeVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteTreeVO.java deleted file mode 100644 index 135ec3b7..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteTreeVO.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.zlt.tourism.vo; - -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.util.List; - -/** - * 航线实体类 - * - * @author caiji - * @version 1.0 - * @description 航线实体类 - * @create 2024/8/7 10:03 - **/ -@Schema(description ="航线实体类") -@Data -public class RouteTreeVO implements Serializable { - - private static final long serialVersionUID = 1L; - - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - @Schema(description = "航线名称,明文") - private String routeName; - - @Schema(description = "航线名称,密文") - private String routeNameDecode; - - private Integer type; - - private String code; - - @Schema(description = "航线被执行次数") - private Integer routeRunNum; - - @Schema(description = "航线长度,单位米") - private Double routeLength; - - @Schema(description = "预计飞行时长,单位秒") - private Double preFlyTime; - - @Schema(description = "是否不显示,0:显示、1:不显示") - private Integer isNotShow; - - @Schema(description = "航线归属人id") - @JsonSerialize(using = ToStringSerializer.class) - private Long userId; - - @Schema(description = "航线parentId") - @JsonSerialize(using = ToStringSerializer.class) - private Long parentId; - - @Schema(description = "航线Id") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - @Schema(description = "子航线") - private List children; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteVO.java deleted file mode 100644 index f8d9efe6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/RouteVO.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 航线实体类 - * - * @author caiji - * @version 1.0 - * @description 航线实体类 - * @create 2024/8/7 10:03 - **/ -@Schema(description ="航线实体类") -@Data -public class RouteVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 航线ID - */ - @Schema(description ="航线ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long routeId; - - /** - * 航线名称 - */ - @Schema(description = "航线名称") - private String routeName; - - /** - * 航线parentId - */ - @Schema(description = "航线parentId") - private Long parentId; - - /** - * 航线Id - */ - @Schema(description = "航线Id") - private Long id; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotBaseListVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotBaseListVO.java deleted file mode 100644 index e4f85623..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotBaseListVO.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 景点视图列表基础实体类 - * - * @author caiji - * @version 1.0 - * @description 景点视图列表基础实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点视图列表基础实体类") -@Data -public class ScenicSpotBaseListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - private String scenicSpotGrade; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotPageVO.java deleted file mode 100644 index f628bb1d..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotPageVO.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.zlt.tourism.vo; - -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.util.List; - -/** - * 景点视分页图实体类 - * - * @author caiji - * @version 1.0 - * @description 景点视分页图实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点视分页图实体类") -@Data -public class ScenicSpotPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - private String scenicSpotGrade; - - /** - * 地址-景区 - */ - @Schema(description ="地址-景区") - private String scenicArea; - - /** - * 地址 - */ - @Schema(description ="地址") - private String scenicSpotAddress; - - /** - * 标签名称集合 - */ - @Schema(description ="标签名称集合") - private List tagNameList; - - /** - * 关联设备SN - */ - @Schema(description ="关联设备SN") - private String deviceSn; - - /** - * 关联设备名称 - */ - private String deviceName; - - /** - * 双轴视频名称 - */ - @Schema(description ="双轴视频名称") - private String biaxVideoName; - - /** - * 全景照片名称 - */ - @Schema(description ="全景照片名称") - private String panoramaPhotoName; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotVO.java deleted file mode 100644 index cff25846..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ScenicSpotVO.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.zlt.tourism.vo; - -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; -import com.zlt.tourism.dto.FileInfoDto; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.List; - -/** - * 景点视图实体类 - * - * @author caiji - * @version 1.0 - * @description 景点视图实体类 - * @create 2024/7/17 14:10 - **/ -@Schema(description ="景点视图实体类") -@Data -public class ScenicSpotVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 景点名称 - */ - @Schema(description ="景点名称") - private String scenicSpotName; - - /** - * 景点等级 - */ - @Schema(description ="景点等级") - private String scenicSpotGrade; - - /** - * 机构名称 - */ - @Schema(description ="机构名称") - private String orgName; - - /** - * 机构编码 - */ - @Schema(description ="机构编码") - private Integer orgCode; - - /** - * 地址-省份 - */ - @Schema(description ="地址-省份") - private String province; - - /** - * 地址-省份编码 - */ - @Schema(description ="地址-省份编码") - private Integer provinceCode; - - /** - * 地址-地市 - */ - @Schema(description ="地址-地市") - private String city; - - /** - * 地址-地市编码 - */ - @Schema(description ="地址-地市编码") - private String cityCode; - - /** - * 地址-景区 - */ - @Schema(description ="地址-景区") - private String scenicArea; - - /** - * 地址-景区编码 - */ - @Schema(description ="地址-景区编码") - private String scenicAreaCode; - - /** - * 地址 - */ - @Schema(description ="地址") - private String scenicSpotAddress; - - /** - * 热度 - */ - @Schema(description ="热度") - private BigDecimal hotScore; - - /** - * 景点照片文件 - */ - @Schema(description ="景点照片文件") - private FileInfoDto photoFile; - - /** - * 语音讲解文件 - */ - @Schema(description ="语音讲解文件") - private FileInfoDto introduceAudioFile; - - /** - * 虚拟飞行图片文件 - */ - @Schema(description ="虚拟飞行图片文件") - private FileInfoDto virtualFlyPhotoFile; - - /** - * 精选图片文件集合 - */ - @Schema(description ="精选图片文件集合") - private List featuredPhotoFileList; - - /** - * 标签编码集合 - */ - @Schema(description ="标签编码集合") - private List tagCodeList; - - /** - * 标签名称集合 - */ - @Schema(description ="标签名称集合") - private List tagNameList; - - /** - * 精选航线 - */ - @Schema(description ="精选航线") - private List routeList; - - /** - * 简介 - */ - @Schema(description ="简介") - private String scenicSpotAbout; - - /** - * 关联设备SN - */ - @Schema(description ="关联设备SN") - private String deviceSn; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerListVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerListVO.java deleted file mode 100644 index 601eaf54..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerListVO.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 主播列表实体类 - * - * @author caiji - * @version 1.0 - * @description 主播列表实体类 - * @create 2024/7/16 11:52 - **/ -@Data -@Schema(description ="主播列表实体类") -public class TourismStreamerListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 用户ID - */ - @Schema(description ="用户ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long userId; - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String userName; - - /** - * 真实姓名 - */ - @Schema(description ="真实姓名") - private String realName; - - - /** - * 手机号 - */ - @Schema(description ="手机号") - private String mobile; - - - /** - * 主播类型(1:主播,2:副播) - */ - @Schema(description ="主播类型(1:主播,2:副播)") - private Integer streamerType; - - /** - * 创建人员ID - */ - @Schema(description ="创建人员ID") - @JsonSerialize(using= ToStringSerializer.class) - 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; - - /** - * 更新人员ID - */ - @Schema(description ="更新人员ID") - @JsonSerialize(using= ToStringSerializer.class) - 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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerPageVO.java deleted file mode 100644 index 8ffa21a7..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismStreamerPageVO.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.zlt.tourism.vo; - -import com.alibaba.fastjson.annotation.JSONField; -import com.fasterxml.jackson.annotation.JsonFormat; -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 org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - -/** - * 主播分页实体类 - * - * @author caiji - * @version 1.0 - * @description 主播分页实体类 - * @create 2024/7/16 11:52 - **/ -@Data -@Schema(description ="主播分页实体类") -public class TourismStreamerPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 用户ID - */ - @Schema(description ="用户ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long userId; - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String userName; - - /** - * 真实姓名 - */ - @Schema(description ="真实姓名") - private String realName; - - - /** - * 手机号 - */ - @Schema(description ="手机号") - private String mobile; - - - /** - * 主播类型(1:主播,2:副播) - */ - @Schema(description ="主播类型(1:主播,2:副播)") - private Integer streamerType; - - /** - * 创建人员ID - */ - @Schema(description ="创建人员ID") - @JsonSerialize(using= ToStringSerializer.class) - 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; - - /** - * 更新人员ID - */ - @Schema(description ="更新人员ID") - @JsonSerialize(using= ToStringSerializer.class) - 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; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagListVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagListVO.java deleted file mode 100644 index 7fd63dc6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagListVO.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 标签列表实体类 - * - * @author caiji - * @version 1.0 - * @description 标签列表实体类 - * @create 2024/7/16 11:52 - **/ -@Data -@Schema(description ="标签列表实体类") -public class TourismTagListVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using= ToStringSerializer.class) - private Long id; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagPageVO.java deleted file mode 100644 index 971df3a6..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/TourismTagPageVO.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 标签分页实体类 - * - * @author caiji - * @version 1.0 - * @description 标签分页实体类 - * @create 2024/7/16 11:52 - **/ -@Data -@Schema(description ="标签分页实体类") -public class TourismTagPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 标签编码 - */ - @Schema(description ="标签编码") - private String tagCode; - - /** - * 标签名称 - */ - @Schema(description ="标签名称") - private String tagName; - - /** - * 排序号 - */ - @Schema(description ="排序号") - private Integer orderNumber; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/UserPageVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/UserPageVO.java deleted file mode 100644 index 284bd20c..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/UserPageVO.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.zlt.tourism.vo; - -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; - -/** - * 用户分页实体类 - * - * @author caiji - * @version 1.0 - * @description 用户分页实体类 - * @create 2024/7/19 9:54 - **/ -@Data -@Schema(description ="用户分页实体类") -public class UserPageVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 主键ID - */ - @Schema(description ="主键ID") - @JsonSerialize(using = ToStringSerializer.class) - private Long id; - - /** - * 用户名 - */ - @Schema(description ="用户名") - private String userName; - - /** - * 姓名 - */ - @Schema(description = "姓名") - private String realName; - - /** - * 手机号 - */ - @Schema(description ="手机号") - private String mobile; - - /** - * 邮箱 - */ - @Schema(description ="邮箱") - private String email; - - /** - * 状态 0:禁用 1:正常 - */ - @Schema(description ="状态") - private Integer status; - - /** - * 状态 0:禁用 1:正常 - */ - @Schema(description ="状态") - private Integer enabled; - -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ValidScenicSpotVO.java b/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ValidScenicSpotVO.java deleted file mode 100644 index 7e588d81..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/java/com/zlt/tourism/vo/ValidScenicSpotVO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.zlt.tourism.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -import java.io.Serializable; - -/** - * 新增双轴视频或全景照片时验证返回实体类 - * - * @author caiji - * @version 1.0 - * @description 新增双轴视频或全景照片时验证返回实体类 - * @create 2024/8/14 10:30 - **/ -@Schema(description = "新增双轴视频或全景照片时验证返回实体类") -@Data -public class ValidScenicSpotVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 1、验证成功,-2:验证失败 - */ - @Schema(description ="1、验证成功,-2:验证失败") - private Integer status; - - /** - * 消息 - */ - @Schema(description ="消息") - private String msg; -} diff --git a/zlt-business/tourism-center/tourism-service/src/main/resources/application.yml b/zlt-business/tourism-center/tourism-service/src/main/resources/application.yml deleted file mode 100644 index bec9c6bc..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/resources/application.yml +++ /dev/null @@ -1,74 +0,0 @@ -spring: - datasource: -# url: jdbc:mysql://${zlt.datasource.ip}:3306/user-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - url: jdbc:mysql://${zlt.datasource.ip}/tourism-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - username: ${zlt.datasource.username} - password: ${zlt.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.zlt.tourism.model - global-config: - db-config: - id-type: auto - -springdoc: - group-configs: - - group: 'default' - paths-to-match: '/**' - packages-to-scan: com.central.user.controller - -knife4j: - enable: true - setting: - swagger-model-name: 业务中心接口文档 - -zlt: - cache-manager: - configs: - - key: menu - second: 300 - - key: user - second: 1800 - #多租户配置 - tenant: - enable: true - ignoreTables: - - sys_user - - sys_role_user - - sys_role_menu - ignoreSqls: - # 用户关联角色时,显示所有角色 - - com.central.user.mapper.SysRoleMapper.findAll - # 用户列表显示用户所关联的所有角色 - - com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds - # 数据权限 - datascope: - enabled: false - ignoreTables: - - sys_role_user - - sys_role_menu - includeSqls: - # 用户列表 - - com.central.user.mapper.SysUserMapper.findList - # 角色列表 - - com.central.user.mapper.SysRoleMapper.findList - # 菜单列表 - - com.central.user.mapper.SysMenuMapper.selectList - - tencent: - app-id: ${zlt.security.tencent.app-id} - app-secret: ${zlt.security.tencent.app-secret} - access-token-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token= - get-phonenumber-url: https://api.weixin.qq.com/cgi-bin/token -#审计日志 -# audit-log: -# enabled: true -# log-type: db -# datasource: -# driver-class-name: com.mysql.cj.jdbc.Driver -# jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai -# username: ${zlt.datasource.username} -# password: ${zlt.datasource.password} diff --git a/zlt-business/tourism-center/tourism-service/src/main/resources/bootstrap.yml b/zlt-business/tourism-center/tourism-service/src/main/resources/bootstrap.yml deleted file mode 100644 index 42a01b68..00000000 --- a/zlt-business/tourism-center/tourism-service/src/main/resources/bootstrap.yml +++ /dev/null @@ -1,11 +0,0 @@ -server: - port: 8097 - -spring: - application: - name: cultural-tourism-service - cloud: - nacos: - config: - group: CULTURAL_TOURISM_GROUP - diff --git a/zlt-business/tourism-center/tourism-service/web/WEB-INF/web.xml b/zlt-business/tourism-center/tourism-service/web/WEB-INF/web.xml deleted file mode 100644 index d80081d1..00000000 --- a/zlt-business/tourism-center/tourism-service/web/WEB-INF/web.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/zlt-business/wayline-center/pom.xml b/zlt-business/wayline-center/pom.xml deleted file mode 100644 index 57288ca8..00000000 --- a/zlt-business/wayline-center/pom.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - 4.0.0 - - com.zlt - zlt-business - 6.0.0 - - - wayline-center - 航线中心 - - - - - com.zlt - zlt-config - - - com.zlt - zlt-log-spring-boot-starter - - - com.zlt - zlt-common-spring-boot-starter - - - com.zlt - zlt-db-spring-boot-starter - - - com.zlt - zlt-redis-spring-boot-starter - - - com.zlt - zlt-loadbalancer-spring-boot-starter - - - com.zlt - zlt-sentinel-spring-boot-starter - - - - com.github.xiaoymin - knife4j-openapi3-jakarta-spring-boot-starter - - - com.zlt - search-client - - - - org.springframework.boot - spring-boot-starter-web - - - com.alibaba.cloud - spring-cloud-starter-alibaba-nacos-discovery - - - org.springframework.boot - spring-boot-starter-actuator - - - - mysql - mysql-connector-java - - - - io.micrometer - micrometer-registry-prometheus - - - junit - junit - test - - - org.hibernate - hibernate-validator - - - com.auth0 - java-jwt - 4.4.0 - compile - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - repackage - - - - - - com.spotify - docker-maven-plugin - - ${docker.image.prefix}/${project.artifactId} - - ${project.version} - latest - - true - ${docker.baseImage} - ${docker.volumes} - - ${docker.java.opts} - - ["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"] - - - / - ${project.build.directory} - ${project.build.finalName}.jar - - - - - - ${project.artifactId} - - diff --git a/zlt-business/wayline-center/src/main/resources/application.yml b/zlt-business/wayline-center/src/main/resources/application.yml deleted file mode 100644 index a73ad35b..00000000 --- a/zlt-business/wayline-center/src/main/resources/application.yml +++ /dev/null @@ -1,67 +0,0 @@ -spring: - datasource: - url: jdbc:mysql://${zlt.datasource.ip}:3306/user-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - username: ${zlt.datasource.username} - password: ${zlt.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.central.common.model - global-config: - db-config: - id-type: auto - -springdoc: - group-configs: - - group: 'default' - paths-to-match: '/**' - packages-to-scan: com.central.tourist.controller - -knife4j: - enable: true - setting: - swagger-model-name: 用户中心接口文档 - -zlt: - cache-manager: - configs: - - key: menu - second: 300 - - key: user - second: 1800 - #多租户配置 - tenant: - enable: true - ignoreTables: - - sys_user - - sys_role_user - - sys_role_menu - ignoreSqls: - # 用户关联角色时,显示所有角色 - - com.central.user.mapper.SysRoleMapper.findAll - # 用户列表显示用户所关联的所有角色 - - com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds - # 数据权限 - datascope: - enabled: false - ignoreTables: - - sys_role_user - - sys_role_menu - includeSqls: - # 用户列表 - - com.central.user.mapper.SysUserMapper.findList - # 角色列表 - - com.central.user.mapper.SysRoleMapper.findList - # 菜单列表 - - com.central.user.mapper.SysMenuMapper.selectList - #审计日志 -# audit-log: -# enabled: true -# log-type: db -# datasource: -# driver-class-name: com.mysql.cj.jdbc.Driver -# jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai -# username: ${zlt.datasource.username} -# password: ${zlt.datasource.password} diff --git a/zlt-business/wayline-center/src/main/resources/bootstrap.yml b/zlt-business/wayline-center/src/main/resources/bootstrap.yml deleted file mode 100644 index 7436600e..00000000 --- a/zlt-business/wayline-center/src/main/resources/bootstrap.yml +++ /dev/null @@ -1,11 +0,0 @@ -server: - port: 7000 - -spring: - application: - name: user-center -# cloud: -# nacos: -# discovery: -# metadata: -# version: zlt diff --git a/zlt-business/wayline-center/src/main/resources/mapper/SysMenuMapper.xml b/zlt-business/wayline-center/src/main/resources/mapper/SysMenuMapper.xml deleted file mode 100644 index 0b737f32..00000000 --- a/zlt-business/wayline-center/src/main/resources/mapper/SysMenuMapper.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMapper.xml b/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMapper.xml deleted file mode 100644 index 48f0a374..00000000 --- a/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMapper.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - id, - code, - name, - create_time, - update_time, - tenant_id, - data_scope - - - - - - and t.name like concat('%', #{r.name}, '%') - - - - and t.name like concat('%', #{r.searchValue}, '%') - - - - - - - - diff --git a/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMenuMapper.xml b/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMenuMapper.xml deleted file mode 100644 index 3d82f7f3..00000000 --- a/zlt-business/wayline-center/src/main/resources/mapper/SysRoleMenuMapper.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - delete from sys_role_menu - - - and role_id = #{roleId} - - - and menu_id = #{menuId} - - - - - - - - diff --git a/zlt-business/wayline-center/src/main/resources/mapper/SysUserMapper.xml b/zlt-business/wayline-center/src/main/resources/mapper/SysUserMapper.xml deleted file mode 100644 index a1d7e8a0..00000000 --- a/zlt-business/wayline-center/src/main/resources/mapper/SysUserMapper.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - t.is_del=0 - - and t.id like concat('%', #{u.id}, '%') - - - and t.username like concat('%', #{u.username}, '%') - - - and t.nickname like concat('%', #{u.nickname}, '%') - - - and t.enabled = #{u.enabled} - - - and t.type = #{u.type} - - - and t.id like concat('%', #{u.searchValue}, '%') - - - and t.username like concat('%', #{u.searchValue}, '%') - - - and t.nickname like concat('%', #{u.searchValue}, '%') - - - and t.mobile like concat('%', #{u.searchValue}, '%') - - - - - - diff --git a/zlt-business/wayline-center/src/main/resources/mapper/SysUserRoleMapper.xml b/zlt-business/wayline-center/src/main/resources/mapper/SysUserRoleMapper.xml deleted file mode 100644 index 05f63fc7..00000000 --- a/zlt-business/wayline-center/src/main/resources/mapper/SysUserRoleMapper.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - delete from sys_role_user - - - and user_id = #{userId} - - - and role_id = #{roleId} - - - - - -