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
29253594
Commit
29253594
authored
Feb 09, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
怎加队伍单位查询接口
parent
ac2cc109
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
FireTeamController.java
...boot/module/common/biz/controller/FireTeamController.java
+22
-0
FireTeamServiceImpl.java
...t/module/common/biz/service/impl/FireTeamServiceImpl.java
+5
-0
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/FireTeamController.java
View file @
29253594
...
@@ -197,7 +197,29 @@ public class FireTeamController extends BaseController {
...
@@ -197,7 +197,29 @@ public class FireTeamController extends BaseController {
return
ResponseHelper
.
buildResponse
(
menus
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{companyId}/listTreetypeLikeCode"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询所属单位下消防队伍树"
,
notes
=
"查询所属单位下消防队伍树"
)
public
ResponseModel
<
List
<
Menu
>>
getlistTreeByCompanyIdLike
(
@PathVariable
(
value
=
"companyId"
)
String
companyId
)
throws
Exception
{
QueryWrapper
<
FireTeam
>
fireTeamQueryWrapper
=
new
QueryWrapper
<>();
fireTeamQueryWrapper
.
eq
(
"is_delete"
,
0
);
OrgUsr
our
=
iOrgUsrService
.
getById
(
companyId
);
//车辆装备需要判断
if
(
our
.
getParentId
()!=
null
){
//判断是不是部门
if
(
our
.
getBizOrgType
().
equals
(
"COMPANY"
)){
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
our
.
getBizOrgCode
());
}
else
{
String
id
=
orgUsrMapper
.
getParentList
(
companyId
);
OrgUsr
ourf
=
iOrgUsrService
.
getById
(
id
);
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
ourf
.
getBizOrgCode
());
}
}
List
<
Menu
>
menus
=
iFireTeamService
.
getTeamTreeLikeCode
(
fireTeamQueryWrapper
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{companyId}/getBizCode"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{companyId}/getBizCode"
,
method
=
RequestMethod
.
GET
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireTeamServiceImpl.java
View file @
29253594
...
@@ -183,6 +183,11 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -183,6 +183,11 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
null
);
null
);
}
}
public
List
<
Menu
>
getTeamTreeLikeCode
(
QueryWrapper
<
FireTeam
>
columnMap
)
throws
Exception
{
Collection
<
FireTeam
>
list
=
this
.
list
(
columnMap
);
return
TreeParser
.
getTree
(
null
,
list
,
FireTeam
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getName"
,
"getParent"
,
null
);
}
/**
/**
* 获取机场单位-队伍树
* 获取机场单位-队伍树
*
*
...
...
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