fix(视图): SQLServer明细表类型转换错误

This commit is contained in:
junjun 2022-07-04 12:50:48 +08:00
parent af87bb41d5
commit 3bcdc56e50

View File

@ -1121,9 +1121,9 @@ public class SqlserverQueryProvider extends QueryProvider {
}
} else {
if (x.getDeType() == DeTypeConstants.DE_INT) {
fieldName = String.format(SqlServerSQLConstants.CONVERT, originField, SqlServerSQLConstants.DEFAULT_INT_FORMAT);
fieldName = String.format(SqlServerSQLConstants.CONVERT, SqlServerSQLConstants.DEFAULT_INT_FORMAT, originField);
} else if (x.getDeType() == DeTypeConstants.DE_FLOAT) {
fieldName = String.format(SqlServerSQLConstants.CONVERT, originField, SqlServerSQLConstants.DEFAULT_FLOAT_FORMAT);
fieldName = String.format(SqlServerSQLConstants.CONVERT, SqlServerSQLConstants.DEFAULT_FLOAT_FORMAT, originField);
} else {
fieldName = originField;
}