From bc5fe2c2b5cbbfee08f898fb063ec10472a9d551 Mon Sep 17 00:00:00 2001 From: zhuguifei <zhuguifei@zhuguifeideiMac.local> Date: 星期三, 27 八月 2025 08:32:30 +0800 Subject: [PATCH] 去除log --- jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryEquipmentController.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryEquipmentController.java b/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryEquipmentController.java index eb38ac3..d6e5935 100755 --- a/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryEquipmentController.java +++ b/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryEquipmentController.java @@ -12,11 +12,15 @@ import javax.servlet.http.HttpServletResponse; import cn.hutool.core.bean.BeanUtil; +import org.apache.commons.lang3.StringUtils; +import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.config.TenantContext; import org.jeecg.common.constant.CommonCacheConstant; import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.util.RedisUtil; +import org.jeecg.common.util.TokenUtils; import org.jeecg.common.util.oConvertUtils; import org.jeecg.config.mybatis.MybatisPlusSaasConfig; import org.jeecg.modules.dry.common.CacheConstants; @@ -118,9 +122,16 @@ queryWrapper.orderByAsc("code"); List<DryEquipment> eqps = dryEquipmentService.list(queryWrapper); List<DryEquipmentVo> equipmentVos = new ArrayList<>(); + if(eqps == null){ + return equipmentVos; + } + eqps.stream().forEach(item -> { DryEquipmentVo dryEquipmentVo = BeanUtil.toBean(item, DryEquipmentVo.class); DryEqpType dryEqpType = dryEqpTypeService.getById(item.getType()); + if(dryEqpType == null){ + return; + } dryEquipmentVo.setType(dryEqpType.getName()); dryEquipmentVo.setDryEfficiency(dryEqpType.getDryEfficiency()); dryEquipmentVo.setSteamConsumption(dryEqpType.getSteamConsumption()); -- Gitblit v1.9.3