Преглед на файлове

Merge branch 'develop' of gitadmin/tuoheng_air_monitor into release

pull/101/head
suqin преди 10 месеца
родител
ревизия
ab2a51e1a8
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/report/GenerateReportWordService.java
  2. +3
    -3
      tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/InspectionServiceTest.java

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

@@ -53,7 +53,7 @@ public class GenerateReportWordService {
wordUtils.insertContext(airDataType.getDataType() + "单点浓度最高值:" + request.getSinglePointConcentrationMax(), 10, Font.NORMAL, Element.ALIGN_LEFT, 20, 2, 2);
wordUtils.insertContext(airDataType.getDataType() + "单点浓度最低值:" + request.getSinglePointConcentrationMin(), 10, Font.NORMAL, Element.ALIGN_LEFT, 20, 2, 2);
wordUtils.insertImg(request.getOssUrl(), Image.ALIGN_CENTER, 500, 400, 100, 40, 40, 0);
wordUtils.insertImg(request.getReferenceIndicatorHorizontalImageUrl(), Image.ALIGN_CENTER, 500, 10, 100, 10, 10, 0);
wordUtils.insertImg(request.getReferenceIndicatorHorizontalImageUrl(), Image.ALIGN_CENTER, 540, 100, 100, 60, 0, 0);
} catch (DocumentException e) {
log.info("生成报告word异常");
throw new RuntimeException(e);

+ 3
- 3
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/InspectionServiceTest.java Целия файл

@@ -65,7 +65,7 @@ public class InspectionServiceTest {
AddInspectionRequest request = new AddInspectionRequest();
request.setInspectionType(1);
request.setAirportId(1);
request.setAirportName("禄口-2022112501");
// request.setAirportName("禄口-2022112501");
request.setInspectionLine(1);
JSONObject json = (JSONObject) JSONObject.toJSON(request);
log.info("-----> 新增任务请求参数:json={}", json);
@@ -92,9 +92,9 @@ public class InspectionServiceTest {
request.setId("1f2ed1f784eb36165785d5235350ef7d");
request.setInspectionType(2);
request.setAirportId(1);
request.setAirportName("禄口1");
// request.setAirportName("禄口1");
request.setInspectionLine(1);
request.setInspectionLineName("路线11");
// request.setInspectionLineName("路线11");
request.setIsLive(1);
request.setStartLatitude("11");
request.setStartLongitude("11");

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