Commit e42592d1 authored by liaowenwu's avatar liaowenwu

添加日志

parent 07075e3e
......@@ -96,7 +96,7 @@ public class MysqlDataTransferFunction extends ProcessFunction<JSONObject, Tuple
if("INSERT".equals(type) || "UPDATE".equals(type)){
excueteSql = tranferInsertSql(table,dataObj,mysqlType);
} else {
excueteSql = transferDeleteSql(table,dataObj,mysqlType,pkNameSet);
excueteSql = logicalDelete ? tranferInsertSql(table,dataObj,mysqlType) : transferDeleteSql(table,dataObj,mysqlType,pkNameSet);
}
if (MapUtil.getBool(dbInfoMap, "log_enable", false)){
ctx.output(logSlideTag,buildLogData(type, table, pkColumns, pkColumnVals, ts, value.toJSONString()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment