|
|
@ -21,6 +21,7 @@ import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
|
* 日常巡检-计划Service业务层处理 |
|
|
@ -164,4 +165,17 @@ public class RoutineInspectionInfoServiceImpl implements IRoutineInspectionInfoS |
|
|
|
baseMapper.insert(addList); |
|
|
|
log.info("添加日常巡检-任务成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<RoutineInspectionInfoVo> queryPageSpecialList(RoutineInspectionInfoBo bo, PageQuery pageQuery) { |
|
|
|
LambdaQueryWrapper<RoutineInspectionInfo> lqw = buildQueryWrapper(bo); |
|
|
|
Page<RoutineInspectionInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|
|
|
List<RoutineInspectionInfoVo> records = result.getRecords(); |
|
|
|
//过滤 records中的每一个元素 交付内容不是 "立项操作"的元素 用Stream流
|
|
|
|
List<RoutineInspectionInfoVo> filteredRecords = records.stream() |
|
|
|
.filter(record -> !"例行操作".equals(record.getDeliverContent())) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
result.setRecords(filteredRecords); |
|
|
|
return TableDataInfo.build(result); |
|
|
|
} |
|
|
|
} |
|
|
|