Commit 1d1ae937 authored by yanzg's avatar yanzg

消除成功接收处理

parent 21e9a9f1
...@@ -161,15 +161,15 @@ public class TableSqlCache { ...@@ -161,15 +161,15 @@ public class TableSqlCache {
// 3. 生成SQL语句 // 3. 生成SQL语句
String selectModel = "SELECT {FromField} FROM ( {SQL} )t"; String selectModel = "SELECT {FromField} FROM ( {SQL} )t";
String initModel = "INSERT INTO {table}( {CreateField} ) " + String initModel = "INSERT INTO {TABLE}( {CreateField} ) " +
"SELECT {FromInitField} FROM( {SelectSQL} )a " + "SELECT {FromInitField} FROM( {SelectSQL} )a " +
"LEFT JOIN {table} AS b ON a.{Key} = b.{Key} WHERE b.{Key} IS NULL"; "LEFT JOIN {TABLE} AS b ON a.{Key} = b.{Key} WHERE b.{Key} IS NULL";
String addModel = "UPDATE {table} AS a INNER JOIN ( {SelectSQL} ) AS b ON a.{Key} = b.{Key} SET {addConst} "; String addModel = "UPDATE {TABLE} AS a INNER JOIN ( {SelectSQL} ) AS b ON a.{Key} = b.{Key} SET {addConst} ";
// 定义需要处理的SQL对象 // 定义需要处理的SQL对象
Map<String, StringBuilder> map = new HashMap<>(DaoConst.COLLECTION_INIT_SIZE); Map<String, StringBuilder> map = new HashMap<>(DaoConst.COLLECTION_INIT_SIZE);
addString(map, "{SQL}", sql); addString(map, "{SQL}", sql);
addString(map, "{table}", this.table.getName()); addString(map, "{TABLE}", this.table.getName());
if (this.table.getKeyType() == String.class) { if (this.table.getKeyType() == String.class) {
addString(map, "{Key}", this.table.getKeyName()); addString(map, "{Key}", this.table.getKeyName());
......
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