|
@@ -508,7 +508,9 @@ public class AlbumInfoServiceImpl extends SuperServiceImpl<AlbumInfoMapper, Albu
|
|
|
public List<AlbumApproverNodeVo> approveFlowsAlbumApprovalNode() {
|
|
|
String userId = userService.queryLoginUser();
|
|
|
List<AlbumApprovalNode> albumApprovalNodeList = albumApprovalNodeService.findAllAlbumApprovalNode(userId);
|
|
|
- albumApprovalNodeList = albumApprovalNodeList.stream().filter(h -> userId.equals(h.getCreateBy()) || (StringUtils.isNotEmpty(h.getMaintainer()) && Arrays.asList(h.getMaintainer().split(",")).contains(userId))).collect(Collectors.toList());
|
|
|
+ if (!"1".equals(userId)){
|
|
|
+ albumApprovalNodeList = albumApprovalNodeList.stream().filter(h -> userId.equals(h.getCreateBy()) || (StringUtils.isNotEmpty(h.getMaintainer()) && Arrays.asList(h.getMaintainer().split(",")).contains(userId))).collect(Collectors.toList());
|
|
|
+ }
|
|
|
List<AlbumApproverNodeVo> collect = albumApprovalNodeList.parallelStream().map(e -> {
|
|
|
AlbumApproverNodeVo albumApproverNodeVo = new AlbumApproverNodeVo();
|
|
|
BeanUtils.copyProperties(e, albumApproverNodeVo);
|
|
@@ -534,7 +536,9 @@ public class AlbumInfoServiceImpl extends SuperServiceImpl<AlbumInfoMapper, Albu
|
|
|
public List<AlbumApproverNodeVo> approveFlowsAlbumYelpApprovalNode() {
|
|
|
String userId = userService.queryLoginUser();
|
|
|
List<AlbumYelpApprovalNode> albumYelpApprovalNodeList = albumYelpApprovalNodeService.findAllAlbumApprovalNode(userId);
|
|
|
- albumYelpApprovalNodeList = albumYelpApprovalNodeList.stream().filter(h -> userId.equals(h.getCreateBy()) || (StringUtils.isNotEmpty(h.getMaintainer()) && Arrays.asList(h.getMaintainer().split(",")).contains(userId))).collect(Collectors.toList());
|
|
|
+ if (!"1".equals(userId)){
|
|
|
+ albumYelpApprovalNodeList = albumYelpApprovalNodeList.stream().filter(h -> userId.equals(h.getCreateBy()) || (StringUtils.isNotEmpty(h.getMaintainer()) && Arrays.asList(h.getMaintainer().split(",")).contains(userId))).collect(Collectors.toList());
|
|
|
+ }
|
|
|
List<AlbumApproverNodeVo> collect = albumYelpApprovalNodeList.parallelStream().map(e -> {
|
|
|
AlbumApproverNodeVo albumApproverNodeVo = new AlbumApproverNodeVo();
|
|
|
BeanUtils.copyProperties(e, albumApproverNodeVo);
|