Explorar el Código

更新1.6.0,fix null1

xiewj hace 1 año
padre
commit
f2d3a175e0

+ 3 - 1
720yun_fd_manage/gis_web/src/main/java/com/gis/web/controller/TestController.java

@@ -339,7 +339,9 @@ public class TestController extends BaseController {
         if (workId.equalsIgnoreCase("all")){
         if (workId.equalsIgnoreCase("all")){
             List<WorkEntity> all = workService.findAll();
             List<WorkEntity> all = workService.findAll();
             for (WorkEntity workEntity : all) {
             for (WorkEntity workEntity : all) {
-                workService.fixSomeData2(workEntity.getId(),active);
+                if (workEntity.getStatus()==1){
+                    workService.fixSomeData2(workEntity.getId(),active);
+                }
 
 
             }
             }
         }else {
         }else {