Parcourir la source

null 判断

master
张泽亮 il y a 1 jour
Parent
révision
b1223724f1
2 fichiers modifiés avec 6 ajouts et 4 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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



Chargement…
Annuler
Enregistrer