|
@@ -698,7 +698,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public ResultData uploadSuccessBuild(String params, User user, boolean forceBuild) throws Exception {
|
|
|
|
|
|
|
+ public ResultData uploadSuccessBuild(String params, User user, boolean forceBuild, boolean checkUploadFile) throws Exception {
|
|
|
log.info("uploadSuccessBuild-params: " + params);
|
|
log.info("uploadSuccessBuild-params: " + params);
|
|
|
String preParams = params;
|
|
String preParams = params;
|
|
|
if (StringUtils.isEmpty(params)) {
|
|
if (StringUtils.isEmpty(params)) {
|
|
@@ -741,7 +741,9 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Set<String> notExistsFiles = commonService.checkUploadFile(mac, fileId, folderName, fYunFileConfig.getFyunType());
|
|
Set<String> notExistsFiles = commonService.checkUploadFile(mac, fileId, folderName, fYunFileConfig.getFyunType());
|
|
|
if(CollUtil.isNotEmpty(notExistsFiles)){
|
|
if(CollUtil.isNotEmpty(notExistsFiles)){
|
|
|
log.error("文件缺失, unicode:{}, 缺失文件:{}", folderName, notExistsFiles);
|
|
log.error("文件缺失, unicode:{}, 缺失文件:{}", folderName, notExistsFiles);
|
|
|
- throw new BusinessException(ModelingControlRespCode.FILE_EMPTY.code(), ModelingControlRespCode.FILE_EMPTY.message());
|
|
|
|
|
|
|
+ if(checkUploadFile){
|
|
|
|
|
+ throw new BusinessException(ModelingControlRespCode.FILE_EMPTY.code(), ModelingControlRespCode.FILE_EMPTY.message());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -847,7 +849,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public ResultData turntableUploadSuccess(String params, User user, boolean forceBuild) throws Exception {
|
|
|
|
|
|
|
+ public ResultData turntableUploadSuccess(String params, User user, boolean forceBuild, boolean checkUploadFille) throws Exception {
|
|
|
log.info("turntableUploadSuccess-params: " + params);
|
|
log.info("turntableUploadSuccess-params: " + params);
|
|
|
String preParams = params;
|
|
String preParams = params;
|
|
|
if (StringUtils.isEmpty(params)) {
|
|
if (StringUtils.isEmpty(params)) {
|
|
@@ -890,7 +892,9 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Set<String> notExistsFiles = commonService.checkUploadFile(mac, fileId, folderName, fYunFileConfig.getFyunType());
|
|
Set<String> notExistsFiles = commonService.checkUploadFile(mac, fileId, folderName, fYunFileConfig.getFyunType());
|
|
|
if(CollUtil.isNotEmpty(notExistsFiles)){
|
|
if(CollUtil.isNotEmpty(notExistsFiles)){
|
|
|
log.error("文件缺失, unicode:{}, 缺失文件:{}", folderName, notExistsFiles);
|
|
log.error("文件缺失, unicode:{}, 缺失文件:{}", folderName, notExistsFiles);
|
|
|
- throw new BusinessException(ModelingControlRespCode.FILE_EMPTY.code(), ModelingControlRespCode.FILE_EMPTY.message());
|
|
|
|
|
|
|
+ if(checkUploadFille){
|
|
|
|
|
+ throw new BusinessException(ModelingControlRespCode.FILE_EMPTY.code(), ModelingControlRespCode.FILE_EMPTY.message());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|