Ver código fonte

编辑任务

tags/V1.0.1^2
chengwang 1 ano atrás
pai
commit
181b542445
2 arquivos alterados com 1 adições e 19 exclusões
  1. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirLineListService.java
  2. +0
    -19
      tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/InspectionServiceTest.java

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirLineListService.java Ver arquivo

@@ -33,6 +33,7 @@ public class GetAirLineListService {
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_LINE_LIST;
String param = "page=1&limit=100&droneId=" + droneId;
String airPortStr = HttpUtils.sendGet(url, param);
//string----->JsonResult
JsonResult<AirLineVO> jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);

if (ObjectUtil.isEmpty(jsonResult) || (!ObjectUtil.isEmpty(Objects.requireNonNull(jsonResult).getData()) && jsonResult.getCode() != 0)) {

+ 0
- 19
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/InspectionServiceTest.java Ver arquivo

@@ -74,17 +74,6 @@ public class InspectionServiceTest {
public void testEdit() {
EditInspectionRequest request = new EditInspectionRequest();
request.setId("54601a9f13236dd3b5151db5ebdb0794");
request.setType(1);
request.setName("test1");
request.setChannelId("1");
request.setLegId("1");
request.setInspectionType(1);
request.setAirportId(1);
request.setAirportName("禄口1");
request.setInspectionLine(1);
request.setInspectionLineName("路线11");
request.setInspectionTime(DateUtils.now());
request.setNote("test");

JsonResult result = iInspectionService.update(request);
System.out.println(">>>>>>>>>>>>>" + result);
@@ -98,14 +87,7 @@ public class InspectionServiceTest {
public void testResubmit() {
EditInspectionRequest request = new EditInspectionRequest();
request.setId("1f2ed1f784eb36165785d5235350ef7d");
request.setCode("XJRW20221130092941");
request.setType(1);
request.setInspectionType(2);
request.setName("test1");
request.setChannelId("1");
request.setChannelName("G2");
request.setLegId("1");
request.setLegName("航段1");
request.setAirportId(1);
request.setAirportName("禄口1");
request.setInspectionLine(1);
@@ -116,7 +98,6 @@ public class InspectionServiceTest {
request.setEndLongitude("22");
request.setEndLatitude("22");
request.setInspectionTime(DateUtils.now());
request.setNote("test");

JSONObject json = (JSONObject) JSONObject.toJSON(request);
log.info("-----> 重新提交请求参数:json={}", json);

Carregando…
Cancelar
Salvar