forked from github/dataease
Merge pull request #12719 from dataease/pr@dev-v2@feat_panel
feat(仪表板): 过滤组件支持数值范围
This commit is contained in:
commit
e54b900ce6
@ -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))));
|
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 {
|
} else {
|
||||||
whereValue = String.format(SQLConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
whereValue = String.format(SQLConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user