|
|
@@ -77,11 +77,14 @@ public class DetectionFileServiceImpl extends ServiceImpl<DetectionFileMapper, D
|
|
|
baseFilePO.setOssName(basefileNameAndLink.getOssName());
|
|
|
ok = baseFileService.save(baseFilePO);
|
|
|
if (!ok) throw new DefinitionException(HttpStatus.INTERNAL_SERVER_ERROR, "插入基准文件失败");
|
|
|
-
|
|
|
+ detectionFilePO.setBaseFileId(baseFilePO.getId());
|
|
|
+ ok = updateById(detectionFilePO);
|
|
|
+ if (!ok) throw new DefinitionException(HttpStatus.INTERNAL_SERVER_ERROR, "更新基准文件id失败");
|
|
|
BaseFileDTO baseFileDTO = new BaseFileDTO();
|
|
|
BeanUtils.copyProperties(baseFilePO, baseFileDTO);
|
|
|
detectionFileDTO.setBaseFile(baseFileDTO);
|
|
|
}
|
|
|
+
|
|
|
List<LabelDTO> labelDTOList = new ArrayList<>();
|
|
|
for (LabelForm labelForm : detectionFileForm.getLabelForms()) {
|
|
|
LabelPO labelPO = new LabelPO();
|