更改参数类型
parent
975cce4bcc
commit
17a6e59eee
|
@ -32,7 +32,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
|
|||
public boolean save(FirmCar entity) {
|
||||
boolean save = super.save(entity);
|
||||
if (!save) {
|
||||
throw new RuntimeException("围栏添加失败!");
|
||||
throw new RuntimeException("车辆添加失败!");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
|
|||
public boolean removeById(Serializable id) {
|
||||
boolean remove = super.removeById(id);
|
||||
if (!remove) {
|
||||
throw new RuntimeException("围栏删除失败!");
|
||||
throw new RuntimeException("车辆删除失败!");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
|
|||
public boolean updateById(FirmCar entity) {
|
||||
boolean update = super.updateById(entity);
|
||||
if (!update) {
|
||||
throw new RuntimeException("围栏编辑失败!");
|
||||
throw new RuntimeException("车辆编辑失败!");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue