Commit 526ea01c authored by 李驰骋's avatar 李驰骋

综合看板BUG修复,不合格分布统计异常

parent 1eb3de25
......@@ -215,7 +215,8 @@ public class KanbanTaskService {
private List<TaskStatDto.AbnormalCauseStat> unQualifiedDist(List<ProFeedback> feedbackList){
List<TaskStatDto.AbnormalCauseStat> rst = new ArrayList<>();
//按不合格原因分组
Map<String, List<ProFeedback>> feedbackMap = feedbackList.stream().collect(Collectors.groupingBy(s->s.getAbnormalReason()));
Map<String, List<ProFeedback>> feedbackMap = feedbackList.stream().filter(s->StringUtils.isNotEmpty(s.getAbnormalReason()))
.collect(Collectors.groupingBy(s->s.getAbnormalReason()));
feedbackMap.forEach((k,v)->{
if(StringUtils.isBlank(k)){
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment