chengwang преди 1 година
родител
ревизия
15a6740eee
променени са 8 файла, в които са добавени 3 реда и са изтрити 28 реда
  1. +0
    -15
      tuoheng-common/tuoheng-common-core/src/main/java/com/tuoheng/common/core/config/common/CommonConfig.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/CallTianYiPlatformService.java
  3. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/task/FlyDataTask.java
  4. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/application-dev.yml
  5. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/application-local.yml
  6. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/application-prod.yml
  7. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/application-test.yml
  8. +2
    -2
      tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/tzhl/TZHLFlyDataServiceTest.java

+ 0
- 15
tuoheng-common/tuoheng-common-core/src/main/java/com/tuoheng/common/core/config/common/CommonConfig.java Целия файл

*/ */
public static String templateId; public static String templateId;


/**
* 天翼星云地址
*/
public static String tianYiUrl;

/** /**
* 小程序 appId赋值 * 小程序 appId赋值
* *
wechatURL = url; wechatURL = url;
} }



/**
* 天翼url
* @param url
*/
@Value("${tuoheng.tianyi-url}")
public void tianYiUrl(String url) {
tianYiUrl = url;
}

} }

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/service/CallTianYiPlatformService.java Целия файл

throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "token不能为空"); throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "token不能为空");
} }


String url = CommonConfig.tianYiUrl + apiPath;
String url = TZHLConfig.tzhlURL + apiPath;
String properties = "Bearer " + token; String properties = "Bearer " + token;
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.add("Authorization", properties); headers.add("Authorization", properties);

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/tzhl/task/FlyDataTask.java Целия файл

.eq(Inspection::getMark, MarkEnum.VALID.getCode()) .eq(Inspection::getMark, MarkEnum.VALID.getCode())
//查询巡检方式为机场的任务 //查询巡检方式为机场的任务
.eq(Inspection::getInspectionType, InspectionTypeEnum.AIRPORT.getCode()) .eq(Inspection::getInspectionType, InspectionTypeEnum.AIRPORT.getCode())
//查询未执行任务
.eq(Inspection::getExecutionStatus, 1)
//任务飞行中 //任务飞行中
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())); .eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode()));
if (StringUtils.isEmpty(inspectionList)) { if (StringUtils.isEmpty(inspectionList)) {

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/resources/application-dev.yml Целия файл

airport-url: http://192.168.11.22:9060 airport-url: http://192.168.11.22:9060
#小程序配置地址 #小程序配置地址
wechat-url: http://192.168.11.11:9151 wechat-url: http://192.168.11.11:9151
#天翼星云配置地址
tianyi-url: http://221.230.150.241:8889
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/resources/application-local.yml Целия файл

airport-url: http://192.168.11.22:9060 airport-url: http://192.168.11.22:9060
#小程序配置地址 #小程序配置地址
wechat-url: http://192.168.11.11:9151 wechat-url: http://192.168.11.11:9151
#天翼星云配置地址
tianyi-url: http://221.230.150.241:8889
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/resources/application-prod.yml Целия файл

airport-url: https://airport.t-aaron.com airport-url: https://airport.t-aaron.com
#小程序配置地址 #小程序配置地址
wechat-url: https://telecomumale-miniprogram.t-aaron.com wechat-url: https://telecomumale-miniprogram.t-aaron.com
#天翼星云配置地址
tianyi-url: http://221.230.150.241:8889
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/resources/application-test.yml Целия файл

airport-url: https://airport-test.t-aaron.com airport-url: https://airport-test.t-aaron.com
#小程序配置地址 #小程序配置地址
wechat-url: https://telecomumale-miniprogram-test.t-aaron.com wechat-url: https://telecomumale-miniprogram-test.t-aaron.com
#天翼星云配置地址
tianyi-url: http://221.230.150.241:8889
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 2
- 2
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/tzhl/TZHLFlyDataServiceTest.java Целия файл

private FlyDataService flyDataService; private FlyDataService flyDataService;


@Test @Test
public void testFlyLog() {
String id = "da5da2c67dc152de5e43c7e7a104bfcf";
public void testFlyData() {
String id = "d51d654e4b8aae6533cbdd997af100d9";
Inspection inspection = inspectionMapper.selectById(id); Inspection inspection = inspectionMapper.selectById(id);
flyDataService.getFlyData(inspection); flyDataService.getFlyData(inspection);
} }

Loading…
Отказ
Запис