驱动器添加时,默认 ID 修改为 1

This commit is contained in:
赵俊
2021-05-30 17:40:48 +08:00
parent 7bd02437f0
commit 6ed6b4a019

View File

@@ -238,10 +238,10 @@ public class DriveConfigService {
public Integer selectNextId() {
Integer maxId = driverConfigRepository.selectMaxId();
if (maxId == null) {
maxId = 1;
return 1;
} else {
return maxId + 1;
}
return maxId + 1;
}