@@ -89,8 +89,14 @@ public class AppDeviceLogServiceImpl extends JpaServiceImp<AppDeviceLog, String>
appDeviceLog.setOperator(utilService.getUserName());
save(appDeviceLog); // 记录入库日志
}
+ else{
+ throw new ApiRuntimeException(p + "设备已入库,不能重复入库!");
+ }
});
+ throw new ApiRuntimeException("设备未录入!");
@Override