From e9cb17933fc40269272ff6595877884f1ed52a07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com>
Date: Thu, 12 Sep 2024 16:26:32 +0800
Subject: [PATCH] 'commit'
---
.idea/compiler.xml | 5 -----
.idea/misc.xml | 2 +-
.../java/com/dsideal/base/Teacher/Model/TeacherModel.java | 2 +-
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 2bafae48..f3422a84 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -30,10 +30,6 @@
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index a9fc6872..8078ecc0 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -21,5 +21,5 @@
-
+
\ No newline at end of file
diff --git a/ds-base/src/main/java/com/dsideal/base/Teacher/Model/TeacherModel.java b/ds-base/src/main/java/com/dsideal/base/Teacher/Model/TeacherModel.java
index 64fc1271..2f05bd5f 100644
--- a/ds-base/src/main/java/com/dsideal/base/Teacher/Model/TeacherModel.java
+++ b/ds-base/src/main/java/com/dsideal/base/Teacher/Model/TeacherModel.java
@@ -266,7 +266,7 @@ public class TeacherModel {
String sql = Db.getSql("loginPerson.getLoginInfoByPersonId");
List list = Db.find(sql, person_id);
if (!list.isEmpty()) {
- Record record = list.getFirst();
+ Record record = list.get(0);
return record;
} else {
return null;