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
b09a9b91
Commit
b09a9b91
authored
Nov 30, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
修改bug
parents
054699ea
20038932
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
23 deletions
+76
-23
RequestData.java
.../yeejoin/amos/boot/module/common/api/dto/RequestData.java
+3
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+5
-0
RequestData.java
...va/com/yeejoin/equipmanage/common/entity/RequestData.java
+4
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+7
-16
EquipmentSpecificAlarmController.java
...ipmanage/controller/EquipmentSpecificAlarmController.java
+10
-0
VideoMapper.xml
...ot-system-equip/src/main/resources/mapper/VideoMapper.xml
+47
-7
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/dto/RequestData.java
View file @
b09a9b91
...
...
@@ -76,4 +76,7 @@ public class RequestData {
@ApiModelProperty
(
value
=
"筛选条件-是否120警情"
)
private
String
isAid
;
@ApiModelProperty
(
value
=
"筛选条件-关联视频装备id"
)
private
String
equipmentSpecificId
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
b09a9b91
...
...
@@ -280,6 +280,11 @@ public interface EquipFeignClient {
);
@RequestMapping
(
value
=
"/equipSpecificAlarm/getSpecificId"
,
method
=
RequestMethod
.
GET
)
String
getSpecificId
(
@RequestParam
(
"id"
)
String
id
)
;
/**
*
*获取视频列表
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/RequestData.java
View file @
b09a9b91
...
...
@@ -66,4 +66,7 @@ public class RequestData {
@ApiModelProperty
(
value
=
"筛选条件-所属单位"
)
private
String
bizOrgCode
;
@ApiModelProperty
(
value
=
"筛选条件-关联视频装备id"
)
private
String
equipmentSpecificId
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
b09a9b91
...
...
@@ -184,7 +184,7 @@ public class CommandController extends BaseController {
@Autowired
AirportStandMapper
airportStandMapper
;
private
static
final
String
JW
=
"mechinePosition"
;
private
static
final
String
JW
=
"mechinePosition
,seat
"
;
private
static
final
String
KEYSITE
=
"keySiteExcle"
;
public
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
CommandController
.
class
);
...
...
@@ -420,7 +420,7 @@ public class CommandController extends BaseController {
case
"237"
:
case
"238"
:
for
(
AlertFormValue
alertFormValue
:
list
)
{
if
(
alertFormValue
.
getFieldCode
().
equals
(
JW
)
&&
!
StringUtils
.
isEmpty
(
alertFormValue
.
getFieldValue
())){
if
(
JW
.
contains
(
alertFormValue
.
getFieldCode
()
)
&&
!
StringUtils
.
isEmpty
(
alertFormValue
.
getFieldValue
())){
QueryWrapper
<
AirportStand
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"stand_code"
,
alertFormValue
.
getFieldValue
());
...
...
@@ -438,9 +438,10 @@ public class CommandController extends BaseController {
par
.
setLatitude
(
alertCalled
.
getCoordinateY
());
par
.
setLongitude
(
alertCalled
.
getCoordinateX
());
if
(
alertCalled
.
getAlertSourceCode
().
equals
(
"1326"
)){
//警情来源为物联报警的
result
=
this
.
getDetailsById
(
Long
.
valueOf
(
alertCalled
.
getRelationId
()),
null
,
null
,
null
);
par
.
setLatitudeTwo
(
alertCalled
.
getCoordinateY
());
par
.
setLongitudeTwo
(
alertCalled
.
getCoordinateX
());
String
id
=
equipFeignClient
.
getSpecificId
(
alertCalled
.
getRelationId
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
id
);
String
toString
=
jsonObject
.
get
(
"result"
).
toString
();
par
.
setEquipmentSpecificId
(
toString
);
}
else
{
for
(
AlertFormValue
alertFormValue
:
list
)
{
if
(
alertFormValue
.
getFieldCode
().
equals
(
KEYSITE
)
&&
!
StringUtils
.
isEmpty
(
alertFormValue
.
getFieldValueCode
()))
{
...
...
@@ -458,21 +459,11 @@ public class CommandController extends BaseController {
}
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
null
;
if
(
ValidationUtil
.
isEmpty
(
par
.
getLatitude
())
){
if
(
ValidationUtil
.
isEmpty
(
par
.
getLatitude
()
)
){
data
=
equipFeignClient
.
getVideopagList
(
String
.
valueOf
((
pageNum
-
1
)
*
pageSize
),
pageSize
.
toString
(),
par
.
getBuildingId
(),
par
.
getCode
(),
par
.
getEquipmentName
(),
par
.
getBizOrgCode
(),
par
.
getType
());
}
else
{
data
=
equipFeignClient
.
pageVideoByAlertType
(
pageNum
,
pageSize
,
par
);
}
if
(!
ObjectUtils
.
isEmpty
(
result
)&&!
ObjectUtils
.
isEmpty
(
result
.
getResult
().
get
(
"video"
))){
List
<
Map
<
String
,
Object
>>
records
=
result
!=
null
?
(
List
<
Map
<
String
,
Object
>>)
result
.
getResult
().
get
(
"video"
)
:
null
;
Page
<
Map
<
String
,
Object
>>
page
=
data
.
getResult
();
records
.
addAll
(
data
.
getResult
().
getRecords
());
page
.
setRecords
(
records
);
data
.
setResult
(
page
);
}
// ResponseModel<Page<Map<String, Object>>> data = equipFeignClient.pageVideo(pageNum == 0 ? 1 : pageNum, pageSize, par.getLongitude(), par.getLatitude(), par.getDistance());
Page
<
Map
<
String
,
Object
>>
pag
=
data
!=
null
?
data
.
getResult
()
:
null
;
List
<
Map
<
String
,
Object
>>
records
=
pag
!=
null
?
pag
.
getRecords
()
:
null
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificAlarmController.java
View file @
b09a9b91
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.equipmanage.common.entity.vo.EquipmentBaseAppVO;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmMapper
;
import
com.yeejoin.equipmanage.service.IEquipmentService
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificAlarmLogService
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificAlarmService
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificSerivceAlarm
;
import
io.swagger.annotations.Api
;
...
...
@@ -39,6 +40,8 @@ public class EquipmentSpecificAlarmController extends AbstractBaseController {
@Autowired
IEquipmentSpecificAlarmService
iEquipmentSpecificAlarmService
;
@Autowired
IEquipmentSpecificAlarmLogService
iEquipmentSpecificAlarmLogService
;
@Autowired
IEquipmentService
iEquipmentService
;
@Autowired
EquipmentSpecificAlarmMapper
equipmentSpecificAlarmMapper
;
...
...
@@ -59,6 +62,13 @@ public class EquipmentSpecificAlarmController extends AbstractBaseController {
return
equipmentSpecificSerivceAlarm
.
findByTypeAndDate
(
dto
);
}
@RequestMapping
(
value
=
"/getSpecificId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
String
getSpecificId
(
String
id
)
{
EquipmentSpecificAlarmLog
dto
=
iEquipmentSpecificAlarmLogService
.
getById
(
id
);
return
dto
.
getEquipmentSpecificId
().
toString
();
}
@RequestMapping
(
value
=
"/getEquipSpecificAlarmNotes"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取告警日志信息"
,
notes
=
"获取告警日志信息"
)
...
...
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
b09a9b91
...
...
@@ -550,8 +550,26 @@
FIND_IN_SET(#{par.buildingId}, vc.parent_source_ids)
GROUP BY id
</if>
<if
test=
"par.equipmentSpecificId!=null and par.equipmentSpecificId!=''"
>
select
v.id AS id,
v.CODE AS CODE,
v.url AS url,
v.token AS token,
v.NAME AS NAME,
v.address,
v.longitude,
'' AS distance,
v.latitude
from wl_video_equipment_specific as ves
left join wl_video as v on ves.video_id = v.id
where equipment_specific_id = #{par.equipmentSpecificId}
</if>
<if
test=
'par.longitude!=null and par.buildingId!=null '
>
UNION ALL
UNION
</if>
<if
test=
'par.longitude!=null and par.equipmentSpecificId !=null '
>
UNION
</if>
<if
test=
'par.longitude!=null and par.latitude!=null '
>
(SELECT
...
...
@@ -580,7 +598,7 @@
wle.code like concat ('%',#{par.code},'%')
</if>
ORDER BY
distance
DE
SC)
distance
A
SC)
</if>
<if
test=
"par.longitudeTwo != null and par.longitude != null"
>
UNION
...
...
@@ -605,7 +623,7 @@
wle.longitude IS NOT NULL
AND wle.latitude IS NOT NULL
<if
test=
'par.longitudeTwo!=null and par.latitude!=null '
>
AND Round(st_distance(point(wle.longitude,wle.latitude),point(#{par.longitude
},#{par.latitude}
))*111195,1)
AND Round(st_distance(point(wle.longitude,wle.latitude),point(#{par.longitude
Two},#{par.latitudeTwo}
))*111195,1)
<
= #{par.distance}
</if>
<if
test=
'par.type!=null and par.type!="" '
>
...
...
@@ -618,7 +636,7 @@
AND wle.code like concat ('%',#{par.code},'%')
</if>
ORDER BY
distance
DE
SC)
distance
A
SC)
</if>
union
SELECT
...
...
@@ -637,15 +655,37 @@
WHERE
FIND_IN_SET(#{deptId}, vc.parent_source_ids)
GROUP BY id
) AS a limit #{pageNum},#{pageSize}
) AS a
GROUP BY a.id
limit #{pageNum},#{pageSize}
</select>
<select
id=
"VideoListByAlertCount"
resultType=
"int"
>
SELECT
count(a.id)
count(1)
from
(
SELECT
a.*
FROM
(
<if
test=
"par.equipmentSpecificId!=null and par.equipmentSpecificId!=''"
>
select
v.id AS id,
v.CODE AS CODE,
v.url AS url,
v.token AS token,
v.NAME AS NAME,
v.address,
v.longitude,
'' AS distance,
v.latitude
from wl_video_equipment_specific as ves
left join wl_video as v on ves.video_id = v.id
where equipment_specific_id = #{par.equipmentSpecificId}
</if>
<if
test=
'par.longitude!=null and par.equipmentSpecificId !=null '
>
UNION
</if>
<if
test=
'par.longitude!=null and par.latitude!=null '
>
SELECT
wle.id ,
...
...
@@ -727,7 +767,7 @@
WHERE
FIND_IN_SET(#{deptId}, vc.parent_source_ids)
GROUP BY id
) AS a
) AS a
group by a.id ) b
</select>
<select
id=
"pageVideoCount"
resultType=
"int"
>
...
...
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