kangwei :巡检记录,开始巡检丢失部分检查项问题
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
... | @@ -38,7 +38,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -38,7 +38,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
38 | 38 | ||
39 | 39 | ||
40 | /** | 40 | /** |
41 | * 根据分线点编号dangerId,获取最新的巡检记录 | 41 | * 根据风险点编号dangerId,获取最新的巡检记录 |
42 | * @param dangerId | 42 | * @param dangerId |
43 | * @return | 43 | * @return |
44 | */ | 44 | */ |
... | @@ -88,7 +88,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -88,7 +88,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
88 | queryWrapper.eq(DangerInspectInfo::getDangerId, dangerId); | 88 | queryWrapper.eq(DangerInspectInfo::getDangerId, dangerId); |
89 | List<DangerInspectInfo> dangerInspectInfoList = inspectInfoMapper.selectList( queryWrapper ); | 89 | List<DangerInspectInfo> dangerInspectInfoList = inspectInfoMapper.selectList( queryWrapper ); |
90 | 90 | ||
91 | LambdaQueryWrapper<DangerInspectItem> queryItemWrapper = new LambdaQueryWrapper<DangerInspectItem>(); | 91 | |
92 | List<DangerInspectItem> inspectItemList = null; | 92 | List<DangerInspectItem> inspectItemList = null; |
93 | 93 | ||
94 | 94 | ||
... | @@ -108,6 +108,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -108,6 +108,7 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
108 | dangerInspectionInfoMapper.insert(inspectionInfo); | 108 | dangerInspectionInfoMapper.insert(inspectionInfo); |
109 | 109 | ||
110 | //搜索检查内容对象,检查项目 | 110 | //搜索检查内容对象,检查项目 |
111 | LambdaQueryWrapper<DangerInspectItem> queryItemWrapper = new LambdaQueryWrapper<DangerInspectItem>(); | ||
111 | queryItemWrapper.eq(DangerInspectItem::getInspectObjId, dangerInspectInfo.getId()); | 112 | queryItemWrapper.eq(DangerInspectItem::getInspectObjId, dangerInspectInfo.getId()); |
112 | inspectItemList = inspectItemMapper.selectList(queryItemWrapper); | 113 | inspectItemList = inspectItemMapper.selectList(queryItemWrapper); |
113 | if(inspectItemList != null && !inspectItemList.isEmpty()){ | 114 | if(inspectItemList != null && !inspectItemList.isEmpty()){ |
... | @@ -126,6 +127,8 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect | ... | @@ -126,6 +127,8 @@ public class DangerInspectionRecordServiceImpl extends ServiceImpl<DangerInspect |
126 | } | 127 | } |
127 | } | 128 | } |
128 | } | 129 | } |
130 | //添加检查项 | ||
131 | |||
129 | // inspectInfoMapper. | 132 | // inspectInfoMapper. |
130 | 133 | ||
131 | //this.baseMapper.batchSaveInspectionInfo(dangerInspection); | 134 | //this.baseMapper.batchSaveInspectionInfo(dangerInspection); | ... | ... |
-
请 注册 或 登录 后发表评论