Przeglądaj źródła

null 判断

master
张泽亮 1 dzień temu
rodzic
commit
b1223724f1
2 zmienionych plików z 6 dodań i 4 usunięć
  1. +3
    -2
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceLandController.java
  2. +3
    -2
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceOperationController.java

+ 3
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceLandController.java Wyświetl plik

@@ -126,8 +126,9 @@ public class TResourceLandController extends BaseController
TResourceVo resource = new TResourceVo();

TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm);

BeanUtils.copyProperties(land, resource);
if(StringUtils.isNotNull(land)){
BeanUtils.copyProperties(land, resource);
}

TResourceOperation operation = tResourceOperationService.selectTResourceOperationByDkbm(dkbm);
if(StringUtils.isNotNull(operation)){


+ 3
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceOperationController.java Wyświetl plik

@@ -127,8 +127,9 @@ public class TResourceOperationController extends BaseController
TResourceVo resource = new TResourceVo();

TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm);

BeanUtils.copyProperties(land, resource);
if(StringUtils.isNotNull(land)){
BeanUtils.copyProperties(land, resource);
}

TResourceOperation operation = tResourceOperationService.selectTResourceOperationByDkbm(dkbm);



Ładowanie…
Anuluj
Zapisz