|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import cn.hutool.core.date.DateField; |
|
|
|
import cn.hutool.core.date.DateTime; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.ArrayUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
@@ -346,10 +347,16 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
} |
|
|
|
//待处理问题总数 |
|
|
|
long count = inspectionFileList.stream().filter(t -> t.getStatus() == 20).count(); |
|
|
|
vo.setPromTodo((int) count); |
|
|
|
log.info("待处理问题总数为:count={}",count); |
|
|
|
if(ArrayUtil.isNotEmpty(count)){ |
|
|
|
vo.setPromTodo((int) count); |
|
|
|
} |
|
|
|
//已处理问题总数 |
|
|
|
long count1 = inspectionFileList.stream().filter(t -> t.getStatus() == 25).count(); |
|
|
|
vo.setPromProcessed((int) count1); |
|
|
|
log.info("已处理问题总数为:count1={}",count1); |
|
|
|
if(ArrayUtil.isNotEmpty(count1)){ |
|
|
|
vo.setPromProcessed((int) count1); |
|
|
|
} |
|
|
|
|
|
|
|
return vo; |
|
|
|
}).collect(Collectors.toList()); |