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
a6e45dbd
Commit
a6e45dbd
authored
Jan 06, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.视频监控bug
parent
a2bf4b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
42 deletions
+4
-42
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+0
-9
VideoMapper.xml
...ot-system-equip/src/main/resources/mapper/VideoMapper.xml
+4
-33
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
a6e45dbd
...
...
@@ -770,15 +770,6 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
@Override
public
Page
<
BuildingVideoVO
>
buildingVideoList
(
Page
page
,
BuildingVideoListVO
dto
)
{
String
orgTypes
=
dto
.
getOrgTypes
();
if
(
StringUtils
.
isNotBlank
(
orgTypes
))
{
List
<
OrgUsrDto
>
list
=
jcsRemoteService
.
getCompanyDeptListWithAuth
(
authKey
,
orgTypes
);
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
List
<
String
>
bizOrgCodeList
=
new
ArrayList
<>();
list
.
stream
().
filter
(
x
->
StringUtils
.
isNotEmpty
(
x
.
getBizOrgCode
())).
forEach
(
o
->
bizOrgCodeList
.
add
(
o
.
getBizOrgCode
()));
dto
.
setBizOrgCodeList
(
bizOrgCodeList
);
}
}
Page
<
BuildingVideoVO
>
pages
=
videoService
.
pageBuildingVideo
(
page
,
dto
);
if
(
0
<
pages
.
getRecords
().
size
())
{
pages
.
getRecords
().
forEach
(
x
->
{
...
...
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
a6e45dbd
...
...
@@ -70,46 +70,17 @@
<if
test=
"dto.buildingId!=null and dto.buildingId!=''"
>
FIND_IN_SET(vc.source_id, getBuildChildIdsByRootId(#{dto.buildingId}))
</if>
<choose>
<when
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
OR v.biz_org_code LIKE CONCAT(#{dto.bizOrgCode}, '%')
</when>
<otherwise>
<if
test=
"dto.bizOrgCodeList != null and dto.bizOrgCodeList.size > 0"
>
AND v.biz_org_code IN
<foreach
collection=
"dto.bizOrgCodeList"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</otherwise>
</choose>
<if
test=
"dto.equipmentName!=null and dto.equipmentName!=''"
>
and v.name like concat('%',#{dto.equipmentName},'%')
</if>
<if
test=
"dto.code!=null and dto.code!=''"
>
and v.code like concat('%',#{dto.code},'%')
<if
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
and v.biz_org_code LIKE CONCAT(#{dto.bizOrgCode}, '%')
</if>
</where>
<if
test=
"dto.buildingId ==null or dto.buildingId =='' or dto.buildingId =='123456789123456789' "
>
union all
select
v.id AS id,
v.name AS name,
v.token AS token,
v.url AS url,
v.code AS code,
null as location,
v.address,
v.preset_position as presetPosition
from
wl_video v where id not in (select video_id from wl_video_source)
<if
test=
"dto.equipmentName!=null and dto.equipmentName!=''"
>
and v.name like concat('%',#{dto.equipmentName},'%')
</if>
<if
test=
"dto.code!=null and dto.code!=''"
>
and v.code like concat('%',#{dto.code},'%')
</if>
</if>
</where>
order by v.create_date
</select>
<select
id=
"getFireEquipByVideoId"
resultType=
"com.yeejoin.equipmanage.common.entity.vo.BuildingListVO"
>
...
...
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