diff --git a/code/cpicxim-XMNHSA-repeater/pom.xml b/code/cpicxim-XMNHSA-repeater/pom.xml index 7a2b939..c95dacc 100644 --- a/code/cpicxim-XMNHSA-repeater/pom.xml +++ b/code/cpicxim-XMNHSA-repeater/pom.xml @@ -136,20 +136,18 @@ - - + compile maven-surefire-plugin - 3.3.0 + 3.5.2 true maven-compiler-plugin - 3.13.0 + 3.14.0 ${project.basedir}/lib @@ -159,7 +157,7 @@ org.apache.maven.plugins maven-assembly-plugin - 3.3.0 + 3.7.1 jar-with-dependencies @@ -181,22 +179,22 @@ - org.springframework.boot - spring-boot-maven-plugin - 3.4.3 - - com.cpic.xim.huixiabao.AppMain - true - - - - repackage - - repackage - - - - + org.springframework.boot + spring-boot-maven-plugin + 3.4.3 + + com.cpic.xim.huixiabao.AppMain + true + + + + repackage + + repackage + + + + \ No newline at end of file diff --git a/code/cpicxim-XMNHSA-repeater/src/main/java/com/cpic/xim/huixiabao/nhs/CpicximToXMNHS.java b/code/cpicxim-XMNHSA-repeater/src/main/java/com/cpic/xim/huixiabao/nhs/CpicximToXMNHS.java index 9d9ddf4..4ed7cbf 100644 --- a/code/cpicxim-XMNHSA-repeater/src/main/java/com/cpic/xim/huixiabao/nhs/CpicximToXMNHS.java +++ b/code/cpicxim-XMNHSA-repeater/src/main/java/com/cpic/xim/huixiabao/nhs/CpicximToXMNHS.java @@ -112,7 +112,61 @@ public class CpicximToXMNHS public static void removePostedHmbXyxInfo( Vector postedItems ) { - + Vector items = new Vector(); + HmbXyxInfo item = null; + + Connection connection = null; + Statement statement = null; + ResultSet result = null; + + try + { + Class.forName( "com.mysql.cj.jdbc.Driver" ); + + String url = CpicximToXMNHS.url; + String userName = CpicximToXMNHS.userName; + String password = CpicximToXMNHS.password; + String sql = """ + delete from HmbXyxInfo_Update where xyxNo = ?"""; + + connection = DriverManager.getConnection( url, userName, password ); + statement = connection.prepareStatement(sql.trim()); + + for ( HmbXyxInfo info : postedItems) + { + + } + } + catch ( SQLException error ) + { + try + { + connection.rollback(); + } + catch ( SQLException e ) + { + + } + + error.printStackTrace(); + } + catch ( ClassNotFoundException error ) + { + + } + finally + { + try + { + + statement.close(); + connection.close(); + } + catch ( SQLException error ) + { + + } + } } public static void postHmbList( Vector items )