maven project
This commit is contained in:
@@ -102,7 +102,7 @@ public class App {
|
|||||||
Connection con = null;
|
Connection con = null;
|
||||||
Statement stmt = null;
|
Statement stmt = null;
|
||||||
|
|
||||||
String jdbcURL2 = "jdbc:postgresql://localhost:2345/fw_demo?currentSchema=fw_core";
|
String jdbcURL2 = "jdbc:postgresql://localhost:2345/fw_dev?currentSchema=fw_core";
|
||||||
Connection connection2 = null;
|
Connection connection2 = null;
|
||||||
|
|
||||||
int client_id = 0, function_id = 0, job_id = 0, step_id = 0, max_run_schedule_id = 0;
|
int client_id = 0, function_id = 0, job_id = 0, step_id = 0, max_run_schedule_id = 0;
|
||||||
@@ -492,12 +492,12 @@ public class App {
|
|||||||
stmt9.setInt(1, max_file_syspk);
|
stmt9.setInt(1, max_file_syspk);
|
||||||
stmt9.executeUpdate();
|
stmt9.executeUpdate();
|
||||||
|
|
||||||
String runsch_update = " update fw_core.fw_jobctl_runschedule set end_status='error',end_status_note='stg1_failed', end_time=now() where latest_runschedule_flag='1'; ";
|
String runsch_update = " update fw_core.fw_jobctl_runschedule set end_status='success',end_status_note='stg1_completed', end_time=now() where latest_runschedule_flag='1'; ";
|
||||||
Statement stmt10 = connection.createStatement();
|
Statement stmt10 = connection.createStatement();
|
||||||
stmt10.executeUpdate(runsch_update);
|
stmt10.executeUpdate(runsch_update);
|
||||||
|
|
||||||
//update end_status in fw_jobctl_runschedule_jobstep
|
//update end_status in fw_jobctl_runschedule_jobstep
|
||||||
String sql_file_level4 = " update fw_core.fw_jobctl_runschedule_jobstep set end_status='error',end_status_note='stg1_failed', end_time=now() where latest_runschedule_flag='1' and run_schedule_id=? and job_id=? and step_id=?;";
|
String sql_file_level4 = " update fw_core.fw_jobctl_runschedule_jobstep set end_status='success',end_status_note='stg1_completed', end_time=now() where latest_runschedule_flag='1' and run_schedule_id=? and job_id=? and step_id=?;";
|
||||||
PreparedStatement stmt11 = connection.prepareStatement(sql_file_level4);
|
PreparedStatement stmt11 = connection.prepareStatement(sql_file_level4);
|
||||||
stmt11.setInt(1, max_run_schedule_id);
|
stmt11.setInt(1, max_run_schedule_id);
|
||||||
stmt11.setInt(2, job_id);
|
stmt11.setInt(2, job_id);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<testsuite tests="1" failures="0" name="org.example.AppTest" time="0.009" errors="0" skipped="0">
|
<testsuite tests="1" failures="0" name="org.example.AppTest" time="0.004" errors="0" skipped="0">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
||||||
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64"/>
|
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64"/>
|
||||||
@@ -60,5 +60,5 @@
|
|||||||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
|
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
|
||||||
<property name="sun.cpu.isalist" value=""/>
|
<property name="sun.cpu.isalist" value=""/>
|
||||||
</properties>
|
</properties>
|
||||||
<testcase classname="org.example.AppTest" name="shouldAnswerWithTrue" time="0.009"/>
|
<testcase classname="org.example.AppTest" name="shouldAnswerWithTrue" time="0.004"/>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Test set: org.example.AppTest
|
Test set: org.example.AppTest
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.067 sec
|
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.11 sec
|
||||||
|
|||||||
Reference in New Issue
Block a user