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
7968d8f8
Commit
7968d8f8
authored
Nov 15, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防巡查隐患优化-指定治理人
parent
e3437e01
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
0 deletions
+62
-0
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+14
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+19
-0
LatentDangerController.java
...os/patrol/business/controller/LatentDangerController.java
+7
-0
JcsFeignClient.java
...om/yeejoin/amos/patrol/business/feign/JcsFeignClient.java
+10
-0
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+9
-0
ILatentDangerService.java
...s/patrol/business/service/intfc/ILatentDangerService.java
+3
-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/OrgUsrController.java
View file @
7968d8f8
...
...
@@ -570,4 +570,17 @@ public class OrgUsrController extends BaseController {
public
ResponseModel
<
List
<
AgencyUserModel
>>
getAmosUserByOrgUser
(
@PathVariable
String
orgUserId
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getAmosUserByOrgUser
(
orgUserId
));
}
/**
* 根据机场单位id获取单位人员列表
*
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据机场单位id获取单位人员列表"
,
notes
=
"根据机场单位id获取单位人员列表"
)
@GetMapping
(
value
=
"/{companyId}/person/list"
)
public
ResponseModel
<
List
<
OrgUsr
>>
getPersonListByCompanyId
(
@PathVariable
String
companyId
)
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getPersonListByCompanyId
(
companyId
));
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
7968d8f8
...
...
@@ -1594,6 +1594,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
* @param id
* @return
*/
@Override
public
List
<
OrgUsr
>
getPersonListByParentId
(
Long
id
)
{
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<
OrgUsr
>();
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
...
...
@@ -1882,4 +1883,22 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
return
amosUser
;
}
/**
* 查询组织机构下面的人员列表信息
*
* @param id
* @return
*/
public
List
<
OrgUsr
>
getPersonListByCompanyId
(
String
id
)
{
OrgUsr
company
=
this
.
getById
(
id
);
if
(
ValidationUtil
.
isEmpty
(
company
))
{
return
null
;
}
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<
OrgUsr
>();
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgPersonEnum
.
人员
.
getKey
());
wrapper
.
likeRight
(
OrgUsr:
:
getBizOrgCode
,
company
.
getBizOrgCode
());
return
this
.
baseMapper
.
selectList
(
wrapper
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/LatentDangerController.java
View file @
7968d8f8
...
...
@@ -324,4 +324,11 @@ public class LatentDangerController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"系统繁忙,请稍后再试"
);
}
}
@ApiOperation
(
value
=
"应急指挥科人员列表"
,
notes
=
"应急指挥科人员列表"
)
@GetMapping
(
value
=
"/emergencyCommandSection/person/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getPersonListByCompanyId
()
{
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getPersonListByCompanyId
());
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/feign/JcsFeignClient.java
View file @
7968d8f8
...
...
@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
// 机场服务
@FeignClient
(
name
=
"${jcs.fegin.name}"
,
path
=
"jcs"
,
configuration
=
FeignConfiguration
.
class
)
...
...
@@ -21,5 +22,14 @@ public interface JcsFeignClient {
**/
@RequestMapping
(
value
=
"/org-usr/amos/list/{orgUserId}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
AgencyUserModel
>>
getAmosUserByUserId
(
@PathVariable
String
orgUserId
);
/**
* 根据机场单位id获取单位下人员列表
*
* @param companyId 机场单位id
* @return Object 单位下人员列表
**/
@RequestMapping
(
value
=
"/org-usr/{companyId}/person/list"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getPersonListByCompanyId
(
@PathVariable
String
companyId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
7968d8f8
...
...
@@ -207,6 +207,9 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
private
String
bizType
=
"patrol"
;
@Value
(
"${emergency.command.section.id}"
)
private
String
emergencyCommandSectionId
;
@Transactional
@Override
public
CommonResponse
saveNormal
(
LatentDangerNormalParam
latentDangerParam
,
String
userId
,
String
userRealName
,
String
departmentId
,
String
departmentName
,
String
companyId
,
String
orgCode
,
RoleBo
role
)
{
...
...
@@ -1703,4 +1706,10 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
}
return
taskId
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getPersonListByCompanyId
()
{
List
<
Map
<
String
,
Object
>>
personList
=
jcsFeignClient
.
getPersonListByCompanyId
(
emergencyCommandSectionId
).
getResult
();
return
personList
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/ILatentDangerService.java
View file @
7968d8f8
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
service
.
intfc
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.data.domain.Page
;
...
...
@@ -83,4 +84,6 @@ public interface ILatentDangerService {
List
<
DangerTimeAxisVo
>
queryExecuteLog
(
Integer
dateTime
);
String
queryTaskByInstanceId
(
String
processInstanceId
);
List
<
Map
<
String
,
Object
>>
getPersonListByCompanyId
();
}
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