Ver código fonte

null 判断

master
张泽亮 1 dia atrás
pai
commit
b1223724f1
2 arquivos alterados com 6 adições e 4 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

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



Carregando…
Cancelar
Salvar