|
@@ -362,8 +362,9 @@ public class LeaveEvent extends BaseController {
|
|
|
try {
|
|
|
String flowInstanceId = flowInstance.get("id").toString();
|
|
|
LeaveDO entity = leaveService.findByInstanceId(flowInstanceId);
|
|
|
- DeptRespDTO deptRespDTO = deptApi.getSecondDeptByDeptId(entity.getDeptId()).getCheckedData();
|
|
|
- if (entity != null && deptRespDTO!= null && entity.getUserId().equals(deptRespDTO.getLeaderUserId())) {
|
|
|
+ List<PostRespDTO> postList = postApi.getPostByUser(entity.getUserId()).getCheckedData();
|
|
|
+ Set<String> postCodes = convertSet(postList, PostRespDTO::getCode);
|
|
|
+ if (entity != null && CollectionUtil.contains(postCodes, "fgslz")) {
|
|
|
return "true";
|
|
|
}
|
|
|
return "false";
|