This commit is contained in:
mashuai 2024-11-26 17:52:41 +08:00
parent 62c81d8fa0
commit 5710939573
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class BookCarServiceImpl implements BookCarService {
*/ */
@Override @Override
public AjaxResult deleteById(BookCarInfoDto devInfo) { public AjaxResult deleteById(BookCarInfoDto devInfo) {
if (devInfo == null || StringUtils.isEmpty(devInfo.getMaId())) { if (devInfo == null || devInfo.getId() == null) {
return AjaxResult.error("传入设备ID为空请刷新后重试"); return AjaxResult.error("传入设备ID为空请刷新后重试");
} }
int result = bookCarMapper.deleteById(devInfo.getId()); int result = bookCarMapper.deleteById(devInfo.getId());