xiewenjie преди 3 години
родител
ревизия
bdabbd40cd
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/testController.java

+ 2 - 2
sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/testController.java

@@ -65,7 +65,7 @@ public class testController extends BaseController {
         for (RenovationPartsDetailEntity renovationPartsDetailEntity : list) {
             if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getMviewPath()) && StrUtil.isNotBlank(renovationPartsDetailEntity.getMviewPath())) {
                 if (!uploadToOssUtil.existFileToOSS(renovationPartsDetailEntity.getMviewPath(), "4d-tjw")) {
-                    renovationPartsDetailEntity.setMviewPath(null);
+                    renovationPartsDetailEntity.setMviewPath("");
                     renovationPartsDetailService.updateById(renovationPartsDetailEntity);
                 }
             }
@@ -74,7 +74,7 @@ public class testController extends BaseController {
         for (CustomComponentEntity customComponentEntity : list1) {
             if (ObjectUtil.isNotNull(customComponentEntity.getMviewPath()) && StrUtil.isNotBlank(customComponentEntity.getMviewPath())) {
                 if (!uploadToOssUtil.existFileToOSS(customComponentEntity.getMviewPath(), "4d-tjw")) {
-                    customComponentEntity.setMviewPath(null);
+                    customComponentEntity.setMviewPath("");
                     customComponentService.updateById(customComponentEntity);
                 }
             }