From 341989695bbbf34b9332315c4470bdf05f7a8d30 Mon Sep 17 00:00:00 2001 From: JRNitre Date: Tue, 18 Jun 2024 22:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=EF=BC=9A=E5=9C=A8=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B8=AD=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=B9=B6=E6=94=B9=E8=BF=9B=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84=20=E4=B8=BA=E4=BA=86=E6=8F=90=E9=AB=98=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=BA=93=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7=E5=92=8C?= =?UTF-8?q?=E5=8F=AF=E7=BB=B4=E6=8A=A4=E6=80=A7=EF=BC=8C=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A=E6=9D=A5=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E5=90=84=E7=B1=BB=E3=80=81=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=8F=8A=E5=8F=98=E9=87=8F=E7=9A=84=E7=9B=AE=E7=9A=84=E5=92=8C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=82=20=E5=90=8C=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=BC=95=E5=85=A5=E5=BF=85=E8=A6=81=E7=9A=84=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E5=99=A8=E3=80=81getter=E3=80=81setter=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9B=B4=E5=A5=BD=E7=9A=84=E7=BC=96=E7=A8=8B?= =?UTF-8?q?=E5=AE=9E=E8=B7=B5=E9=87=8D=E6=9E=84=E7=8E=B0=E6=9C=89=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=82=20=E4=BF=AE=E6=94=B9=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8C=85=E6=8B=AC=EF=BC=9A=20src/dao/AdminDao.java=20?= =?UTF-8?q?src/dao/AdminDaoImpl.java=20src/po/Admin.java=20src/View/AdminV?= =?UTF-8?q?iew.java=20src/po/Business.java=20src/dao/BusinessDao.java=20sr?= =?UTF-8?q?c/dao/BusinessDaoImpl.java=20src/View/Display.java=20src/ElmAdm?= =?UTF-8?q?inEntry.java=20src/ElmBusinessEntry.java=20src/jdbc/JDBC.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CourseExperiment/src/ElmAdminEntry.java | 4 +++- .../CourseExperiment/src/ElmBusinessEntry.java | 2 +- .../CourseExperiment/src/View/AdminView.java | 2 +- .../CourseExperiment/src/View/Display.java | 2 +- .../CourseExperiment/src/dao/AdminDao.java | 2 +- .../CourseExperiment/src/dao/AdminDaoImpl.java | 2 +- .../CourseExperiment/src/dao/BusinessDao.java | 2 +- .../CourseExperiment/src/dao/BusinessDaoImpl.java | 2 +- .../CourseExperiment/src/jdbc/JDBC.java | 2 +- .../CourseExperiment/src/po/Admin.java | 2 +- .../CourseExperiment/src/po/Business.java | 2 +- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmAdminEntry.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmAdminEntry.java index 3461777..f137490 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmAdminEntry.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmAdminEntry.java @@ -12,6 +12,8 @@ public class ElmAdminEntry { new ElmAdminEntry().work(); } + // CodeLineNum 2600 + private static final int exitCode = 10; public void work(){ @@ -99,4 +101,4 @@ public class ElmAdminEntry { System.exit(0); } } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmBusinessEntry.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmBusinessEntry.java index 986f6fa..02a4f1a 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmBusinessEntry.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/ElmBusinessEntry.java @@ -127,4 +127,4 @@ public class ElmBusinessEntry { } } } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/AdminView.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/AdminView.java index ab3cbe9..f88a0a4 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/AdminView.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/AdminView.java @@ -555,4 +555,4 @@ public class AdminView { e.printStackTrace(); } } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/Display.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/Display.java index 3b2f64b..0744550 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/Display.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/View/Display.java @@ -209,4 +209,4 @@ public class Display { System.out.println("+ 按回车键继续..."); sca.nextLine(); } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDao.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDao.java index 393351a..b551338 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDao.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDao.java @@ -15,4 +15,4 @@ public interface AdminDao { boolean updateAdminPassword(Admin admin); ResultSet fuzzyQueryExampleForName(String name); ResultSet getAllAdmin(); -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDaoImpl.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDaoImpl.java index d9b0834..6da680e 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDaoImpl.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/AdminDaoImpl.java @@ -181,4 +181,4 @@ public class AdminDaoImpl implements AdminDao{ } return null; } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDao.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDao.java index 7cfc27d..15f2338 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDao.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDao.java @@ -26,4 +26,4 @@ public interface BusinessDao { boolean deleteFoodId(int foodId, Business business); boolean deleteFoodName(String foodName, Business business); ResultSet getBusinessFoodInfo(Business business); -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDaoImpl.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDaoImpl.java index c776e3b..aafcc63 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDaoImpl.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/dao/BusinessDaoImpl.java @@ -511,4 +511,4 @@ public class BusinessDaoImpl implements BusinessDao{ } return false; } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/jdbc/JDBC.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/jdbc/JDBC.java index af7e017..f0305c7 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/jdbc/JDBC.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/jdbc/JDBC.java @@ -30,4 +30,4 @@ public class JDBC { throw new RuntimeException("数据库连接失败", e); } } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Admin.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Admin.java index 1d5e2af..2672e03 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Admin.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Admin.java @@ -57,4 +57,4 @@ public class Admin { public void setAdminPassword(String password){ adminPassword = password; } -} +} \ No newline at end of file diff --git a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Business.java b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Business.java index 97e26a1..86dd927 100644 --- a/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Business.java +++ b/02_Intellij_Java_CourseExperiment_20240611/CourseExperiment/src/po/Business.java @@ -93,4 +93,4 @@ public class Business { public String toString() { return super.toString(); } -} +} \ No newline at end of file