Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
90252bd2
Commit
90252bd2
authored
Aug 05, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接航班号
parent
5560ae62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
IotFeignClient.java
...oin/amos/boot/module/common/api/feign/IotFeignClient.java
+7
-3
AircraftController.java
...os/boot/module/jcs/biz/controller/AircraftController.java
+4
-11
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/IotFeignClient.java
View file @
90252bd2
...
...
@@ -4,7 +4,10 @@ import org.springframework.cloud.openfeign.FeignClient;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -21,8 +24,9 @@ public interface IotFeignClient {
**/
@RequestMapping
(
value
=
"/v1/iot/DynamicFlightInfo/{flightNo}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Map
<
String
,
Object
>>
getDynamicFlightInfo
(
@PathVariable
String
flightNo
);
@RequestMapping
(
value
=
"/v1/iot/DynamicFlightInfo/list"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
findImgByFileCategory
();
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AircraftController.java
View file @
90252bd2
...
...
@@ -161,14 +161,9 @@ public class AircraftController extends BaseController {
@GetMapping
(
value
=
"/getAircraftNum"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取24小时内的航班号"
,
notes
=
"获取24小时内的航班号"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getAircraftNum
()
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
Map
<
String
,
Object
>
map
=
new
HashedMap
();
Map
<
String
,
Object
>
map1
=
new
HashedMap
();
map
.
put
(
"id"
,
"1"
);
map
.
put
(
"name"
,
"测试"
);
map1
.
put
(
"id"
,
"12"
);
map1
.
put
(
"name"
,
"测试2"
);
list
.
add
(
map1
);
list
.
add
(
map
);
return
ResponseHelper
.
buildResponse
(
list
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
dataModel
=
iotFeignClient
.
findImgByFileCategory
();
return
ResponseHelper
.
buildResponse
(
dataModel
!=
null
?
dataModel
.
getResult
():
null
);
}
/**
...
...
@@ -181,9 +176,7 @@ public class AircraftController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过航班号,查询最新的航班信息"
,
notes
=
"通过航班号,查询最新的航班信息"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getAircraftDetails
(
@PathVariable
String
num
)
{
Map
<
String
,
Object
>
map1
=
new
HashedMap
();
Map
<
String
,
Object
>
map1
=
new
HashedMap
();
ResponseModel
<
Map
<
String
,
Object
>>
dataModel
=
iotFeignClient
.
getDynamicFlightInfo
(
num
);
if
(
dataModel
!=
null
)
{
Map
<
String
,
Object
>
map
=
dataModel
.
getResult
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment