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
2e4a7f64
Commit
2e4a7f64
authored
Dec 10, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加树
parent
85f52c13
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+8
-0
BuildingController.java
...om/yeejoin/equipmanage/controller/BuildingController.java
+18
-0
IBuilldService.java
.../java/com/yeejoin/equipmanage/service/IBuilldService.java
+3
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+12
-0
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/feign/EquipFeignClient.java
View file @
2e4a7f64
...
@@ -140,6 +140,13 @@ public interface EquipFeignClient {
...
@@ -140,6 +140,13 @@ public interface EquipFeignClient {
@RequestMapping
(
value
=
"/building/tree"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/building/tree"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingTree
();
ResponseModel
<
Object
>
getBuildingTree
();
/**
/**
* 获取消防系统列表
*
* @return
*/
@RequestMapping
(
value
=
"/building/treeCompany"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingTreeCompany
();
/**
* 获取消防建筑详情
* 获取消防建筑详情
*
*
* @return
* @return
...
@@ -418,4 +425,5 @@ public interface EquipFeignClient {
...
@@ -418,4 +425,5 @@ public interface EquipFeignClient {
*/
*/
@RequestMapping
(
value
=
"equipSpecific/getListByEquipmentCodeEQ/{code}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"equipSpecific/getListByEquipmentCodeEQ/{code}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getListByEquipmentCodeEQ
(
@PathVariable
(
"code"
)
String
code
);
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getListByEquipmentCodeEQ
(
@PathVariable
(
"code"
)
String
code
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/BuildingController.java
View file @
2e4a7f64
...
@@ -8,6 +8,8 @@ import java.util.Map;
...
@@ -8,6 +8,8 @@ import java.util.Map;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto
;
import
com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.equipmanage.common.dto.OrgUsrDto
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -42,6 +44,7 @@ import com.yeejoin.equipmanage.service.IFormInstanceService;
...
@@ -42,6 +44,7 @@ import com.yeejoin.equipmanage.service.IFormInstanceService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
/**
* @author ZeHua Li
* @author ZeHua Li
...
@@ -60,6 +63,8 @@ public class BuildingController extends AbstractBaseController {
...
@@ -60,6 +63,8 @@ public class BuildingController extends AbstractBaseController {
IFormInstanceService
formInstanceService
;
IFormInstanceService
formInstanceService
;
@Value
(
"${window.vedioFormat}"
)
@Value
(
"${window.vedioFormat}"
)
String
vedioFormat
;
String
vedioFormat
;
@Autowired
JcsFeign
jcsFeign
;
/**
/**
* @param groupCode
* @param groupCode
* @Description 根据groupCode查询allowOperation对应的操作菜单
* @Description 根据groupCode查询allowOperation对应的操作菜单
...
@@ -117,6 +122,19 @@ public class BuildingController extends AbstractBaseController {
...
@@ -117,6 +122,19 @@ public class BuildingController extends AbstractBaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"消防建筑树 查询所在单位下的建筑"
)
@GetMapping
(
value
=
"/treeCompany"
)
public
List
<
BuildingTreeVo
>
getBuildingTreeCompany
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
ResponseModel
<
OrgUsrDto
>
company
=
jcsFeign
.
getCompanyByBizOrgCodeList
(
bizOrgCode
);
if
(
company
.
getResult
()
!=
null
){
bizOrgCode
=
company
.
getResult
().
getBizOrgCode
();
}
return
buildService
.
getBuildingTreeNew
(
bizOrgCode
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"消防建筑树带筛选"
)
@ApiOperation
(
"消防建筑树带筛选"
)
@GetMapping
(
value
=
"/treeByName"
)
@GetMapping
(
value
=
"/treeByName"
)
public
List
<
BuildingTreeVo
>
treeByName
(
@RequestParam
(
required
=
false
)
String
name
)
{
public
List
<
BuildingTreeVo
>
treeByName
(
@RequestParam
(
required
=
false
)
String
name
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IBuilldService.java
View file @
2e4a7f64
...
@@ -76,6 +76,9 @@ public interface IBuilldService extends IService<Building> {
...
@@ -76,6 +76,9 @@ public interface IBuilldService extends IService<Building> {
*/
*/
List
<
BuildingTreeVo
>
getBuildingTree
(
String
bizOrgCode
);
List
<
BuildingTreeVo
>
getBuildingTree
(
String
bizOrgCode
);
List
<
BuildingTreeVo
>
getBuildingTreeNew
(
String
bizOrgCode
);
/**
/**
* 消防建筑树查询接口(带条件bizOrgCode)
* 消防建筑树查询接口(带条件bizOrgCode)
*
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
2e4a7f64
...
@@ -464,6 +464,18 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -464,6 +464,18 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
return
formKeyMap
;
return
formKeyMap
;
}
}
public
List
<
BuildingTreeVo
>
getBuildingTreeNew
(
String
bizOrgCode
)
{
List
<
BuildingTreeVo
>
allListVo
=
getBuildingTreeVos
(
true
,
bizOrgCode
);
return
allListVo
.
stream
().
filter
(
s
->
"-1"
.
equals
(
s
.
getParentId
())).
map
(
s
->
{
BuildingTreeVo
t
=
new
BuildingTreeVo
();
Bean
.
copyExistPropertis
(
s
,
t
);
t
.
setChildren
(
this
.
getChildren
(
t
.
getInstanceId
(),
allListVo
));
t
.
setDetailPaneApi
(
address
);
t
.
setApiUrl
(
apiUrl
);
return
t
;
}).
collect
(
Collectors
.
toList
());
}
@Override
@Override
public
List
<
BuildingTreeVo
>
getBuildingTree
(
String
bizOrgCode
)
{
public
List
<
BuildingTreeVo
>
getBuildingTree
(
String
bizOrgCode
)
{
List
<
BuildingTreeVo
>
allListVo
=
getBuildingTreeVos
(
true
,
bizOrgCode
);
List
<
BuildingTreeVo
>
allListVo
=
getBuildingTreeVos
(
true
,
bizOrgCode
);
...
...
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