|
@@ -1573,6 +1573,9 @@ public class RunBuild {
|
|
|
componentModelUploadEntity.setId(Long.valueOf(modelId));
|
|
|
componentModelUploadEntity.setThumStatus(1);
|
|
|
componentModelUploadEntity.setThumProgress(100);
|
|
|
+ if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
+ componentModelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ }
|
|
|
componentModelUploadService.updateById(componentModelUploadEntity);
|
|
|
redisUtil.setEx("componentCreateImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|
|
|
|
|
@@ -1617,6 +1620,9 @@ public class RunBuild {
|
|
|
modelUploadEntity.setId(Long.valueOf(modelId));
|
|
|
modelUploadEntity.setThumStatus(1);
|
|
|
modelUploadEntity.setThumProgress(100);
|
|
|
+ if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
+ modelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ }
|
|
|
modelUploadService.updateById(modelUploadEntity);
|
|
|
redisUtil.setEx("createImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|
|
|
|
|
@@ -1655,6 +1661,10 @@ public class RunBuild {
|
|
|
modelUploadEntity.setId(Long.valueOf(modelId));
|
|
|
modelUploadEntity.setThumStatus(1);
|
|
|
modelUploadEntity.setThumProgress(100);
|
|
|
+ ///web-shared/OneKeyDecorate/upload/1460791186728423424/
|
|
|
+ if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
+ modelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ }
|
|
|
modelUploadService.updateById(modelUploadEntity);
|
|
|
redisUtil.setEx("createImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|
|
|
|