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
11c49154
Commit
11c49154
authored
Mar 23, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
2c450e6d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
14 deletions
+38
-14
BizMessageController.java
...in/amos/fas/business/controller/BizMessageController.java
+1
-1
LoginController.java
...yeejoin/amos/fas/business/controller/LoginController.java
+11
-1
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+6
-5
JcsFeign.java
...in/java/com/yeejoin/amos/fas/business/feign/JcsFeign.java
+2
-2
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+15
-2
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+3
-3
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/BizMessageController.java
View file @
11c49154
...
...
@@ -30,7 +30,7 @@ public class BizMessageController extends BaseController{
@Autowired
IBizMessageService
iBizMessageService
;
@Permission
//
@Permission
//@Authorization(ingore = true)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询消息"
,
notes
=
"分页查询消息"
)
@RequestMapping
(
value
=
"/page"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/LoginController.java
View file @
11c49154
...
...
@@ -111,10 +111,20 @@ public class LoginController {
if
(
ObjectUtils
.
isEmpty
(
feignClientResult
.
getResult
())){
throw
new
Exception
(
"缺失登录信息"
);
}
// 调用平台授权接口
Map
<
String
,
String
>
re
=
(
Map
<
String
,
String
>)
feignClientResult
.
getResult
();
logger
.
info
(
"登录返回信息------------------"
+
re
.
toString
());
String
amosToken
=
re
.
get
(
"token"
);
privilegeFeign
.
warrant
(
appKeyPrivilege
,
productPrivilege
,
amosToken
);
logger
.
info
(
"amosToken------------------------------------"
+
amosToken
);
logger
.
info
(
"product------------------------------------"
+
product
);
logger
.
info
(
"appKey------------------------------------"
+
appKey
);
FeignClientResult
res
=
privilegeFeign
.
warrant
(
appKeyPrivilege
,
productPrivilege
,
amosToken
);
logger
.
info
(
"privilegeFeign.warrant 返回结果-----------"
+
res
.
getResult
().
toString
());
RequestContext
.
setToken
(
amosToken
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setAppKey
(
appKey
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
11c49154
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.fas.business.controller;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.business.bo.BindRegionBo
;
import
com.yeejoin.amos.fas.business.dao.mapper.ContingencyPlanInstanceMapper
;
import
com.yeejoin.amos.fas.business.param.RetrieveParams
;
import
com.yeejoin.amos.fas.business.service.intfc.IRiskSourceService
;
import
com.yeejoin.amos.fas.business.service.intfc.IRocketMQService
;
...
...
@@ -12,6 +13,7 @@ import com.yeejoin.amos.fas.common.enums.ResourceTypeDefEnum;
import
com.yeejoin.amos.fas.config.Permission
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
com.yeejoin.amos.fas.core.util.StringUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
...
...
@@ -35,7 +37,6 @@ public class View3dController extends BaseController {
@Autowired
private
IView3dService
view3dService
;
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"点3d坐标设置"
,
notes
=
"按照点类型3d坐标设置"
)
@PostMapping
(
value
=
"/point/bind"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
setPoint3dPosition
(
@ApiParam
(
name
=
"参数"
,
required
=
true
)
@RequestBody
List
<
BindPointBo
>
pointBoList
){
...
...
@@ -106,7 +107,7 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"一周安全指数趋势查询"
,
notes
=
"一周安全指数趋势查询"
)
@GetMapping
(
value
=
"safetyIndex/week"
)
public
CommonResponse
safetyIndexWeek
(
String
type
,
Long
pointId
)
{
public
CommonResponse
safetyIndexWeek
(
@RequestParam
(
name
=
"type"
,
required
=
false
)
String
type
,
@RequestParam
(
name
=
"pointId"
,
required
=
false
)
Long
pointId
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyIndexWeek
(
orgCode
));
...
...
@@ -152,9 +153,9 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"异常显示最新5条"
,
notes
=
"异常显示最新5条"
)
@GetMapping
(
value
=
"safetyExecute/list/{type}"
)
public
CommonResponse
getSafetyExecuteListTop5
(
@PathVariable
(
"type"
)
String
type
){
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyExecuteListTop5
(
type
,
orgCode
));
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyExecuteListTop5
(
type
,
orgCode
));
}
...
...
@@ -331,5 +332,5 @@ public class View3dController extends BaseController {
}
return
CommonResponseUtil
.
success
(
msg
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/feign/JcsFeign.java
View file @
11c49154
...
...
@@ -24,8 +24,8 @@ public interface JcsFeign {
*/
@RequestMapping
(
value
=
"/jcs/common/duty-person/new-duty-detail"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
ResponseModel
dutyStatisticsByDate
(
@RequestParam
String
beginDate
,
@RequestParam
String
endDate
,
@RequestParam
(
value
=
"beginDate"
)
String
beginDate
,
@RequestParam
(
value
=
"endDate"
)
String
endDate
,
@RequestParam
(
required
=
false
)
String
fieldCode
);
/**
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
11c49154
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.fas.business.bo.CheckErrorBo;
import
com.yeejoin.amos.fas.business.bo.RiskPointRpnChangeBo
;
import
com.yeejoin.amos.fas.business.bo.SafetyExecuteBo
;
import
com.yeejoin.amos.fas.business.constants.FasConstant
;
import
com.yeejoin.amos.fas.business.dao.mapper.ContingencyPlanInstanceMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.PatrolMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.RiskSourceMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.View3dMapper
;
...
...
@@ -92,6 +93,9 @@ public class View3dServiceImpl implements IView3dService {
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
@Autowired
ContingencyPlanInstanceMapper
contingencyPlanInstanceMapper
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
CommonResponse
setPoint3dPosition
(
List
<
BindPointBo
>
pointBoList
)
{
...
...
@@ -423,7 +427,8 @@ public class View3dServiceImpl implements IView3dService {
@Override
public
List
<
Map
<
String
,
Object
>>
getStatisticsCheck
(
String
orgCode
)
{
List
<
HashMap
<
String
,
Object
>>
statisticsCheck
=
view3dMapper
.
getStatisticsCheck
(
orgCode
);
String
bizOrgCode
=
getBizOrgCode
(
orgCode
);
List
<
HashMap
<
String
,
Object
>>
statisticsCheck
=
view3dMapper
.
getStatisticsCheck
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
stateList
=
PlanTaskDetailStatusEnum
.
getEnumList
();
stateList
.
forEach
(
s
->
{
if
(
statisticsCheck
!=
null
)
{
...
...
@@ -449,7 +454,7 @@ public class View3dServiceImpl implements IView3dService {
case
"risk"
:
//风险异常
return
view3dMapper
.
getRiskErrorTop5
(
orgCode
);
case
"check"
:
//巡检异常
return
view3dMapper
.
getCheckErrorTop5
(
orgCode
);
return
view3dMapper
.
getCheckErrorTop5
(
getBizOrgCode
(
orgCode
)
);
case
"fire"
:
//火灾告警
return
view3dMapper
.
getFireAlarmTop5
(
orgCode
);
default
:
...
...
@@ -457,6 +462,14 @@ public class View3dServiceImpl implements IView3dService {
}
}
private
String
getBizOrgCode
(
String
orgCode
)
{
String
bizOrgCode
=
null
;
if
(
StringUtil
.
isNotEmpty
(
orgCode
))
{
bizOrgCode
=
contingencyPlanInstanceMapper
.
getBizOrgCode
(
orgCode
);
}
return
bizOrgCode
;
}
@Override
public
Map
<
String
,
Object
>
getStatisticsDuty
()
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
11c49154
...
...
@@ -131,13 +131,13 @@
left JOIN p_plan_task t on t.id=d.task_no
WHERE
DATEDIFF(t.begin_time,CURRENT_DATE) <= 0 AND DATEDIFF(t.end_time,CURRENT_DATE) >
= 0
AND (t.org_code like CONCAT(#{orgCode},'
-
%') OR t.org_code = #{orgCode})
AND (t.org_code like CONCAT(#{orgCode},'%') OR t.org_code = #{orgCode})
AND d.status = 0
UNION ALL
select
is_ok as type,count(1) as value
from p_check a
where (a.org_code like CONCAT(#{orgCode},'
-
%') OR a.org_code = #{orgCode})
where (a.org_code like CONCAT(#{orgCode},'%') OR a.org_code = #{orgCode})
and TO_DAYS(a.check_time) = TO_DAYS(CURRENT_DATE)
GROUP BY a.is_ok
]]>
...
...
@@ -161,7 +161,7 @@
left join p_point I ON I.id = p.point_id
where p.is_ok IN ('2', '3')
AND I.is_delete = 0
AND (p.org_code = #{orgCode} OR p.org_code like CONCAT(#{orgCode},'
-
%') )
AND (p.org_code = #{orgCode} OR p.org_code like CONCAT(#{orgCode},'%') )
ORDER BY p.check_time desc
limit 0,5
</select>
...
...
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