保存进度!
This commit is contained in:
@@ -274,7 +274,7 @@ public class CpicximToXMNHS
|
||||
xyxInfo = new JSONObject();
|
||||
|
||||
xyxInfo.put( "psnName", info.getPsnName() );
|
||||
xyxInfo.put( "cerno", info.getCertNo() );
|
||||
xyxInfo.put( "certno", info.getCertNo() );
|
||||
xyxInfo.put( "serviceId", info.getServiceId() );
|
||||
xyxInfo.put( "status", info.getStatus() );
|
||||
xyxInfo.put( "xyxNo", info.getXyxNo() );
|
||||
|
@@ -12,48 +12,34 @@ package com.cpic.xim.data.config;
|
||||
|
||||
public class AppConfig
|
||||
{
|
||||
public static String getDriverName()
|
||||
public static String getDrivername()
|
||||
{
|
||||
return driverName;
|
||||
}
|
||||
|
||||
public static void setDriverName( String driverName )
|
||||
public static String getUrlproduct()
|
||||
{
|
||||
AppConfig.driverName = driverName;
|
||||
return urlProduct;
|
||||
}
|
||||
|
||||
public static String getUrl()
|
||||
public static String getUrltest()
|
||||
{
|
||||
return url;
|
||||
return urlTest;
|
||||
}
|
||||
|
||||
public static void setUrl( String url )
|
||||
{
|
||||
AppConfig.url = url;
|
||||
}
|
||||
|
||||
public static String getUserName()
|
||||
public static String getUsername()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public static void setUserName( String userName )
|
||||
{
|
||||
AppConfig.userName = userName;
|
||||
}
|
||||
|
||||
public static String getPassword()
|
||||
{
|
||||
return password;
|
||||
}
|
||||
|
||||
public static void setPassword( String password )
|
||||
{
|
||||
AppConfig.password = password;
|
||||
}
|
||||
|
||||
private static String driverName = "com.mysql.cj.jdbc.Driver";
|
||||
private static String url = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
||||
private static String userName = "huixiabao";
|
||||
private static String password = "Kane@1981";
|
||||
private final static String driverName = "com.mysql.cj.jdbc.Driver";
|
||||
private final static String urlProduct = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
||||
private final static String urlTest = "jdbc:mysql://10.39.0.84:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
||||
private final static String userName = "huixiabao";
|
||||
private final static String password = "Kane@1981";
|
||||
}
|
||||
|
@@ -44,14 +44,16 @@ public class HuixiabaoDbUtils
|
||||
Class.forName( "com.mysql.cj.jdbc.Driver" );
|
||||
|
||||
|
||||
connection = DriverManager.getConnection( AppConfig.getUrl(),
|
||||
AppConfig.getUserName(),
|
||||
connection = DriverManager.getConnection( AppConfig.getUrltest(),
|
||||
AppConfig.getUsername(),
|
||||
AppConfig.getPassword() );
|
||||
statementDelete = connection.prepareStatement( sqlDelete );
|
||||
statementInsert = connection.prepareStatement( sqlInsert );
|
||||
|
||||
for ( HmbXyxInfoItem item: xyxInfo )
|
||||
{
|
||||
logger.info( "写入记录{<>}", item.getXyxNo() );
|
||||
|
||||
statementDelete.setString(1, item.getXyxNo() );
|
||||
statementInsert.setString(1, item.getPsnName() );
|
||||
statementInsert.setString(2, item.getCertno() );
|
||||
@@ -65,11 +67,11 @@ public class HuixiabaoDbUtils
|
||||
}
|
||||
catch ( ClassNotFoundException error )
|
||||
{
|
||||
|
||||
logger.error("加载mysql驱动失败:{<>}", error.getMessage() );
|
||||
}
|
||||
catch ( SQLException error )
|
||||
{
|
||||
|
||||
logger.error("执行sql失败:{<>}", error.getMessage() );
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@@ -33,7 +33,7 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 8440;
|
||||
server_name localhost;
|
||||
|
||||
#charset koi8-r;
|
||||
@@ -41,8 +41,11 @@ http {
|
||||
#access_log logs/host.access.log main;
|
||||
|
||||
location / {
|
||||
root html;
|
||||
index index.html index.htm;
|
||||
proxy_pass http://10.39.7.183:8080;
|
||||
#index index.html index.htm;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
@@ -78,6 +81,48 @@ http {
|
||||
#}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 9040;
|
||||
server_name localhost;
|
||||
|
||||
#charset koi8-r;
|
||||
|
||||
#access_log logs/host.access.log main;
|
||||
|
||||
location / {
|
||||
proxy_pass http://172.18.1.150:9040;
|
||||
#index index.html index.htm;
|
||||
#proxy_set_header Host $proxy_host;
|
||||
#proxy_set_header X-Real-IP $remote_addr;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
# location /h3c/new/test/api/gafe/rest {
|
||||
# proxy_pass http://172.18.1.150:9040/h3c/new/test/api/gafe/rest;
|
||||
# #index index.html index.htm;
|
||||
# #proxy_set_header Host $proxy_host;
|
||||
# #proxy_set_header X-Real-IP $remote_addr;
|
||||
# #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# }
|
||||
|
||||
# location /h3c/new/api/gafe/rest {
|
||||
# proxy_pass http://172.18.1.150:9040/h3c/new/api/gafe/rest;
|
||||
# #index index.html index.htm;
|
||||
# #proxy_set_header Host $proxy_host;
|
||||
# #proxy_set_header X-Real-IP $remote_addr;
|
||||
# #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# }
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# another virtual host using mix of IP-, name-, and port-based configuration
|
||||
#
|
||||
|
@@ -1,16 +1,11 @@
|
||||
/*
|
||||
delete from HmbXyxInfo;
|
||||
insert into HmbXyxInfo( psnName, certno, serviceid, status, xyxno)
|
||||
values( '王炜', '350402198106130016', '100007', '1', '100001');
|
||||
insert into HmbXyxInfo( psnName, certno, serviceid, status, xyxno)
|
||||
values( '王炜', '350402198106130016', '100007', '1', '100002');
|
||||
insert into HmbXyxInfo( psnName, certno, serviceid, status, xyxno)
|
||||
values( '王炜', '350402198106130016', '100007', '1', '100003');
|
||||
commit;
|
||||
/*
|
||||
|
||||
select * from HmbXyxInfo;
|
||||
select * from HmbXyxInfo_Update;
|
||||
select a.*
|
||||
from HmbXyxInfo a,
|
||||
HmbXyxInfo_Update b
|
||||
where a.xyxNo = b.xyxNo;
|
||||
where a.xyxNo = b.xyxNo;
|
||||
|
||||
/*
|
||||
insert into HmbXyxInfo_Update select xyxNo, sysdate() from HmbXyxInfo;
|
||||
*/
|
Reference in New Issue
Block a user