|
@@ -126,11 +126,12 @@ public class DragTableServiceImpl implements IDragTableService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public CommonEntity dragTableInfo(String sqlKey) {
|
|
|
|
- DragTable dragTable = dragTableMapper.selectDragTableBySqlKey(sqlKey);
|
|
|
|
|
|
+ public CommonEntity dragTableInfo(String tableKey) {
|
|
|
|
+ //DragTable dragTable = dragTableMapper.selectDragTableBySqlKey(sqlKey);
|
|
|
|
+ DragTable dragTable = dragTableMapper.selectDragTableSqlKeyByTableKey(tableKey);
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
resultMap.put("template", dragTable);
|
|
resultMap.put("template", dragTable);
|
|
-// resultMap.put("where",dragTableConditionMapper.selectDragTableConditionByTid(dragTable.gettId()));
|
|
|
|
|
|
+ //resultMap.put("where",dragTableConditionMapper.selectDragTableConditionByTid(dragTable.gettId()));
|
|
List<DragTableCondition> dragTableConditions = dragTableConditionMapper.selectDragTableConditionByTid(dragTable.gettId());
|
|
List<DragTableCondition> dragTableConditions = dragTableConditionMapper.selectDragTableConditionByTid(dragTable.gettId());
|
|
dragTableConditions.forEach(d -> {
|
|
dragTableConditions.forEach(d -> {
|
|
// 0 查询字典 1 查询表数据
|
|
// 0 查询字典 1 查询表数据
|
|
@@ -141,7 +142,8 @@ public class DragTableServiceImpl implements IDragTableService {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
resultMap.put("where", dragTableConditions);
|
|
resultMap.put("where", dragTableConditions);
|
|
- resultMap.put("querySql", tableSqlMapper.selectTableSqlByTSqlKey(sqlKey));
|
|
|
|
|
|
+ //resultMap.put("querySql", tableSqlMapper.selectTableSqlByTSqlKey(sqlKey));
|
|
|
|
+ resultMap.put("querySql", tableSqlMapper.selectTableSqlByTSqlKey(dragTable.getSqlKey()));
|
|
// 表格样式信息
|
|
// 表格样式信息
|
|
DragTableStyle dragTableStyle = new DragTableStyle();
|
|
DragTableStyle dragTableStyle = new DragTableStyle();
|
|
dragTableStyle.setTableKey(dragTable.getTableKey());
|
|
dragTableStyle.setTableKey(dragTable.getTableKey());
|
|
@@ -319,4 +321,9 @@ public class DragTableServiceImpl implements IDragTableService {
|
|
//delete drag_table_condition
|
|
//delete drag_table_condition
|
|
dragTableConditionMapper.deleteDragTableConditionBytIds(tIds);
|
|
dragTableConditionMapper.deleteDragTableConditionBytIds(tIds);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public DragTable selectSqlKeyByTableKey(String tableKey) {
|
|
|
|
+ return dragTableMapper.selectDragTableSqlKeyByTableKey(tableKey);
|
|
|
|
+ }
|
|
}
|
|
}
|