|
@@ -156,6 +156,8 @@ public class AdAccountCDC {
|
|
|
|
|
|
@Override
|
|
|
public void flatMap(TransportMap transportMap, Collector<Tuple3<String, String, TransportMap>> out) throws Exception {
|
|
|
+
|
|
|
+ System.out.println(transportMap);
|
|
|
String dbName = transportMap.getDbName();
|
|
|
String tableName = transportMap.getTableName();
|
|
|
List<String> primaryKeys = transportMap.getPrimaryKeys();
|
|
@@ -218,6 +220,7 @@ public class AdAccountCDC {
|
|
|
result.put("agent_id", agentInfo.get("id"));
|
|
|
result.put("sys_put_user_id", zxPutUserId);
|
|
|
result.put("app_id", gameId);
|
|
|
+ result.put("agent_name", agentInfo.get("agent_name"));
|
|
|
result.put("create_time", DateUtil.localDateTimeToSecond(ObjectUtil.objToLocalDateTime(agentInfo.get("create_time"))));
|
|
|
result.put("update_time", DateUtil.localDateTimeToSecond(ObjectUtil.objToLocalDateTime(agentInfo.get("create_time"))));
|
|
|
if (putUserMap != null) {
|
|
@@ -240,6 +243,7 @@ public class AdAccountCDC {
|
|
|
}
|
|
|
if (tableName.equals("t_ad_account")) {
|
|
|
Long accountId = ObjectUtil.objToLong(data.get("account_id"));
|
|
|
+
|
|
|
try (SqlSession session = odsSqlSessionFactory.openSession(true)) {
|
|
|
BaseMapper mapper = session.getMapper(BaseMapper.class);
|
|
|
|