*/
public static void getColumnNameAndColumeValue(List<String> listSQL, JdbcTemplate jdbcTemplate) throws Exception {
if (listSQL.size() > 0) {
insertList.clear();
insertList.add("SET FOREIGN_KEY_CHECKS=0;");// 取消外键检查
SqlRowSet sqlRowSet = null;
String ls_id = "";
for (int j = 0; j < listSQL.size(); j++) {
String sql = String.valueOf(listSQL.get(j)); // 逐条获取sql语句
sqlRowSet = jdbcTemplate.queryForRowSet(sql);
SqlRowSetMetaData sqlRsmd = sqlRowSet.getMetaData();
int columnCount = sqlRsmd.getColumnCount(); // 获得表字段个数
String tableName = sqlRsmd.getTableName(columnCount); // 获得表名称
if(StringUtils.isEmpty(tableName)){
tableName = PublicUtil.getTableName(sql);
}
String tableId="";
while (sqlRowSet.next()) {
StringBuffer ColumnName = new StringBuffer();
StringBuffer ColumnValue = new StringBuffer();
for (int i = 1; i <= columnCount; i++) {
String value = sqlRowSet.getString(i);
if (value == null || "".equals(value)) {
value = "";
}
Map<String, String> fieldMap = new HashMap<String, String>();
fieldMap.put("name", sqlRsmd.getColumnName(i));