保存进度

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

View File

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