保存进度

This commit is contained in:
Kane Wang 2025-03-13 22:42:26 +08:00
parent bec378be36
commit 5d117f7b51
2 changed files with 18 additions and 11 deletions

View File

@ -14,9 +14,9 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compile.source>18</maven.compile.source> <maven.compile.source>1.8</maven.compile.source>
<maven.compile.target>18</maven.compile.target> <maven.compile.target>1.8</maven.compile.target>
<maven.compiler.release>18</maven.compiler.release> <!-- <maven.compiler.release>1.8</maven.compiler.release> -->
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -149,6 +149,9 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version> <version>3.14.0</version>
<configuration> <configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArguments> <compilerArguments>
<extdirs>${project.basedir}/lib</extdirs> <extdirs>${project.basedir}/lib</extdirs>
</compilerArguments> </compilerArguments>
@ -181,7 +184,7 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>3.4.3</version> <version>2.6.0</version>
<configuration> <configuration>
<mainClass>com.cpic.xim.huixiabao.AppMain</mainClass> <mainClass>com.cpic.xim.huixiabao.AppMain</mainClass>
<includeSystemScope>true</includeSystemScope> <includeSystemScope>true</includeSystemScope>

View File

@ -68,11 +68,16 @@ public class CpicximToXMNHS
String url = CpicximToXMNHS.url; String url = CpicximToXMNHS.url;
String userName = CpicximToXMNHS.userName; String userName = CpicximToXMNHS.userName;
String password = CpicximToXMNHS.password; String password = CpicximToXMNHS.password;
String sql = """ // String sql = """
select info.psnName, info.certNo, info.serviceId, info.status, info.xyxNo // select info.psnName, info.certNo, info.serviceId, info.status, info.xyxNo
from HmbXyxInfo info, // from HmbXyxInfo info,
HmbXyxInfo_Update u // HmbXyxInfo_Update u
where info.xyxNo = u.xyxNo """; // where info.xyxNo = u.xyxNo """;
String sql = "select info.psnName, info.certNo, info.serviceId, info.status, info.xyxNo \n" +
" from HmbXyxInfo info, \n" +
" HmbXyxInfo_Update u \n" +
" where info.xyxNo = u.xyxNo";
connection = DriverManager.getConnection( url, userName, password ); connection = DriverManager.getConnection( url, userName, password );
statement = connection.createStatement(); statement = connection.createStatement();
@ -160,8 +165,7 @@ public class CpicximToXMNHS
String url = CpicximToXMNHS.url; String url = CpicximToXMNHS.url;
String userName = CpicximToXMNHS.userName; String userName = CpicximToXMNHS.userName;
String password = CpicximToXMNHS.password; String password = CpicximToXMNHS.password;
String sql = """ String sql = "delete from HmbXyxInfo_Update where xyxNo = ?";
delete from HmbXyxInfo_Update where xyxNo = ?""";
connection = DriverManager.getConnection( url, userName, password ); connection = DriverManager.getConnection( url, userName, password );
statement = connection.prepareStatement( sql.trim() ); statement = connection.prepareStatement( sql.trim() );