maven 文件集成
This commit is contained in:
@@ -29,10 +29,15 @@
|
||||
<artifactId>zlt-db-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-iot-spring-boot-starter</artifactId>
|
||||
<version>6.0.0</version>
|
||||
</dependency>
|
||||
<!--<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<!--<version>4.3.1</version>-->
|
||||
</dependency>
|
||||
<version>4.3.1</version>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-redis-spring-boot-starter</artifactId>
|
||||
@@ -62,11 +67,6 @@
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>
|
||||
<groupId>com.iking</groupId>
|
||||
<artifactId>iking-common-params</artifactId>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
@@ -77,10 +77,6 @@
|
||||
<groupId>io.micrometer</groupId>
|
||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
@@ -99,11 +95,12 @@
|
||||
<version>2.3.30</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
|
||||
@@ -42,28 +42,29 @@
|
||||
<version>1.7.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-iot-spring-boot-starter</artifactId>
|
||||
<version>6.0.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.statemachine</groupId>
|
||||
<artifactId>spring-statemachine-core</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>4.0.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.83</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
+7
@@ -6,6 +6,7 @@ import com.zlt.tourism.annotation.ValidPhoneNumber;
|
||||
import javax.validation.ConstraintValidator;
|
||||
import javax.validation.ConstraintValidatorContext;
|
||||
|
||||
|
||||
/**
|
||||
* @Author: duzhichao
|
||||
* @CreateTime: 2024-09-27 13:52
|
||||
@@ -15,6 +16,12 @@ public class PhoneNumberValidator implements ConstraintValidator<ValidPhoneNumbe
|
||||
|
||||
// 手机号正则表达式(以中国手机号为例)
|
||||
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等其他机制处理
|
||||
|
||||
+1
-2
@@ -6,10 +6,9 @@ import org.springframework.amqp.core.BindingBuilder;
|
||||
import org.springframework.amqp.core.Queue;
|
||||
import org.springframework.amqp.core.TopicExchange;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
||||
@Configuration
|
||||
//@Configuration
|
||||
@Slf4j
|
||||
public class QueueConfig {
|
||||
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.AudioFileInfoEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -12,6 +11,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface AudioFileInfoDao extends SuperMapper<AudioFileInfoEntity> {
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.iking.IkDeviceEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -18,7 +17,7 @@ import java.util.Map;
|
||||
* @create 2024/7/25 16:26
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface IkDeviceDao extends BaseMapper<IkDeviceEntity> {
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
@@ -18,7 +17,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
* @date 2020-05-19 16:54:32
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface IkMissionDao extends SuperMapper<IkMissionEntity> {
|
||||
|
||||
IPage<IkMissionEntity> getPage(Page<IkMissionEntity> queryPage, @Param("params") MissionServicePageQuery params);
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.model.iking.IkOrganizationEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -14,6 +13,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
* @create 2024/8/7 14:32
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface IkOrganizationDao extends BaseMapper<IkOrganizationEntity> {
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
@@ -20,7 +19,7 @@ import java.util.Map;
|
||||
* @create 2024/8/7 9:44
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface IkRouteDao extends BaseMapper<IkRouteEntity> {
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.IkSysUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -12,6 +11,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface IkSysUserDao extends SuperMapper<IkSysUserEntity> {
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionImageEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -17,7 +16,7 @@ import java.util.Map;
|
||||
* @create 2024/8/31 11:18
|
||||
**/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface MissionImageDao extends SuperMapper<MissionImageEntity> {
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionImageUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -12,6 +11,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface MissionImageUserDao extends SuperMapper<MissionImageUserEntity> {
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.zlt.tourism.model.iking.MissionRecordVideoUserEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -12,6 +11,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface MissionRecordVideoUserDao extends SuperMapper<MissionRecordVideoUserEntity> {
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.dto.other.IndustryDTO;
|
||||
import com.zlt.tourism.model.tourism.ResourceRolesIndustryEntity;
|
||||
@@ -19,7 +18,7 @@ import java.util.Map;
|
||||
* @date 2021-04-20 09:30:26
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface ResourceRolesIndustryDao extends BaseMapper<ResourceRolesIndustryEntity> {
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zlt.tourism.dto.other.StationControlDTO;
|
||||
import com.zlt.tourism.model.tourism.StationControlEntity;
|
||||
@@ -18,7 +17,7 @@ import java.util.Map;
|
||||
* @date 2020-12-28 18:39:00
|
||||
*/
|
||||
@Mapper
|
||||
@DS("mgnt")
|
||||
//@DS("mgnt")
|
||||
public interface StationControlDao extends BaseMapper<StationControlEntity> {
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -124,8 +124,8 @@ public class MissionManager {
|
||||
int pages = 0;
|
||||
List<MissionRecordVideoDTO> list = new ArrayList<>();
|
||||
Result result = stationWebService.getVideoList(query);
|
||||
if (result != null && 0 == result.getFlag() && result.getData() != null) {
|
||||
Object data = result.getData();
|
||||
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");
|
||||
|
||||
+4
-4
@@ -126,7 +126,7 @@ public class TourismOrderManager {
|
||||
}
|
||||
}
|
||||
|
||||
return Result.succeed();
|
||||
return Result.succeed("创建成功");
|
||||
}
|
||||
|
||||
private CreateOrderDTO getOrderDTO(ExecuteMissionDTO model){
|
||||
@@ -198,7 +198,7 @@ public class TourismOrderManager {
|
||||
public Result<TourismOrderEnity> queryExecutionOrder(String deviceSn){
|
||||
if(StringUtils.isNotBlank(deviceSn)){
|
||||
TourismOrderEnity order = orderService.queryExecutionOrder(deviceSn);
|
||||
return Result.of(order);
|
||||
return Result.succeed(order);
|
||||
}
|
||||
return Result.failed("机库sn不能为空");
|
||||
}
|
||||
@@ -225,7 +225,7 @@ public class TourismOrderManager {
|
||||
}
|
||||
}
|
||||
vo.setList(orderInfoDTOS);
|
||||
return Result.of(vo);
|
||||
return Result.succeed(vo);
|
||||
}
|
||||
|
||||
public Boolean cancelWaitOrder(Long id){
|
||||
@@ -249,7 +249,7 @@ public class TourismOrderManager {
|
||||
Objects.nonNull(finshStatusEnity)?finshStatusEnity.getCreatedAt():null,
|
||||
query.getPage(),
|
||||
query.getLimit());
|
||||
return Result.of(pageInfo);
|
||||
return Result.succeed(pageInfo);
|
||||
}
|
||||
|
||||
public Result<TourismOrderEnity> finishExecuteMission(Long id){
|
||||
|
||||
+1
-2
@@ -4,14 +4,13 @@ package com.zlt.tourism.mq.consumer;
|
||||
import com.zlt.tourism.service.TourismOrderService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @ClassName: NotifyMsgConsumer
|
||||
**/
|
||||
@Component
|
||||
//@Component
|
||||
@Slf4j
|
||||
public class NotifyMsgConsumer {
|
||||
|
||||
|
||||
+1
-2
@@ -2,7 +2,6 @@ package com.zlt.tourism.mq.producer;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@@ -11,7 +10,7 @@ import javax.annotation.Resource;
|
||||
* @ClassName: NotifyMsgProducer
|
||||
**/
|
||||
@Slf4j
|
||||
@Component
|
||||
//@Component
|
||||
public class NotifyMsgProducer {
|
||||
|
||||
@Resource
|
||||
|
||||
+8
-7
@@ -43,8 +43,8 @@ public class TourismUserServiceImpl extends BaseServiceImpl<TourismUserDao, Tour
|
||||
@Resource
|
||||
RedisRepository redisRepository;
|
||||
|
||||
@Resource
|
||||
MessageCenterService messageCenterService;
|
||||
// @Resource
|
||||
// MessageCenterService messageCenterService;
|
||||
|
||||
@Resource
|
||||
TourismUserDao tourismUserDao;
|
||||
@@ -96,11 +96,12 @@ public class TourismUserServiceImpl extends BaseServiceImpl<TourismUserDao, Tour
|
||||
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("短信验证码发送成功,一分钟内有效");
|
||||
}
|
||||
// Result result=
|
||||
//// messageCenterService.sendNotification(messageReq);
|
||||
//// log.info("文旅发送短信验证码返回的参数是:{}",result.toString());
|
||||
// if(result.getResp_code()==0){
|
||||
// return Result.succeed("短信验证码发送成功,一分钟内有效");
|
||||
// }
|
||||
return Result.failed("短信验证码发送失败,请验证手机号是否正确");
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
package com.zlt.tourism;
|
||||
|
||||
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import com.alibaba.fastjson.support.config.FastJsonConfig;
|
||||
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
|
||||
@@ -33,7 +32,7 @@ import java.util.List;
|
||||
@EnableBaseFeignInterceptor
|
||||
@EnableDiscoveryClient
|
||||
@EnableTransactionManagement
|
||||
@SpringBootApplication(scanBasePackages = {"com.zlt.tourism"}, exclude = DruidDataSourceAutoConfigure.class)
|
||||
@SpringBootApplication(scanBasePackages = {"com.zlt.tourism"})
|
||||
public class CulturalTourismOpenApiApplication extends SpringBootServletInitializer implements ApplicationRunner {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
+6
-9
@@ -4,7 +4,6 @@ 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.central.common.model.SysUser;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zlt.tourism.core.StationResult;
|
||||
import com.zlt.tourism.dto.mission.*;
|
||||
@@ -18,7 +17,6 @@ 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 io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -39,7 +37,6 @@ import java.util.Objects;
|
||||
* @description 任务管理
|
||||
* @create 2024/8/3 16:14
|
||||
**/
|
||||
@Tag(name = "任务管理")
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/mission/")
|
||||
@Slf4j
|
||||
@@ -82,7 +79,7 @@ public class MissionController {
|
||||
if(Objects.nonNull(missionId)){
|
||||
return Result.succeed("执行成功!");
|
||||
}
|
||||
return Result.failed();
|
||||
return Result.failed("执行失败");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,7 +89,7 @@ public class MissionController {
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary = "查询任务图片分页")
|
||||
@ApiIgnore
|
||||
// @ApiIgnore
|
||||
@PostMapping(value = "/image/pageList", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<PageInfo<MissionImageDTO>> getImagePageList(@Valid @RequestBody ImagePageQuery query, BindingResult paramResult) {
|
||||
if (paramResult.hasErrors()) {
|
||||
@@ -120,7 +117,7 @@ public class MissionController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return Result.failed(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return Result.failed("获取登录用户失败,请重新登录");
|
||||
}
|
||||
@@ -134,14 +131,14 @@ public class MissionController {
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary = "新增或编辑任务")
|
||||
@ApiIgnore
|
||||
// @ApiIgnore
|
||||
@PostMapping(value = "saveOrUpdateMission")
|
||||
public StationResult saveOrUpdateMission(@RequestHeader("Authorization") String token, @Valid @RequestBody CreateOrUpdateMissionRequestDTO model, BindingResult paramResult) {
|
||||
if (paramResult.hasErrors()) {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return StationResult.error(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return StationResult.error("获取当前用户失败!");
|
||||
}
|
||||
@@ -183,7 +180,7 @@ public class MissionController {
|
||||
}
|
||||
|
||||
@Operation(summary = "获取用户任务图片列表")
|
||||
@ApiIgnore
|
||||
// @ApiIgnore
|
||||
@PostMapping(value = "/images/list", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<PageInfo<MissionImageDTO>> getImageByMissionId(@Valid @RequestBody MissionPageQuery query) {
|
||||
PageInfo<MissionImageDTO> pageInfo = missionImageService.getMissionImageByUserId(query);
|
||||
|
||||
+11
-12
@@ -11,9 +11,8 @@ 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.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
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;
|
||||
@@ -28,7 +27,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* @CreateTime: 2024-12-04 17:44
|
||||
* @Description: 订单接口实现类
|
||||
*/
|
||||
@Tag(name = "订单管理")
|
||||
@Schema(name = "订单管理")
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/order/")
|
||||
@Slf4j
|
||||
@@ -47,9 +46,9 @@ public class OrderController {
|
||||
|
||||
|
||||
@Operation(summary = "重新执行任务")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "id", value = "主键ID", required = true)
|
||||
})
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "id", value = "主键ID", required = true)
|
||||
// })
|
||||
@GetMapping(value = "retryExecuteMission/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<TourismOrderEnity> retryExecuteMission(@PathVariable("id") Long id) {
|
||||
TourismOrderEnity model = orderManager.getOrderById(id);
|
||||
@@ -71,9 +70,9 @@ public class OrderController {
|
||||
|
||||
|
||||
@Operation(summary = "取消排队的订单")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "id", value = "主键ID", required = true)
|
||||
})
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "id", value = "主键ID", required = true)
|
||||
// })
|
||||
@GetMapping(value = "cancelWaitOrder/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<Boolean> cancelWaitOrder(@PathVariable("id") Long id) {
|
||||
Boolean model = orderManager.cancelWaitOrder(id);
|
||||
@@ -94,9 +93,9 @@ public class OrderController {
|
||||
}
|
||||
|
||||
@Operation(summary = "执行中的订单完成继续执行下个排队中的订单")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "id", value = "订单id", required = true)
|
||||
})
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "id", value = "订单id", required = true)
|
||||
// })
|
||||
@GetMapping(value = "finishExecuteMission/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<TourismOrderEnity> finishExecuteMission(@PathVariable("id") Long id) {
|
||||
return orderManager.finishExecuteMission(id);
|
||||
|
||||
+4
-3
@@ -2,12 +2,13 @@ package com.zlt.tourism.api.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.central.common.context.LoginUserContextHolder;
|
||||
import com.central.common.model.SysUser;
|
||||
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;
|
||||
@@ -28,7 +29,7 @@ import java.util.Map;
|
||||
* @description 航线管理
|
||||
* @create 2024/8/19 10:50
|
||||
**/
|
||||
@Tag(name = "航线管理")
|
||||
@Schema(name = "航线管理")
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/route/")
|
||||
@@ -52,7 +53,7 @@ public class RouteController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return StationResult.error(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return StationResult.error("获取当前用户失败!");
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
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;
|
||||
@@ -9,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* @CreateTime: 2024-12-04 10:33
|
||||
* @Description: 扫码排队接口
|
||||
*/
|
||||
@Tag(name = "任务管理")
|
||||
@Schema(name = "任务管理")
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/mission/")
|
||||
@Slf4j
|
||||
|
||||
+6
-5
@@ -2,8 +2,8 @@ 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.central.common.model.SysUser;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zlt.tourism.api.query.CoordinateListQuery;
|
||||
import com.zlt.tourism.api.query.GetByIdQuery;
|
||||
@@ -13,6 +13,7 @@ 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;
|
||||
@@ -34,7 +35,7 @@ import java.util.Map;
|
||||
* @description 景点控制器
|
||||
* @create 2024/7/18 11:49
|
||||
**/
|
||||
@Tag(name = "景点管理")
|
||||
@Schema(name = "景点管理")
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/scenic/spot/")
|
||||
@@ -55,7 +56,7 @@ public class ScenicSpotController {
|
||||
@Operation(summary = "热门景点,热门标签,我的收藏")
|
||||
@PostMapping(value = "pageList", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Result<PageInfo<ScenicSpotPageVO>> getPageList(@RequestBody ScenicSpotPageQuery query) {
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
|
||||
if (user == null || user.getId() == null) {
|
||||
return Result.failed("获取登录用户失败,请重新登录");
|
||||
@@ -77,7 +78,7 @@ public class ScenicSpotController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return Result.failed(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return Result.failed("获取登录用户失败,请重新登录");
|
||||
}
|
||||
@@ -110,7 +111,7 @@ public class ScenicSpotController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return Result.failed(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return Result.failed("获取登录用户失败,请重新登录");
|
||||
}
|
||||
|
||||
+4
-3
@@ -10,7 +10,6 @@ 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.central.common.validator.AbstractAssert;
|
||||
import com.zlt.tourism.api.vo.SysUserVO;
|
||||
import com.zlt.tourism.core.StationResult;
|
||||
import com.zlt.tourism.dto.FileInfoDto;
|
||||
@@ -27,11 +26,13 @@ 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;
|
||||
@@ -49,7 +50,7 @@ import java.util.Objects;
|
||||
* @description APP用户控制器
|
||||
* @create 2024/7/4 10:04
|
||||
**/
|
||||
@Tag(name = "APP用户管理")
|
||||
@Schema(name = "APP用户管理")
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/user/")
|
||||
@Slf4j
|
||||
@@ -122,7 +123,7 @@ public class UserController {
|
||||
if(StringUtils.isBlank(password) || StringUtils.isBlank(newPassword)) {
|
||||
return StationResult.error("密码未加密");
|
||||
}
|
||||
AbstractAssert.isBlank(password, "原密码不能为空");
|
||||
Assert.isNull(password, "原密码不能为空");
|
||||
//sha256加密
|
||||
String password1 = new Sha256Hash(password, user.getSalt()).toHex();
|
||||
String passwordOld = user.getPassword();
|
||||
|
||||
+5
-4
@@ -2,8 +2,8 @@ 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.central.common.model.SysUser;
|
||||
import com.zlt.tourism.api.vo.WayPointVO;
|
||||
import com.zlt.tourism.core.StationResult;
|
||||
import com.zlt.tourism.dto.route.RockerRouteQuery;
|
||||
@@ -12,6 +12,7 @@ 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;
|
||||
@@ -33,7 +34,7 @@ import java.util.Map;
|
||||
* @description 航点管理
|
||||
* @create 2024/8/7 11:16
|
||||
**/
|
||||
@Tag(name = "航点管理")
|
||||
@Schema(name = "航点管理")
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/tourism/open/api/way/point/")
|
||||
@@ -57,7 +58,7 @@ public class WayPointController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return Result.failed(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return Result.failed("获取当前用户失败!");
|
||||
}
|
||||
@@ -86,7 +87,7 @@ public class WayPointController {
|
||||
Map<String, String> map = ParamsErrorUtil.getErrors(paramResult);
|
||||
return StationResult.error(map.values().toString());
|
||||
}
|
||||
SysUser user = LoginUserContextHolder.getUser();
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
if (user == null || user.getId() == null) {
|
||||
return StationResult.error("获取当前用户失败!");
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ public class PhoneMobileCodeDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = value = "手机号")
|
||||
@Schema(description = "手机号")
|
||||
@NotNull(message = "手机号不能为空!!!!!!")
|
||||
@ValidPhoneNumber
|
||||
private String mobile;
|
||||
|
||||
+12
-12
@@ -20,71 +20,71 @@ public class SysUserVO {
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = value = "用户头像")
|
||||
@Schema(description = "用户头像")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@Schema(description = value = "用户名")
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户头像URL
|
||||
*/
|
||||
@Schema(description = value = "用户头像URL")
|
||||
@Schema(description = "用户头像URL")
|
||||
private String avatarUrl;
|
||||
|
||||
/**
|
||||
* 员工姓名
|
||||
*/
|
||||
@Schema(description = value = "员工姓名")
|
||||
@Schema(description = "员工姓名")
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@Schema(description = value = "邮箱")
|
||||
@Schema(description = "邮箱")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Schema(description = value = "手机号")
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 用户所属机构由之前的单选变成多选,一个用户可以属于多个机构
|
||||
* 机构IDs
|
||||
*/
|
||||
@Schema(description = value = "用户所属机构")
|
||||
@Schema(description = "用户所属机构")
|
||||
private List<Long> organizationIdList;
|
||||
|
||||
/**
|
||||
* 部门 id集合
|
||||
*/
|
||||
@Schema(description = value = "部门 id集合")
|
||||
@Schema(description = "部门 id集合")
|
||||
private List<Long> deptIdList;
|
||||
|
||||
/**
|
||||
* 用户类型 :1 内部账户 2:外部账户 3:临时账户(有过期时间)
|
||||
*/
|
||||
@Schema(description = value = "用户类型")
|
||||
@Schema(description = "用户类型")
|
||||
private Integer userType;
|
||||
|
||||
|
||||
/**
|
||||
* 状态 0:禁用 1:正常
|
||||
*/
|
||||
@Schema(description = value = "状态 0:正常 1:禁用")
|
||||
@Schema(description = "状态 0:正常 1:禁用")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 主播类型(1:主播,2:副播,-2:不是主播)
|
||||
*/
|
||||
@Schema(description = value = "主播类型(1:主播,2:副播,-2:不是主播)")
|
||||
@Schema(description = "主播类型(1:主播,2:副播,-2:不是主播)")
|
||||
private Integer streamerType;
|
||||
|
||||
@Schema(description = value = "是否设置密码 0 未设置 1 已设置")
|
||||
@Schema(description = "是否设置密码 0 未设置 1 已设置")
|
||||
private Integer isHasPassword;
|
||||
}
|
||||
|
||||
+27
-27
@@ -25,174 +25,174 @@ public class WayPointVO implements Serializable {
|
||||
/**
|
||||
* 航点ID
|
||||
*/
|
||||
@Schema(description = value = "航点ID")
|
||||
@Schema(description = "航点ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long pointId;
|
||||
|
||||
/**
|
||||
* 航线名称
|
||||
*/
|
||||
@Schema(description = value = "航线名称")
|
||||
@Schema(description = "航线名称")
|
||||
private String routeName;
|
||||
|
||||
/**
|
||||
* 航线ID
|
||||
*/
|
||||
@Schema(description = value = "航线ID")
|
||||
@Schema(description = "航线ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 航点类型
|
||||
*/
|
||||
@Schema(description = value = "航点类型")
|
||||
@Schema(description = "航点类型")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 航点序号
|
||||
*/
|
||||
@Schema(description = value = "航点序号")
|
||||
@Schema(description = "航点序号")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer index;
|
||||
|
||||
/**
|
||||
* 设备经度
|
||||
*/
|
||||
@Schema(description = value = "设备经度")
|
||||
@Schema(description = "设备经度")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 航点纬度
|
||||
*/
|
||||
@Schema(description = value = "航点纬度")
|
||||
@Schema(description = "航点纬度")
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 航点高度
|
||||
*/
|
||||
@Schema(description = value = "航点高度")
|
||||
@Schema(description = "航点高度")
|
||||
private String altitude;
|
||||
|
||||
/**
|
||||
* 航点方向
|
||||
*/
|
||||
@Schema(description = value = "航点方向")
|
||||
@Schema(description = "航点方向")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Float direction;
|
||||
|
||||
/**
|
||||
* 航点速度
|
||||
*/
|
||||
@Schema(description = value = "航点速度")
|
||||
@Schema(description = "航点速度")
|
||||
private String speed;
|
||||
|
||||
/**
|
||||
* 航点动作
|
||||
*/
|
||||
@Schema(description = value = "航点动作")
|
||||
@Schema(description = "航点动作")
|
||||
private JSONArray action;
|
||||
|
||||
/**
|
||||
* 航点编码
|
||||
*/
|
||||
@Schema(description = value = "航点编码")
|
||||
@Schema(description = "航点编码")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点
|
||||
*/
|
||||
@Schema(description = value = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点")
|
||||
@Schema(description = "航点属性 0:任务点(有动作的点) 1:起飞点 2:降落点 3:安全点")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer propertyType;
|
||||
|
||||
/**
|
||||
* 1 定点转弯 2 协调转弯
|
||||
*/
|
||||
@Schema(description = value = "1 定点转弯 2 协调转弯")
|
||||
@Schema(description = "1 定点转弯 2 协调转弯")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer turnType;
|
||||
|
||||
/**
|
||||
* 协调转弯半径
|
||||
*/
|
||||
@Schema(description = value = "协调转弯半径")
|
||||
@Schema(description = "协调转弯半径")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Float coordinateRadius;
|
||||
|
||||
/**
|
||||
* 地面机器人地图内x
|
||||
*/
|
||||
@Schema(description = value = "地面机器人地图内x")
|
||||
@Schema(description = "地面机器人地图内x")
|
||||
private String positionX;
|
||||
|
||||
/**
|
||||
* 地面机器人地图内y
|
||||
*/
|
||||
@Schema(description = value = "地面机器人地图内y")
|
||||
@Schema(description = "地面机器人地图内y")
|
||||
private String positionY;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@Schema(description = value = "机器人的四元数")
|
||||
@Schema(description = "机器人的四元数")
|
||||
private String q1;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@Schema(description = value = "机器人的四元数")
|
||||
@Schema(description = "机器人的四元数")
|
||||
private String q2;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@Schema(description = value = "机器人的四元数")
|
||||
@Schema(description = "机器人的四元数")
|
||||
private String q3;
|
||||
|
||||
/**
|
||||
* 机器人的四元数
|
||||
*/
|
||||
@Schema(description = value = "机器人的四元数")
|
||||
@Schema(description = "机器人的四元数")
|
||||
private String q4;
|
||||
|
||||
/**
|
||||
* 地图内z
|
||||
*/
|
||||
@Schema(description = value = "地图内z")
|
||||
@Schema(description = "地图内z")
|
||||
private String positionZ;
|
||||
|
||||
/**
|
||||
* 转向
|
||||
*/
|
||||
@Schema(description = value = "转向")
|
||||
@Schema(description = "转向")
|
||||
private String yaw;
|
||||
|
||||
/**
|
||||
* 拍照照片数
|
||||
*/
|
||||
@Schema(description = value = "拍照照片数")
|
||||
@Schema(description = "拍照照片数")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer photo;
|
||||
|
||||
/**
|
||||
* 航线类型
|
||||
*/
|
||||
@Schema(description = value = "航线类型")
|
||||
@Schema(description = "航线类型")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer routeType;
|
||||
|
||||
/**
|
||||
* 航点动作,0:无,1:悬停,2:返航
|
||||
*/
|
||||
@Schema(description = value = "航点动作,0:无,1:悬停,2:返航")
|
||||
@Schema(description = "航点动作,0:无,1:悬停,2:返航")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer droneActionType;
|
||||
|
||||
/**
|
||||
* 航点ID
|
||||
*/
|
||||
@Schema(description = value = "航点ID")
|
||||
@Schema(description = "航点ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Integer wayPointId;
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,10 +3,10 @@ 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.params.dto.FileInfoDto;
|
||||
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;
|
||||
|
||||
+1
-1
@@ -3,9 +3,9 @@ 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.params.dto.FileInfoDto;
|
||||
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;
|
||||
|
||||
+1
-1
@@ -4,7 +4,6 @@ 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.params.dto.FileInfoDto;
|
||||
import com.central.common.utils.RSAUtil;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.zlt.tourism.api.dto.BiaxVideoDownTagDTO;
|
||||
@@ -12,6 +11,7 @@ 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;
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
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}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
package com.central.db.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
|
||||
/**
|
||||
* mapper 父类,注意这个类不要让 mp 扫描到!!
|
||||
* @author zlt
|
||||
*/
|
||||
public interface SuperMapper<T> extends BaseMapper<T> {
|
||||
public interface SuperMapper<T> extends MPJBaseMapper<T> {
|
||||
// 这里可以放一些公共的方法
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
<artifactId>zlt-commons</artifactId>
|
||||
<version>6.0.0</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>zlt-iot-spring-boot-starter</artifactId>
|
||||
@@ -21,6 +20,7 @@
|
||||
<dependency>
|
||||
<groupId>org.java-websocket</groupId>
|
||||
<artifactId>Java-WebSocket</artifactId>
|
||||
<version>1.5.7</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
@@ -29,11 +29,12 @@
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>2.0.51</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-common-spring-boot-starter</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user