|
|
|
@ -125,10 +125,11 @@ public class SceneQuestionServiceImpl implements ISceneQuestionService { |
|
|
|
} |
|
|
|
sceneQuestion.setUploadPath(uploadFilePath); |
|
|
|
result = sceneQuestionMapper.updateSceneQuestion(sceneQuestion); |
|
|
|
zdxtFileCommonApi.deleteZdxtFileByIds(sceneQuestion.getGuid()); |
|
|
|
//zdxtFileCommonApi.deleteZdxtFileByIds(sceneQuestion.getGuid());
|
|
|
|
} |
|
|
|
// 上传文件,并在附件表中添加记录
|
|
|
|
if (result > 0 && !ObjectUtil.isEmpty(files)) { |
|
|
|
zdxtFileCommonApi.deleteZdxtFileByIds(sceneQuestion.getGuid()); |
|
|
|
zdxtFileCommonApi.insertZdxtFile(files[0], sceneQuestion.getGuid() + "", uploadFilePath); |
|
|
|
return ZDResponse.success(); |
|
|
|
} else if (result > 0) { |
|
|
|
|