update
This commit is contained in:
@@ -2,6 +2,7 @@ package org.jeecg.modules.database.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecg.modules.database.entity.Equipment;
|
||||
import org.jeecg.modules.database.mapper.EquipmentMapper;
|
||||
import org.jeecg.modules.database.service.IEquipmentService;
|
||||
@@ -18,6 +19,9 @@ public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment
|
||||
|
||||
@Override
|
||||
public Equipment getByManagementNo(String managementNo) {
|
||||
if (StringUtils.isBlank(managementNo)) {
|
||||
return null;
|
||||
}
|
||||
return getOne(new LambdaQueryWrapper<Equipment>().eq(Equipment::getManagementNo, managementNo), false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user