|
|
@ -20,13 +20,16 @@ import com.platform.utils.Configs;
|
|
|
|
import com.platform.utils.Constant;
|
|
|
|
import com.platform.utils.Constant;
|
|
|
|
import com.platform.utils.FileOperateHelper;
|
|
|
|
import com.platform.utils.FileOperateHelper;
|
|
|
|
|
|
|
|
|
|
|
|
/** 校验oracle标准表是否存在
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 校验oracle标准表是否存在
|
|
|
|
|
|
|
|
*
|
|
|
|
* @author chen
|
|
|
|
* @author chen
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
|
|
|
|
|
|
|
public final static Logger log = Configs.CONSOLE_LOGGER.getLogger(ThreadCheckoutStandardOracle.class);
|
|
|
|
public final static Logger log = Configs.CONSOLE_LOGGER
|
|
|
|
|
|
|
|
.getLogger(ThreadCheckoutStandardOracle.class);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* kuber 客户端
|
|
|
|
* kuber 客户端
|
|
|
@ -55,7 +58,8 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
for (int i = 0; i < 11; i++) {
|
|
|
|
for (int i = 0; i < 11; i++) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// 数据的 keys (=kuber的应用名称 taskName)
|
|
|
|
// 数据的 keys (=kuber的应用名称 taskName)
|
|
|
|
Set<String> taskNames = CacheOracleCheckoutEntity.getCheckKeys();
|
|
|
|
Set<String> taskNames = CacheOracleCheckoutEntity
|
|
|
|
|
|
|
|
.getCheckKeys();
|
|
|
|
int lengs = taskNames.size();
|
|
|
|
int lengs = taskNames.size();
|
|
|
|
if (lengs == 0) {
|
|
|
|
if (lengs == 0) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -71,7 +75,8 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
// 获得 kuber的 pod
|
|
|
|
// 获得 kuber的 pod
|
|
|
|
Pod tmpPod = filterPod(key);
|
|
|
|
Pod tmpPod = filterPod(key);
|
|
|
|
if (null == tmpPod) {
|
|
|
|
if (null == tmpPod) {
|
|
|
|
log.info("replicationController标签: " + key + " 的 pod 节点不存在!");
|
|
|
|
log.info("replicationController标签: " + key
|
|
|
|
|
|
|
|
+ " 的 pod 节点不存在!");
|
|
|
|
if (i > 5) {
|
|
|
|
if (i > 5) {
|
|
|
|
CacheOracleCheckoutEntity.checkRemove(key);
|
|
|
|
CacheOracleCheckoutEntity.checkRemove(key);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -81,15 +86,14 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
connectOracle(tmpPod, key);
|
|
|
|
connectOracle(tmpPod, key);
|
|
|
|
|
|
|
|
|
|
|
|
if (i == 10) {
|
|
|
|
if (i == 10) {
|
|
|
|
String cmd = "kubectl label --overwrite rc " + key
|
|
|
|
String cmd = "kubectl label --overwrite rc " + key + " status=1";
|
|
|
|
+ " status=1";
|
|
|
|
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
|
for (String str : rList)
|
|
|
|
for (String str : rList)
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
+ key + "\t[标签更新为: 失败]");
|
|
|
|
+ "\t[标签更新为: 失败]");
|
|
|
|
log.info(sb.toString());
|
|
|
|
log.info(sb.toString());
|
|
|
|
|
|
|
|
|
|
|
|
String cmd2 = "kubectl annotate --overwrite rc " + key
|
|
|
|
String cmd2 = "kubectl annotate --overwrite rc " + key
|
|
|
@ -99,11 +103,12 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
StringBuffer sb2 = new StringBuffer();
|
|
|
|
StringBuffer sb2 = new StringBuffer();
|
|
|
|
for (String str : rList2)
|
|
|
|
for (String str : rList2)
|
|
|
|
sb2.append(str).append("\n");
|
|
|
|
sb2.append(str).append("\n");
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
+ key + "\t[标签更新为: 未校验]");
|
|
|
|
+ "\t[标签更新为: 未校验]");
|
|
|
|
log.info(sb2.toString());
|
|
|
|
log.info(sb2.toString());
|
|
|
|
// 当前key标签对应的 数据服务的记录
|
|
|
|
// 当前key标签对应的 数据服务的记录
|
|
|
|
CheckoutEntity tmp = CacheOracleCheckoutEntity.getCheck(key);
|
|
|
|
CheckoutEntity tmp = CacheOracleCheckoutEntity
|
|
|
|
|
|
|
|
.getCheck(key);
|
|
|
|
tmp.setCheckoutFlag(Constant.CHECKOUTFLAG_ZERO);
|
|
|
|
tmp.setCheckoutFlag(Constant.CHECKOUTFLAG_ZERO);
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_ZERO);
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_ZERO);
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_ZERO);
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_ZERO);
|
|
|
@ -117,8 +122,7 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e1) {
|
|
|
|
} catch (Exception e1) {
|
|
|
|
log.error(e1.getStackTrace());
|
|
|
|
log.error(e1.getStackTrace());
|
|
|
|
}
|
|
|
|
} finally {
|
|
|
|
finally{
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Thread.sleep(1000 * 60);
|
|
|
|
Thread.sleep(1000 * 60);
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
} catch (InterruptedException e) {
|
|
|
@ -128,7 +132,9 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 查找 pod 节点
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 查找 pod 节点
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param taskName
|
|
|
|
* @param taskName
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -146,7 +152,9 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
return pod;
|
|
|
|
return pod;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 尝试连接 oracle服务
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 尝试连接 oracle服务
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param tmpPod
|
|
|
|
* @param tmpPod
|
|
|
|
* @param key
|
|
|
|
* @param key
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -155,29 +163,25 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
String ip = client.getPodHostIp(pod);
|
|
|
|
String ip = client.getPodHostIp(pod);
|
|
|
|
int port = client.getPodContainerport(pod);
|
|
|
|
int port = client.getPodContainerport(pod);
|
|
|
|
if (ip != null && port != 0) {
|
|
|
|
if (ip != null && port != 0) {
|
|
|
|
String url = "jdbc:oracle:thin:@" + ip + ":" + port
|
|
|
|
String url = "jdbc:oracle:thin:@" + ip + ":" + port + ":"
|
|
|
|
+ ":" + Configs.ORACLE_ORCL;
|
|
|
|
+ Configs.ORACLE_ORCL;
|
|
|
|
boolean flag = OracleConnector.canConnect(url, // 连接结果返回参数,true标示连接成功,false标示连接失败
|
|
|
|
boolean flag = OracleConnector.canConnect(url, // 连接结果返回参数,true标示连接成功,false标示连接失败
|
|
|
|
Configs.ORACLE_USER, Configs.ORACLE_PSW);
|
|
|
|
Configs.ORACLE_USER, Configs.ORACLE_PSW);
|
|
|
|
log.info("url:" + url + ",user:"
|
|
|
|
log.info("url:" + url + ",user:" + Configs.ORACLE_USER
|
|
|
|
+ Configs.ORACLE_USER + ",password:"
|
|
|
|
+ ",password:" + Configs.ORACLE_PSW);
|
|
|
|
+ Configs.ORACLE_PSW);
|
|
|
|
|
|
|
|
String message = "失败";
|
|
|
|
String message = "失败";
|
|
|
|
|
|
|
|
|
|
|
|
String cmd3 = "kubectl annotate --overwrite rc "
|
|
|
|
String cmd3 = "kubectl annotate --overwrite rc " + key + " checkoutFlag=0";
|
|
|
|
+ key + " checkoutFlag=0";
|
|
|
|
|
|
|
|
List<String> rList3 = Constant.ganymedSSH
|
|
|
|
List<String> rList3 = Constant.ganymedSSH
|
|
|
|
.execCmdWaitAcquiescent(cmd3);
|
|
|
|
.execCmdWaitAcquiescent(cmd3);
|
|
|
|
StringBuffer sb3 = new StringBuffer();
|
|
|
|
StringBuffer sb3 = new StringBuffer();
|
|
|
|
for (String str : rList3)
|
|
|
|
for (String str : rList3)
|
|
|
|
sb3.append(str).append("\n");
|
|
|
|
sb3.append(str).append("\n");
|
|
|
|
log.info(sb3.toString());
|
|
|
|
log.info(sb3.toString());
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key + "\t[标签更新为:未校验]");
|
|
|
|
+ key + "\t[标签更新为:未校验]");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (flag) {
|
|
|
|
if (flag) {
|
|
|
|
String cmd = "kubectl label --overwrite rc "
|
|
|
|
String cmd = "kubectl label --overwrite rc " + key + " status=2";
|
|
|
|
+ key + " status=2";
|
|
|
|
|
|
|
|
// 设置服务为 成功
|
|
|
|
// 设置服务为 成功
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
@ -186,48 +190,71 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
log.info(sb.toString());
|
|
|
|
log.info(sb.toString());
|
|
|
|
message = "成功";
|
|
|
|
message = "成功";
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
+ key + "\t[标签更新为: 成功]");
|
|
|
|
+ "\t[标签更新为: 成功]");
|
|
|
|
// 校验标签
|
|
|
|
// 校验标签
|
|
|
|
String cmd2 = "kubectl annotate --overwrite rc "
|
|
|
|
String cmd2 = "kubectl annotate --overwrite rc " + key
|
|
|
|
+ key + " checkoutFlag=2";
|
|
|
|
+ " checkoutFlag=2";
|
|
|
|
List<String> rList2 = Constant.ganymedSSH
|
|
|
|
List<String> rList2 = Constant.ganymedSSH
|
|
|
|
.execCmdWaitAcquiescent(cmd2);
|
|
|
|
.execCmdWaitAcquiescent(cmd2);
|
|
|
|
StringBuffer sb2 = new StringBuffer();
|
|
|
|
StringBuffer sb2 = new StringBuffer();
|
|
|
|
for (String str : rList2)
|
|
|
|
for (String str : rList2)
|
|
|
|
sb2.append(str).append("\n");
|
|
|
|
sb2.append(str).append("\n");
|
|
|
|
log.info(sb2.toString());
|
|
|
|
log.info(sb2.toString());
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
+ key + "\t[标签更新为: 校验中]");
|
|
|
|
+ "\t[标签更新为: 校验中]");
|
|
|
|
// 获得当前 服务对应的 数据
|
|
|
|
// 获得当前 服务对应的 数据
|
|
|
|
CheckoutEntity tmp = CacheOracleCheckoutEntity.getCheck(key);
|
|
|
|
CheckoutEntity tmp = CacheOracleCheckoutEntity
|
|
|
|
|
|
|
|
.getCheck(key);
|
|
|
|
if (null != tmp) {
|
|
|
|
if (null != tmp) {
|
|
|
|
CacheOracleCheckoutEntity.putExtract(key, tmp);
|
|
|
|
CacheOracleCheckoutEntity.putExtract(key, tmp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 查询 对应的 2 个标准表
|
|
|
|
// 查询 对应的 2 个标准表
|
|
|
|
OracleConnectorParams oc = new OracleConnectorParams();
|
|
|
|
OracleConnectorParams oc = new OracleConnectorParams();
|
|
|
|
String logName = tmp.getAreaCode().toLowerCase()+"_"+tmp.getSysCode()+"_"+tmp.getDataVersion();
|
|
|
|
String logName = tmp.getAreaCode().toLowerCase() + "_"
|
|
|
|
|
|
|
|
+ tmp.getSysCode() + "_" + tmp.getDataVersion();
|
|
|
|
oc.setName(logName);
|
|
|
|
oc.setName(logName);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Connection conn = OracleConnector.connectionBuilder(url, Configs.ORACLE_USER, Configs.ORACLE_PSW, oc);
|
|
|
|
Connection conn = OracleConnector.connectionBuilder(
|
|
|
|
|
|
|
|
url, Configs.ORACLE_USER, Configs.ORACLE_PSW,
|
|
|
|
|
|
|
|
oc);
|
|
|
|
// 支付--校验
|
|
|
|
// 支付--校验
|
|
|
|
if (!Constant.CHECKOUT_STATUS_ONE.equals(tmp.getPayResultLast())) {
|
|
|
|
if (!Constant.CHECKOUT_STATUS_ONE.equals(tmp
|
|
|
|
String paySql = "select * from dba_tables where owner = '"+Configs.COLLECT_STANDARD_TABLE_USER.toUpperCase()
|
|
|
|
.getPayResultLast())) {
|
|
|
|
+ "' and table_name = '"+Configs.COLLECT_PAY_TABLE.toUpperCase() +"'";
|
|
|
|
String paySql = "select * from dba_tables where owner = '"
|
|
|
|
if(OracleConnector.execUpdateOracleSQL(conn, paySql,
|
|
|
|
+ Configs.COLLECT_STANDARD_TABLE_USER
|
|
|
|
FileOperateHelper.addLastSeparator(Configs.EXTRACT_STANDARD_LOG_LOCALTION)+ logName +"jy.log")){
|
|
|
|
.toUpperCase()
|
|
|
|
|
|
|
|
+ "' and table_name = '"
|
|
|
|
|
|
|
|
+ Configs.COLLECT_PAY_TABLE.toUpperCase()
|
|
|
|
|
|
|
|
+ "'";
|
|
|
|
|
|
|
|
if (OracleConnector
|
|
|
|
|
|
|
|
.execUpdateOracleSQL(
|
|
|
|
|
|
|
|
conn,
|
|
|
|
|
|
|
|
paySql,
|
|
|
|
|
|
|
|
FileOperateHelper
|
|
|
|
|
|
|
|
.addLastSeparator(Configs.EXTRACT_STANDARD_LOG_LOCALTION)
|
|
|
|
|
|
|
|
+ logName + "jy.log")) {
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_THREE);
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_THREE);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_FOUR);
|
|
|
|
tmp.setPayResultLast(Constant.CHECKOUT_STATUS_FOUR);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 可执行-- 校验
|
|
|
|
// 可执行-- 校验
|
|
|
|
if (!Constant.CHECKOUT_STATUS_ONE.equals(tmp.getExecResultLast())) {
|
|
|
|
if (!Constant.CHECKOUT_STATUS_ONE.equals(tmp
|
|
|
|
String execSql = "select * from dba_tables where owner = '"+Configs.COLLECT_STANDARD_TABLE_USER.toUpperCase()
|
|
|
|
.getExecResultLast())) {
|
|
|
|
+ "' and table_name = '"+Configs.COLLECT_EXEC_TABLE.toUpperCase() +"'";
|
|
|
|
String execSql = "select * from dba_tables where owner = '"
|
|
|
|
if(OracleConnector.execUpdateOracleSQL(conn, execSql,
|
|
|
|
+ Configs.COLLECT_STANDARD_TABLE_USER
|
|
|
|
FileOperateHelper.addLastSeparator(Configs.EXTRACT_STANDARD_LOG_LOCALTION)+ logName +"jy.log")){
|
|
|
|
.toUpperCase()
|
|
|
|
|
|
|
|
+ "' and table_name = '"
|
|
|
|
|
|
|
|
+ Configs.COLLECT_EXEC_TABLE.toUpperCase()
|
|
|
|
|
|
|
|
+ "'";
|
|
|
|
|
|
|
|
if (OracleConnector
|
|
|
|
|
|
|
|
.execUpdateOracleSQL(
|
|
|
|
|
|
|
|
conn,
|
|
|
|
|
|
|
|
execSql,
|
|
|
|
|
|
|
|
FileOperateHelper
|
|
|
|
|
|
|
|
.addLastSeparator(Configs.EXTRACT_STANDARD_LOG_LOCALTION)
|
|
|
|
|
|
|
|
+ logName + "jy.log")) {
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_THREE);
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_THREE);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_FOUR);
|
|
|
|
tmp.setExecResultLast(Constant.CHECKOUT_STATUS_FOUR);
|
|
|
@ -236,11 +263,13 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
tmp.setCheckoutFlag(Constant.CHECKOUTFLAG_ONE);
|
|
|
|
tmp.setCheckoutFlag(Constant.CHECKOUTFLAG_ONE);
|
|
|
|
// 更新数据库data_info
|
|
|
|
// 更新数据库data_info
|
|
|
|
updateDataInfo(tmp);
|
|
|
|
updateDataInfo(tmp);
|
|
|
|
// 将 CacheOracleCheckoutEntity checkMap中的 数据 放入extractMap中
|
|
|
|
// 将 CacheOracleCheckoutEntity checkMap中的 数据
|
|
|
|
/*CacheOracleCheckoutEntity.putExtract(key, */CacheOracleCheckoutEntity.checkRemove(key)/*)*/;
|
|
|
|
// 放入extractMap中
|
|
|
|
|
|
|
|
/* CacheOracleCheckoutEntity.putExtract(key, */CacheOracleCheckoutEntity
|
|
|
|
|
|
|
|
.checkRemove(key)/* ) */;
|
|
|
|
// 更新kuber状态
|
|
|
|
// 更新kuber状态
|
|
|
|
cmd2 = "kubectl annotate --overwrite rc "
|
|
|
|
cmd2 = "kubectl annotate --overwrite rc " + key
|
|
|
|
+ key + " checkoutFlag=1";
|
|
|
|
+ " checkoutFlag=1";
|
|
|
|
// client.updateOrAddReplicasLabelById(taskNSyame,
|
|
|
|
// client.updateOrAddReplicasLabelById(taskNSyame,
|
|
|
|
// "status", "2");
|
|
|
|
// "status", "2");
|
|
|
|
rList = Constant.ganymedSSH
|
|
|
|
rList = Constant.ganymedSSH
|
|
|
@ -250,22 +279,23 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
sb.append(str).append("\n");
|
|
|
|
log.info(sb.toString());
|
|
|
|
log.info(sb.toString());
|
|
|
|
message = "成功";
|
|
|
|
message = "成功";
|
|
|
|
log.info("更新replicationController标签: "
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
+ key + "\t[标签更新为: 已校验]");
|
|
|
|
+ "\t[标签更新为: 已校验]");
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error(e);
|
|
|
|
log.error(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 成功 就 清除 CacheOracleCheckoutEntity 中 的该条记录
|
|
|
|
// 成功 就 清除 CacheOracleCheckoutEntity 中 的该条记录
|
|
|
|
CacheOracleCheckoutEntity.checkRemove(key);
|
|
|
|
CacheOracleCheckoutEntity.checkRemove(key);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.info("连接到数据库服务: " + key
|
|
|
|
log.info("连接到数据库服务: " + key + "\t[连接结果: " + message + "]");
|
|
|
|
+ "\t[连接结果: " + message + "]");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 更新 dataInfo表
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 更新 dataInfo表
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param checkoutEntity
|
|
|
|
* @param checkoutEntity
|
|
|
|
* @throws Exception
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -277,7 +307,8 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
data.setExecResultLast(checkoutEntity.getExecResultLast());
|
|
|
|
data.setExecResultLast(checkoutEntity.getExecResultLast());
|
|
|
|
data.setCheckoutFlag(checkoutEntity.getCheckoutFlag());
|
|
|
|
data.setCheckoutFlag(checkoutEntity.getCheckoutFlag());
|
|
|
|
dataInfoDao.update(data);
|
|
|
|
dataInfoDao.update(data);
|
|
|
|
DataInfoEntity tmpdata = dataInfoDao.findById(checkoutEntity.getDataId());
|
|
|
|
DataInfoEntity tmpdata = dataInfoDao.findById(checkoutEntity
|
|
|
|
|
|
|
|
.getDataId());
|
|
|
|
data.setId(tmpdata.getSrcId());
|
|
|
|
data.setId(tmpdata.getSrcId());
|
|
|
|
dataInfoDao.update(data);
|
|
|
|
dataInfoDao.update(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|