|
@@ -825,24 +825,29 @@ public class ManagerController extends BaseController {
|
|
|
version + "/SyncData.json");
|
|
|
String message = id + ":;" + "1" + ":;" + jsonObject.toString();
|
|
|
rabbitTemplate.convertAndSend(TopicRabbitConfig.TOPICE, TopicRabbitConfig.SYNCMODEL, message);
|
|
|
+ if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getImg()) && renovationPartsDetailEntity.getImg().contains("temp")) {
|
|
|
+ uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getImg().replace(prefix, ""),
|
|
|
+ renovationPartsDetailEntity.getImg().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
+ uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getImg().replace(prefix, ""));
|
|
|
+ renovationPartsDetailEntity.setImg(renovationPartsDetailEntity.getImg().replace("/temp/", "/models/"));
|
|
|
+ renovationPartsDetailEntity.setHighImg(renovationPartsDetailEntity.getHighImg().replace("/temp/", "/models/"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getPath()) && renovationPartsDetailEntity.getPath().contains("temp")) {
|
|
|
+ uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""),
|
|
|
+ renovationPartsDetailEntity.getPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
+ uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""));
|
|
|
+ renovationPartsDetailEntity.setPath(renovationPartsDetailEntity.getPath().replace("/temp/", "/models/"));
|
|
|
+ }
|
|
|
|
|
|
- uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getImg().replace(prefix, ""),
|
|
|
- renovationPartsDetailEntity.getImg().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
- uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""),
|
|
|
- renovationPartsDetailEntity.getPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
- if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getMviewPath())) {
|
|
|
+ if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getMviewPath()) && renovationPartsDetailEntity.getMviewPath().contains("temp")) {
|
|
|
uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getMviewPath().replace(prefix, ""),
|
|
|
renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getMviewPath().replace(prefix, ""));
|
|
|
renovationPartsDetailEntity.setMviewPath(renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/"));
|
|
|
}
|
|
|
|
|
|
- uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getImg().replace(prefix, ""));
|
|
|
- uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""));
|
|
|
|
|
|
- renovationPartsDetailEntity.setImg(renovationPartsDetailEntity.getImg().replace("/temp/", "/models/"));
|
|
|
- renovationPartsDetailEntity.setHighImg(renovationPartsDetailEntity.getHighImg().replace("/temp/", "/models/"));
|
|
|
- renovationPartsDetailEntity.setPath(renovationPartsDetailEntity.getPath().replace("/temp/", "/models/"));
|
|
|
}
|
|
|
|
|
|
renovationPartsDetailService.updateById(renovationPartsDetailEntity);
|