61777-法规技术评估列表查询权限完善。
This commit is contained in:
+8
-6
@@ -712,17 +712,19 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
QueryWrapper<LawsTechnologyEvaluationFlowDetailEO> flowDetailQueryWrap = new QueryWrapper<>();
|
QueryWrapper<LawsTechnologyEvaluationFlowDetailEO> flowDetailQueryWrap = new QueryWrapper<>();
|
||||||
flowDetailQueryWrap.lambda().eq(LawsTechnologyEvaluationFlowDetailEO::getEvaluatorId,currentUser.getId());
|
flowDetailQueryWrap.lambda().eq(LawsTechnologyEvaluationFlowDetailEO::getEvaluatorId,currentUser.getId());
|
||||||
List<LawsTechnologyEvaluationFlowDetailEO> flowDetailEOList = this.lawsTechnologyEvaluationFlowDetailEOService.list(flowDetailQueryWrap);
|
List<LawsTechnologyEvaluationFlowDetailEO> flowDetailEOList = this.lawsTechnologyEvaluationFlowDetailEOService.list(flowDetailQueryWrap);
|
||||||
if(CollectionUtils.isNotEmpty(flowDetailEOList)){
|
|
||||||
List<String> lawsTechnologyEvaluationIdList = flowDetailEOList.stream().map(LawsTechnologyEvaluationFlowDetailEO::getLawsTechnologyEvaluationId).distinct().collect(Collectors.toList());
|
queryWrapper.and(query -> {
|
||||||
queryWrapper.and(query -> {
|
query.eq("create_by",currentUser.getUsername());
|
||||||
query.eq("create_by",currentUser.getUsername());
|
if(CollectionUtils.isNotEmpty(flowDetailEOList)){
|
||||||
|
List<String> lawsTechnologyEvaluationIdList = flowDetailEOList.stream().map(LawsTechnologyEvaluationFlowDetailEO::getLawsTechnologyEvaluationId).distinct().collect(Collectors.toList());
|
||||||
query.or(q -> {
|
query.or(q -> {
|
||||||
for (String lawsTechnologyEvaluationId : lawsTechnologyEvaluationIdList) {
|
for (String lawsTechnologyEvaluationId : lawsTechnologyEvaluationIdList) {
|
||||||
q.or().like("id",lawsTechnologyEvaluationId);
|
q.or().like("id",lawsTechnologyEvaluationId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user