Explorar el Código

null 判断

master
张泽亮 hace 6 meses
padre
commit
b1223724f1
Se han modificado 2 ficheros con 6 adiciones y 4 borrados
  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 fichero

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


TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm); TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm);

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


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


+ 3
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceOperationController.java Ver fichero

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


TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm); TResourceLand land = tResourceLandService.selectTResourceLandByDkbm(dkbm);

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


TResourceOperation operation = tResourceOperationService.selectTResourceOperationByDkbm(dkbm); TResourceOperation operation = tResourceOperationService.selectTResourceOperationByDkbm(dkbm);




Cargando…
Cancelar
Guardar