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
73bb9b0f
Commit
73bb9b0f
authored
Apr 22, 2022
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
df232663
7189d282
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
13 deletions
+55
-13
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+8
-4
ISourceSceneService.java
.../com/yeejoin/equipmanage/service/ISourceSceneService.java
+1
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+39
-8
SourceSceneServiceImpl.java
...join/equipmanage/service/impl/SourceSceneServiceImpl.java
+6
-0
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
73bb9b0f
...
@@ -769,16 +769,20 @@ public class OrgUsrController extends BaseController {
...
@@ -769,16 +769,20 @@ public class OrgUsrController extends BaseController {
queryWrapper
.
eq
(
"type"
,
"SpecialType"
).
or
().
eq
(
"type"
,
"SpecialDepartment"
);
queryWrapper
.
eq
(
"type"
,
"SpecialType"
).
or
().
eq
(
"type"
,
"SpecialDepartment"
);
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
List
<
String
>
objects
=
new
ArrayList
<>();
List
<
String
>
objects
=
new
ArrayList
<>();
list
.
stream
().
forEach
(
e
->
objects
.
add
(
e
.
get
Nam
e
()));
list
.
stream
().
forEach
(
e
->
objects
.
add
(
e
.
get
Cod
e
()));
//判断当前登录人权限是否处于特殊类型
//判断当前登录人权限是否处于特殊类型
if
(
objects
.
contains
(
authKey
)){
if
(
objects
.
contains
(
authKey
)){
//判断当前登录人部门是否处于特殊部门
//判断当前登录人部门是否处于特殊部门
if
(
objects
.
contains
(
personIdentity
.
getCompanyId
()))
{
if
(
objects
.
contains
(
personIdentity
.
getCompanyId
()))
{
//查询当前登录人所属单位/部门
OrgUsr
orgUsr
=
orgUsrMapper
.
selectById
(
personIdentity
.
getCompanyId
());
//查询当前登录人父级单位
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
OrgUsr:
:
get
ParentId
,
personIdentity
.
getCompany
Id
());
wrapper
.
eq
(
OrgUsr:
:
get
SequenceNbr
,
orgUsr
.
getParent
Id
());
wrapper
.
eq
(
BaseEntity:
:
getIsDelete
,
false
);
wrapper
.
eq
(
BaseEntity:
:
getIsDelete
,
false
);
OrgUsr
orgUsr
=
orgUsrMapper
.
selectOne
(
wrapper
);
OrgUsr
result
=
orgUsrMapper
.
selectOne
(
wrapper
);
personIdentity
.
setBizOrgCode
(
orgUsr
.
getBizOrgCode
()
!=
null
?
orgUsr
.
getBizOrgCode
()
:
personIdentity
.
getBizOrgCode
()
);
bizOrgCode
=
result
.
getBizOrgCode
()
!=
null
?
result
.
getBizOrgCode
()
:
personIdentity
.
getBizOrgCode
(
);
}
}
}
}
// 权限处理
// 权限处理
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ISourceSceneService.java
View file @
73bb9b0f
...
@@ -16,4 +16,5 @@ public interface ISourceSceneService extends IService<SourceScene> {
...
@@ -16,4 +16,5 @@ public interface ISourceSceneService extends IService<SourceScene> {
* @Date 2020/12/19 15:25
* @Date 2020/12/19 15:25
*/
*/
List
<
SourceScene
>
findBySourceId
(
Long
sourceId
);
List
<
SourceScene
>
findBySourceId
(
Long
sourceId
);
List
<
SourceScene
>
findByType
(
String
type
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
73bb9b0f
...
@@ -1295,18 +1295,38 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1295,18 +1295,38 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
@Override
@Override
public
List
<
EquiplistSpecificBySystemVO
>
getPointInFloor
(
Long
floorId
)
{
public
List
<
EquiplistSpecificBySystemVO
>
getPointInFloor
(
Long
floorId
)
{
//0.查询画布信息,todo 建筑可标记点类型为装备、摄像头
//0.查询画布信息,todo 建筑可标记点类型为装备、摄像头
List
<
SourceScene
>
sourceScenes
=
sourceSceneService
.
findBySourceId
(
floorId
);
// List<SourceScene> sourceScenes = sourceSceneService.findBySourceId(floorId);
SourceScene
sourceScene
=
sourceScenes
.
size
()
>
0
?
sourceScenes
.
get
(
0
)
:
new
SourceScene
();
//查询所有画布
//0.1已标记装备点
List
<
SourceScene
>
sourceScenes
=
sourceSceneService
.
findByType
(
"building"
);
String
equipPointInScene
=
sourceScene
.
getPointInScene
()
!=
null
?
sourceScene
.
getPointInScene
()
:
""
;
//0.2已标记视频点
String
videoPointInScene
=
sourceScene
.
getVideoInScene
()
!=
null
?
sourceScene
.
getVideoInScene
()
:
""
;
// SourceScene sourceScene = sourceScenes.size() > 0 ? sourceScenes.get(0) : new SourceScene();
//// //0.1已标记装备点
//// String equipPointInScene = sourceScene.getPointInScene() != null ? sourceScene.getPointInScene() : "";
//// //0.2已标记视频点
//// String videoPointInScene = sourceScene.getVideoInScene() != null ? sourceScene.getVideoInScene() : "";
//1.查询楼层下的所有装备list
//1.查询楼层下的所有装备list
List
<
EquiplistSpecificBySystemVO
>
equipmentSpecifics
=
equipmentSpecificMapper
.
getListByWarehouseStructureId
(
floorId
);
List
<
EquiplistSpecificBySystemVO
>
equipmentSpecifics
=
equipmentSpecificMapper
.
getListByWarehouseStructureId
(
floorId
);
equipmentSpecifics
.
forEach
(
e
->
{
equipmentSpecifics
.
forEach
(
e
->
{
//已经标记则为已绑定
//已经标记则为已绑定
e
.
setIsBound
(
equipPointInScene
.
contains
(
e
.
getId
().
toString
()));
if
(
sourceScenes
!=
null
&&
sourceScenes
.
size
()>
0
){
Boolean
isBound
=
false
;
for
(
SourceScene
sourceScene
:
sourceScenes
)
{
String
equipPointInScene
=
sourceScene
.
getPointInScene
()
!=
null
?
sourceScene
.
getPointInScene
()
:
""
;
isBound
=
equipPointInScene
.
contains
(
e
.
getId
().
toString
());
if
(
isBound
){
break
;
}
}
e
.
setIsBound
(
isBound
);
}
e
.
setType
(
"装备点"
);
e
.
setType
(
"装备点"
);
});
});
List
<
EquiplistSpecificBySystemVO
>
bySystemVOS
=
new
ArrayList
<>(
equipmentSpecifics
);
List
<
EquiplistSpecificBySystemVO
>
bySystemVOS
=
new
ArrayList
<>(
equipmentSpecifics
);
...
@@ -1321,7 +1341,18 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1321,7 +1341,18 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
vo
.
setEquipmentName
(
v
.
getName
());
vo
.
setEquipmentName
(
v
.
getName
());
vo
.
setType
(
"视频点"
);
vo
.
setType
(
"视频点"
);
//已经标记则为已绑定
//已经标记则为已绑定
vo
.
setIsBound
(
videoPointInScene
.
contains
(
v
.
getId
().
toString
()));
if
(
sourceScenes
!=
null
&&
sourceScenes
.
size
()>
0
){
Boolean
isBound
=
false
;
for
(
SourceScene
sourceScene
:
sourceScenes
)
{
String
videoPointInScene
=
sourceScene
.
getVideoInScene
()
!=
null
?
sourceScene
.
getVideoInScene
()
:
""
;
isBound
=
videoPointInScene
.
contains
(
v
.
getId
().
toString
());
if
(
isBound
){
break
;
}
}
vo
.
setIsBound
(
isBound
);
}
bySystemVOS
.
add
(
vo
);
bySystemVOS
.
add
(
vo
);
});
});
return
bySystemVOS
;
return
bySystemVOS
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SourceSceneServiceImpl.java
View file @
73bb9b0f
...
@@ -27,4 +27,10 @@ public class SourceSceneServiceImpl extends ServiceImpl<SourceSceneMapper, Sourc
...
@@ -27,4 +27,10 @@ public class SourceSceneServiceImpl extends ServiceImpl<SourceSceneMapper, Sourc
Optional
.
ofNullable
(
sourceId
).
orElseThrow
(()
->
new
BadRequest
(
"sourceId为空"
));
Optional
.
ofNullable
(
sourceId
).
orElseThrow
(()
->
new
BadRequest
(
"sourceId为空"
));
return
this
.
list
(
new
QueryWrapper
<
SourceScene
>().
lambda
().
eq
(
SourceScene:
:
getSourceId
,
sourceId
));
return
this
.
list
(
new
QueryWrapper
<
SourceScene
>().
lambda
().
eq
(
SourceScene:
:
getSourceId
,
sourceId
));
}
}
@Override
public
List
<
SourceScene
>
findByType
(
String
type
)
{
Optional
.
ofNullable
(
type
).
orElseThrow
(()
->
new
BadRequest
(
"type为空"
));
return
this
.
list
(
new
QueryWrapper
<
SourceScene
>().
lambda
().
eq
(
SourceScene:
:
getSourceType
,
type
));
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
73bb9b0f
...
@@ -612,7 +612,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -612,7 +612,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
page
.
setCurrent
(
i
);
page
.
setCurrent
(
i
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
LambdaQueryWrapper
<
CylinderInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
CylinderInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderByDesc
(
CylinderInfo:
:
getSequenceNbr
);
wrapper
.
select
(
CylinderInfo:
:
getSequenceCode
,
CylinderInfo:
:
getSequenceNbr
).
orderByDesc
(
CylinderInfo:
:
getSequenceNbr
);
IPage
<
CylinderInfo
>
result
=
this
.
page
(
page
,
wrapper
);
IPage
<
CylinderInfo
>
result
=
this
.
page
(
page
,
wrapper
);
for
(
CylinderInfo
r
:
result
.
getRecords
())
{
for
(
CylinderInfo
r
:
result
.
getRecords
())
{
// 设置token
// 设置token
...
...
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