mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ 查询数据库为空判断
This commit is contained in:
@@ -83,7 +83,7 @@ public class DriveConfigService {
|
||||
* @return 驱动器设置
|
||||
*/
|
||||
public DriveConfig findById(Integer id) {
|
||||
return driverConfigRepository.findById(id).get();
|
||||
return driverConfigRepository.findById(id).orElse(null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user