
--- src/main/java/com/takensoft/taken_bi_manager/openAPI/service/impl/OpenApiServiceImpl.java
+++ src/main/java/com/takensoft/taken_bi_manager/openAPI/service/impl/OpenApiServiceImpl.java
... | ... | @@ -157,11 +157,15 @@ |
157 | 157 |
@Transactional |
158 | 158 |
public DataTable openApiGetINRowDataAll(String datasetPostId ,HashMap<String,Object> param) throws Exception { |
159 | 159 |
|
160 |
+ param.entrySet().removeIf(entry -> entry.getValue() == null || "".equals(entry.getValue())); |
|
160 | 161 |
Dataset dataset = datasetDAO.selectDatasetByPostId(datasetPostId); |
161 | 162 |
ConnectionDB connectionDB = dataDAO.selectDbConnectionOne(dataset.getDbConectId()); |
162 | 163 |
|
163 | 164 |
DataTable dataTable = new DataTable(dataset); |
164 | 165 |
dataTable.setColumnDatas(datasetDAO.selectCoulmnInfo(dataset)); |
166 |
+ if (dataTable.getColumnDatas() != null) { |
|
167 |
+ dataTable.getColumnDatas().removeIf(columnData -> "ts_row".equals(columnData.getColumnNm())); |
|
168 |
+ } |
|
165 | 169 |
DBConnectionUtil dbUtil = new DBConnectionUtil(); |
166 | 170 |
connectionDB.decodingData(); |
167 | 171 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?