Commit e0475f0f authored by 李秀明's avatar 李秀明

fix(equip): 空指针处理

parent 3539ed33
......@@ -404,9 +404,10 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
String qrCodeImage = QRCodeUtil.genQrCodeBase64PngWithWord(equipmentSpecific.getQrCode(), 200, 200, equipmentSpecific.getQrCode(),200, type);
equipmentDetail.setQrCodeImage(qrCodeImage);
// 消防系统
FireFightingSystemEntity fireFightingSystem = fireFightingSystemService.getOneById(Long.valueOf(equipmentSpecific.getSystemId()));
equipmentSpecific.setSystemName(Objects.isNull(fireFightingSystem) ? "" : fireFightingSystem.getName());
// } // 1640241257290686465
if (Objects.nonNull(equipmentSpecific.getSystemId())) {
FireFightingSystemEntity fireFightingSystem = fireFightingSystemService.getOneById(Long.valueOf(equipmentSpecific.getSystemId()));
equipmentSpecific.setSystemName(Objects.isNull(fireFightingSystem) ? "" : fireFightingSystem.getName());
}
// 装备分类
Equipment equipment = equipmentDetail.getEquipment();
if (Objects.nonNull(equipment)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment