Sfoglia il codice sorgente

null 判断

master
张泽亮 2 giorni fa
parent
commit
b1223724f1
2 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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);



Caricamento…
Annulla
Salva