Commit ea27381f authored by mcb's avatar mcb

no message

parent 56261807
...@@ -146,10 +146,11 @@ public class SyncParameters extends AbstractParameters { ...@@ -146,10 +146,11 @@ public class SyncParameters extends AbstractParameters {
.append(" select ") .append(" select ")
.append(" " + sourceField.substring(1) + " ") .append(" " + sourceField.substring(1) + " ")
.append(" from ") .append(" from ")
.append(" " + registerTableName[0]); .append(" $t ");
//.append(" " + registerTableName[0]);
sqlModel.put("sql", sql); sqlModel.put("sql", sql);
String table_name = registerTableName[0] + "_view"; //String table_name = registerTableName[0] + "_view";
sqlModel.put("table_name", table_name); //sqlModel.put("table_name", table_name);
transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, sqlModel, freeMarkerConfig); transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, sqlModel, freeMarkerConfig);
Map targetModel = new HashMap(); Map targetModel = new HashMap();
...@@ -157,7 +158,8 @@ public class SyncParameters extends AbstractParameters { ...@@ -157,7 +158,8 @@ public class SyncParameters extends AbstractParameters {
.append(" select ") .append(" select ")
.append(" " + targetField.substring(1) + " ") .append(" " + targetField.substring(1) + " ")
.append(" from ") .append(" from ")
.append(" " + table_name); .append(" $t ");
//.append(" " + table_name);
targetModel.put("sql", targetSql); targetModel.put("sql", targetSql);
transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, targetModel, freeMarkerConfig); transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, targetModel, freeMarkerConfig);
//} //}
......
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