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
05a812c3
Commit
05a812c3
authored
Sep 09, 2021
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检定时任务因aop未忽略导致参数异常
parent
f9fa00de
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
12 deletions
+41
-12
ControllerAop.java
...a/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
+3
-1
LatentDangerController.java
...os/patrol/business/controller/LatentDangerController.java
+14
-0
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+4
-0
TaskController.java
...ejoin/amos/patrol/business/controller/TaskController.java
+3
-1
CatalogTreeServiceImpl.java
.../patrol/business/service/impl/CatalogTreeServiceImpl.java
+1
-1
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+11
-6
MessageServiceImpl.java
...amos/patrol/business/service/impl/MessageServiceImpl.java
+5
-3
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
View file @
05a812c3
...
@@ -52,7 +52,9 @@ public class ControllerAop {
...
@@ -52,7 +52,9 @@ public class ControllerAop {
@Autowired
@Autowired
private
RedisUtils
redisUtils
;
private
RedisUtils
redisUtils
;
@Pointcut
(
"execution(public * com.yeejoin.amos.boot.module.*.biz.controller..*(..)) || execution(public * com.yeejoin.amos.*.business.controller..*(..))"
)
@Pointcut
(
"(execution(public * com.yeejoin.amos.boot.module.*.biz.controller..*(..)) "
+
"|| execution(public * com.yeejoin.amos.*.business.controller..*(..)))"
+
" && !@annotation(org.springframework.scheduling.annotation.Scheduled))"
)
public
void
userCache
()
{
public
void
userCache
()
{
}
}
...
...
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 @
05a812c3
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
...
@@ -52,6 +54,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -52,6 +54,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"创建无码无计划隐患"
,
notes
=
"创建无码无计划隐患"
)
@ApiOperation
(
value
=
"创建无码无计划隐患"
,
notes
=
"创建无码无计划隐患"
)
@PostMapping
(
value
=
"/normal/save"
)
@PostMapping
(
value
=
"/normal/save"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
saveNormal
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerNormalParam
latentDangerParam
)
{
public
CommonResponse
saveNormal
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerNormalParam
latentDangerParam
)
{
CommonResponse
commonResponse
=
new
CommonResponse
();
CommonResponse
commonResponse
=
new
CommonResponse
();
try
{
try
{
...
@@ -80,6 +83,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -80,6 +83,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"创建巡检隐患"
,
notes
=
"创建巡检隐患"
)
@ApiOperation
(
value
=
"创建巡检隐患"
,
notes
=
"创建巡检隐患"
)
@PostMapping
(
value
=
"/patrol/save"
)
@PostMapping
(
value
=
"/patrol/save"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
savePatrol
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerPatrolParam
latentDangerPatrolParam
)
{
public
CommonResponse
savePatrol
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerPatrolParam
latentDangerPatrolParam
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -102,6 +106,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -102,6 +106,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患列表"
,
notes
=
"隐患列表"
)
@ApiOperation
(
value
=
"隐患列表"
,
notes
=
"隐患列表"
)
@PostMapping
(
value
=
"/list"
)
@PostMapping
(
value
=
"/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
list
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerListParam
latentDangerListParam
)
{
public
CommonResponse
list
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerListParam
latentDangerListParam
)
{
Date
startDate
=
new
Date
();
Date
startDate
=
new
Date
();
try
{
try
{
...
@@ -124,6 +129,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -124,6 +129,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患详情"
,
notes
=
"隐患详情"
)
@ApiOperation
(
value
=
"隐患详情"
,
notes
=
"隐患详情"
)
@GetMapping
(
value
=
"/detail"
)
@GetMapping
(
value
=
"/detail"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
detail
(
@ApiParam
(
value
=
"任务Id"
,
required
=
true
)
@RequestParam
String
id
,
public
CommonResponse
detail
(
@ApiParam
(
value
=
"任务Id"
,
required
=
true
)
@RequestParam
String
id
,
@ApiParam
(
value
=
"是否完成"
,
required
=
true
)
@RequestParam
boolean
isFinish
)
{
@ApiParam
(
value
=
"是否完成"
,
required
=
true
)
@RequestParam
boolean
isFinish
)
{
try
{
try
{
...
@@ -140,6 +146,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -140,6 +146,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患执行记录"
,
notes
=
"隐患执行记录"
)
@ApiOperation
(
value
=
"隐患执行记录"
,
notes
=
"隐患执行记录"
)
@GetMapping
(
value
=
"/listFlowRecord"
)
@GetMapping
(
value
=
"/listFlowRecord"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listFlowRecord
(
@ApiParam
(
value
=
"隐患编号"
,
required
=
true
)
@RequestParam
Long
id
)
{
public
CommonResponse
listFlowRecord
(
@ApiParam
(
value
=
"隐患编号"
,
required
=
true
)
@RequestParam
Long
id
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -155,6 +162,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -155,6 +162,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"流程执行"
,
notes
=
"流程执行"
)
@ApiOperation
(
value
=
"流程执行"
,
notes
=
"流程执行"
)
@PostMapping
(
value
=
"/excute"
)
@PostMapping
(
value
=
"/excute"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
excute
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerExcuteParam
latentDangerExcuteParam
)
{
public
CommonResponse
excute
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerExcuteParam
latentDangerExcuteParam
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -186,6 +194,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -186,6 +194,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"根据流程实例编号获取隐患信息"
,
notes
=
"根据流程实例编号获取隐患信息"
)
@ApiOperation
(
value
=
"根据流程实例编号获取隐患信息"
,
notes
=
"根据流程实例编号获取隐患信息"
)
@GetMapping
(
value
=
"/getByInstanceId"
)
@GetMapping
(
value
=
"/getByInstanceId"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getByInstanceId
(
@ApiParam
(
value
=
"流程实例编号"
,
required
=
true
)
@RequestParam
String
instanceId
)
{
public
CommonResponse
getByInstanceId
(
@ApiParam
(
value
=
"流程实例编号"
,
required
=
true
)
@RequestParam
String
instanceId
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -201,6 +210,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -201,6 +210,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患按错计划流程执行回调"
,
notes
=
"隐患按错计划流程执行回调"
)
@ApiOperation
(
value
=
"隐患按错计划流程执行回调"
,
notes
=
"隐患按错计划流程执行回调"
)
@PostMapping
(
value
=
"/plan/flow/excuteCallBack"
)
@PostMapping
(
value
=
"/plan/flow/excuteCallBack"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
excuteCallBack
(
@ApiParam
(
value
=
"隐患按错计划流程执行回调对象"
)
@RequestBody
JSONObject
json
)
{
public
CommonResponse
excuteCallBack
(
@ApiParam
(
value
=
"隐患按错计划流程执行回调对象"
)
@RequestBody
JSONObject
json
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -231,6 +241,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -231,6 +241,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"获取隐患等级"
,
notes
=
"获取隐患等级"
)
@ApiOperation
(
value
=
"获取隐患等级"
,
notes
=
"获取隐患等级"
)
@GetMapping
(
value
=
"/dangerLevel"
)
@GetMapping
(
value
=
"/dangerLevel"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getDangerLevel
()
{
public
CommonResponse
getDangerLevel
()
{
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getDangerLevel
(
getToken
(),
getProduct
(),
getAppKey
(),
DictTypeEnum
.
DANGERLEVEL
.
getCode
()));
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getDangerLevel
(
getToken
(),
getProduct
(),
getAppKey
(),
DictTypeEnum
.
DANGERLEVEL
.
getCode
()));
}
}
...
@@ -246,6 +257,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -246,6 +257,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"隐患清单"
,
notes
=
"隐患清单"
)
@ApiOperation
(
value
=
"隐患清单"
,
notes
=
"隐患清单"
)
@PostMapping
(
value
=
"/page/list"
)
@PostMapping
(
value
=
"/page/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listDanger
(
@ApiParam
(
value
=
"查询条件"
,
required
=
true
)
@RequestBody
PageParam
pageParam
)
{
public
CommonResponse
listDanger
(
@ApiParam
(
value
=
"查询条件"
,
required
=
true
)
@RequestBody
PageParam
pageParam
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
if
(
ObjectUtils
.
isEmpty
(
user
))
{
...
@@ -260,6 +272,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -260,6 +272,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"导出隐患清单"
,
notes
=
"导出隐患清单"
)
@ApiOperation
(
value
=
"导出隐患清单"
,
notes
=
"导出隐患清单"
)
@PostMapping
(
value
=
"/export"
)
@PostMapping
(
value
=
"/export"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
void
exportDangerList
(
@ApiParam
(
value
=
"查询条件"
)
@RequestBody
PageParam
pageParam
,
public
void
exportDangerList
(
@ApiParam
(
value
=
"查询条件"
)
@RequestBody
PageParam
pageParam
,
HttpServletResponse
response
)
{
HttpServletResponse
response
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -286,6 +299,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -286,6 +299,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"隐患日志"
,
notes
=
"查询隐患节点信息"
)
@ApiOperation
(
value
=
"隐患日志"
,
notes
=
"查询隐患节点信息"
)
@GetMapping
(
value
=
"/listDangerTimeAxis"
)
@GetMapping
(
value
=
"/listDangerTimeAxis"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listTimeAxis
(
@ApiParam
(
value
=
"时间"
)
@RequestParam
(
required
=
false
)
Integer
dateTime
)
{
public
CommonResponse
listTimeAxis
(
@ApiParam
(
value
=
"时间"
)
@RequestParam
(
required
=
false
)
Integer
dateTime
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
if
(
ObjectUtils
.
isEmpty
(
user
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanTaskController.java
View file @
05a812c3
...
@@ -32,6 +32,8 @@ import org.springframework.data.domain.Page;
...
@@ -32,6 +32,8 @@ import org.springframework.data.domain.Page;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.context.request.RequestAttributes
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
@@ -206,6 +208,8 @@ public class PlanTaskController extends AbstractBaseController {
...
@@ -206,6 +208,8 @@ public class PlanTaskController extends AbstractBaseController {
@RequestMapping
(
value
=
"/queryOmission"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
@RequestMapping
(
value
=
"/queryOmission"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
pushCarData
()
{
public
CommonResponse
pushCarData
()
{
try
{
try
{
RequestAttributes
reqs
=
RequestContextHolder
.
getRequestAttributes
();
RequestContextHolder
.
setRequestAttributes
(
reqs
,
true
);
planTaskService
.
taskExecution
(
null
);
planTaskService
.
taskExecution
(
null
);
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/TaskController.java
View file @
05a812c3
...
@@ -802,7 +802,9 @@ public class TaskController extends AbstractBaseController{
...
@@ -802,7 +802,9 @@ public class TaskController extends AbstractBaseController{
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
list
.
forEach
(
s
->
{
list
.
forEach
(
s
->
{
set
.
add
(
s
.
getName
());
if
(!
ObjectUtils
.
isEmpty
(
s
)){
set
.
add
(
s
.
getName
());
}
});
});
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CatalogTreeServiceImpl.java
View file @
05a812c3
...
@@ -176,7 +176,7 @@ public Page<HashMap<String, Object>> getCatalogTreeInfo(String toke,String produ
...
@@ -176,7 +176,7 @@ public Page<HashMap<String, Object>> getCatalogTreeInfo(String toke,String produ
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
content
.
forEach
(
s
->
{
content
.
forEach
(
s
->
{
if
(
s
.
containsKey
(
"createBy"
))
{
if
(
s
.
containsKey
(
"createBy"
)
&&
!
ObjectUtils
.
isEmpty
(
s
.
get
(
"createBy"
))
)
{
set
.
add
(
s
.
get
(
"createBy"
).
toString
());
set
.
add
(
s
.
get
(
"createBy"
).
toString
());
}
}
});
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
05a812c3
...
@@ -161,7 +161,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -161,7 +161,7 @@ public class CheckServiceImpl implements ICheckService {
deptIds
.
remove
(
null
);
deptIds
.
remove
(
null
);
String
joinUserId
=
""
;
String
joinUserId
=
""
;
for
(
String
userId:
userIds
)
{
for
(
String
userId:
userIds
)
{
if
(
userId
!=
null
&&!
userId
.
trim
().
equals
(
""
)){
if
(
!
ObjectUtils
.
isEmpty
(
userId
)){
joinUserId
=
joinUserId
+
userId
+
","
;
joinUserId
=
joinUserId
+
userId
+
","
;
}
}
}
}
...
@@ -808,7 +808,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -808,7 +808,7 @@ public class CheckServiceImpl implements ICheckService {
deptIds
.
remove
(
null
);
deptIds
.
remove
(
null
);
String
joinUserId
=
""
;
String
joinUserId
=
""
;
for
(
String
userId:
userIds
)
{
for
(
String
userId:
userIds
)
{
if
(
userId
!=
null
&&!
userId
.
trim
().
equals
(
""
)){
if
(
!
ObjectUtils
.
isEmpty
(
userId
)){
joinUserId
=
joinUserId
+
userId
+
","
;
joinUserId
=
joinUserId
+
userId
+
","
;
}
}
}
}
...
@@ -1194,8 +1194,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1194,8 +1194,9 @@ public class CheckServiceImpl implements ICheckService {
//处理用户信息
//处理用户信息
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
set
.
add
(
checkDetailBo
.
getCheckUserName
());
if
(!
ObjectUtils
.
isEmpty
(
checkDetailBo
.
getCheckUserName
())){
set
.
add
(
checkDetailBo
.
getCheckUserName
());
}
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
userIds
=
String
.
join
(
","
,
list1
);
userIds
=
String
.
join
(
","
,
list1
);
List
<
AgencyUserModel
>
listd
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
userIds
);
List
<
AgencyUserModel
>
listd
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
userIds
);
...
@@ -1315,7 +1316,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1315,7 +1316,9 @@ public class CheckServiceImpl implements ICheckService {
if
(!
CollectionUtils
.
isEmpty
(
content
))
{
if
(!
CollectionUtils
.
isEmpty
(
content
))
{
Set
<
String
>
userIds
=
new
HashSet
<>();
Set
<
String
>
userIds
=
new
HashSet
<>();
content
.
forEach
(
e
->
{
content
.
forEach
(
e
->
{
userIds
.
add
(
e
.
get
(
"userID"
)+
""
);
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"userID"
))){
userIds
.
add
(
e
.
get
(
"userID"
)+
""
);
}
});
});
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIds
));
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIds
));
Map
<
String
,
String
>
userModelMap
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
userModelMap
=
new
HashMap
<
String
,
String
>();
...
@@ -1512,7 +1515,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1512,7 +1515,9 @@ public class CheckServiceImpl implements ICheckService {
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
checkAnalysisVos
.
forEach
(
s
->
{
checkAnalysisVos
.
forEach
(
s
->
{
set
.
add
(
s
.
getName
());
if
(!
ObjectUtils
.
isEmpty
(
s
.
getName
())){
set
.
add
(
s
.
getName
());
}
});
});
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
userIds
=
String
.
join
(
","
,
list1
);
userIds
=
String
.
join
(
","
,
list1
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/MessageServiceImpl.java
View file @
05a812c3
...
@@ -151,9 +151,11 @@ public class MessageServiceImpl implements IMessageService {
...
@@ -151,9 +151,11 @@ public class MessageServiceImpl implements IMessageService {
// List<PushTargetBo> jpushUser = msgMapper.getPushUserBo("app", String.join(",", needUserIds), checkMsgBo.getRouteId(),getAppPushConfig(checkMsgBo.getStatus()));
// List<PushTargetBo> jpushUser = msgMapper.getPushUserBo("app", String.join(",", needUserIds), checkMsgBo.getRouteId(),getAppPushConfig(checkMsgBo.getStatus()));
List
<
PushTargetBo
>
jpushUser
=
new
ArrayList
<>();
List
<
PushTargetBo
>
jpushUser
=
new
ArrayList
<>();
needUserIds
.
stream
().
forEach
(
action
->{
needUserIds
.
stream
().
forEach
(
action
->{
PushTargetBo
pb
=
new
PushTargetBo
();
if
(!
ObjectUtils
.
isEmpty
(
action
)){
pb
.
setUserId
(
action
);
PushTargetBo
pb
=
new
PushTargetBo
();
jpushUser
.
add
(
pb
);
pb
.
setUserId
(
action
);
jpushUser
.
add
(
pb
);
}
});
});
//获取需要推送的email的用户
//获取需要推送的email的用户
List
<
PushTargetBo
>
emailUser
=
msgMapper
.
getPushUserBo
(
"email"
,
String
.
join
(
","
,
needUserIds
),
checkMsgBo
.
getRouteId
(),
getEmailPushConfig
(
checkMsgBo
.
getStatus
()));
List
<
PushTargetBo
>
emailUser
=
msgMapper
.
getPushUserBo
(
"email"
,
String
.
join
(
","
,
needUserIds
),
checkMsgBo
.
getRouteId
(),
getEmailPushConfig
(
checkMsgBo
.
getStatus
()));
...
...
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