Merge pull request #12719 from dataease/pr@dev-v2@feat_panel

feat(仪表板): 过滤组件支持数值范围
This commit is contained in:
Junjun 2024-10-16 10:24:08 +08:00 committed by GitHub
commit e54b900ce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,6 +172,10 @@ public class ExtWhere2Str {
whereValue = String.format(SQLConstants.WHERE_BETWEEN, Utils.transLong2Str(Long.parseLong(value.get(0))), Utils.transLong2Str(Long.parseLong(value.get(1))));
}
}
} else if (request.getDatasetTableField().getDeType() == 2
|| request.getDatasetTableField().getDeType() == 3
|| request.getDatasetTableField().getDeType() == 4) {
whereValue = String.format(SQLConstants.WHERE_VALUE_BETWEEN, value.get(0), value.get(1));
} else {
whereValue = String.format(SQLConstants.WHERE_BETWEEN, value.get(0), value.get(1));
}