forked from github/dataease
Merge pull request #795 from dataease/pr@dev@fix_rollback
fix: rollback
This commit is contained in:
commit
4825cf2594
@ -849,13 +849,7 @@ public class DorisQueryProvider extends QueryProvider {
|
|||||||
whereValue = String.format(DorisConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
whereValue = String.format(DorisConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (request.getDatasetTableField().getDeType() == 1) {
|
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value.get(0));
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
||||||
String time = simpleDateFormat.format(new Date(Long.parseLong(value.get(0))));
|
|
||||||
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, time);
|
|
||||||
} else {
|
|
||||||
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value.get(0));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
list.add(SQLObj.builder()
|
list.add(SQLObj.builder()
|
||||||
.whereField(whereName)
|
.whereField(whereName)
|
||||||
|
Loading…
Reference in New Issue
Block a user