Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
e179b4bd
Commit
e179b4bd
authored
Dec 27, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改三维接口返回
parent
f29517b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
31 deletions
+54
-31
FireSourceController.java
...in/amos/fas/business/controller/FireSourceController.java
+11
-2
RiskSourceController.java
...in/amos/fas/business/controller/RiskSourceController.java
+2
-2
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+41
-27
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/FireSourceController.java
View file @
e179b4bd
...
...
@@ -20,6 +20,8 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -40,6 +42,7 @@ public class FireSourceController extends BaseController {
private
IWaterResourceService
iWaterResourceService
;
@Autowired
private
IEquipmentService
iEquipService
;
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
FireSourceController
.
class
);
@Permission
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"添加消防装备"
,
notes
=
"添加消防装备"
)
...
...
@@ -207,9 +210,15 @@ public class FireSourceController extends BaseController {
@Permission
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防状态明细信息"
,
notes
=
"消防状态明细信息"
)
@RequestMapping
(
value
=
"/info/detail"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
queryForEquipmentList
(
@ApiParam
(
value
=
"设备名称"
,
required
=
true
)
@RequestParam
Lo
ng
id
,
public
CommonResponse
queryForEquipmentList
(
@ApiParam
(
value
=
"设备名称"
,
required
=
true
)
@RequestParam
Stri
ng
id
,
@ApiParam
(
value
=
"设备编号"
,
required
=
true
)
@RequestParam
String
type
)
throws
Exception
{
return
CommonResponseUtil
.
success
(
iFireEquipService
.
queryForDetail
(
type
,
id
));
try
{
return
CommonResponseUtil
.
success
(
iFireEquipService
.
queryForDetail
(
type
,
Long
.
valueOf
(
id
)));
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"消防装备明细查询失败"
+
e
.
getMessage
());
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/RiskSourceController.java
View file @
e179b4bd
...
...
@@ -674,8 +674,8 @@ public class RiskSourceController extends BaseController {
@Permission
@ApiOperation
(
value
=
"风险预警详情"
,
notes
=
"风险预警详情"
)
@GetMapping
(
value
=
"/warning/detail"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
earlyWarning
(
@RequestParam
Lo
ng
riskSourceId
)
{
Map
map
=
riskSourceService
.
earlyWarning
(
riskSourceId
);
public
CommonResponse
earlyWarning
(
@RequestParam
Stri
ng
riskSourceId
)
{
Map
map
=
riskSourceService
.
earlyWarning
(
Long
.
valueOf
(
riskSourceId
)
);
return
CommonResponseUtil
.
success
(
map
);
}
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
e179b4bd
This diff is collapsed.
Click to expand it.
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