|
|
|
@ -66,7 +66,7 @@ public class DataServiceImpl implements DataService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<ColumnModel> result = new ArrayList<>();
|
|
|
|
|
String sql = "SELECT COLUMN_NAME name, COLUMN_COMMENT comment FROM information_schema.columns WHERE TABLE_NAME='"
|
|
|
|
|
String sql = "SELECT COLUMN_NAME name, COLUMN_COMMENT comment, DATA_TYPE type FROM information_schema.columns WHERE TABLE_NAME='"
|
|
|
|
|
+ tableName + "' AND TABLE_SCHEMA='" + schema + "' ORDER BY name,comment";
|
|
|
|
|
List<ColumnModel> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ColumnModel.class));
|
|
|
|
|
for (ColumnModel item : list) {
|
|
|
|
|