更改参数类型

master
ZhiShuo_Lou 2023-12-06 22:33:34 +08:00
parent 975cce4bcc
commit 17a6e59eee
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
public boolean save(FirmCar entity) { public boolean save(FirmCar entity) {
boolean save = super.save(entity); boolean save = super.save(entity);
if (!save) { if (!save) {
throw new RuntimeException("围栏添加失败!"); throw new RuntimeException("车辆添加失败!");
} }
return true; return true;
} }
@ -41,7 +41,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
public boolean removeById(Serializable id) { public boolean removeById(Serializable id) {
boolean remove = super.removeById(id); boolean remove = super.removeById(id);
if (!remove) { if (!remove) {
throw new RuntimeException("围栏删除失败!"); throw new RuntimeException("车辆删除失败!");
} }
return true; return true;
} }
@ -50,7 +50,7 @@ public class FirmCarServiceImpl extends ServiceImpl<FirmCarMapper, FirmCar> impl
public boolean updateById(FirmCar entity) { public boolean updateById(FirmCar entity) {
boolean update = super.updateById(entity); boolean update = super.updateById(entity);
if (!update) { if (!update) {
throw new RuntimeException("围栏编辑失败!"); throw new RuntimeException("车辆编辑失败!");
} }
return true; return true;
} }