diff --git a/src/main/resources/mapper/request/RequestManageMapper.xml b/src/main/resources/mapper/request/RequestManageMapper.xml index 0cad44ee..633f9dd9 100644 --- a/src/main/resources/mapper/request/RequestManageMapper.xml +++ b/src/main/resources/mapper/request/RequestManageMapper.xml @@ -275,16 +275,13 @@ CONVERT(varchar(50), comm.value) AS fieldName FROM sys.columns AS col - INNER JOIN - sys.tables AS tbl ON col.object_id = tbl.object_id - INNER JOIN - sys.types AS typ ON col.user_type_id = typ.user_type_id - LEFT JOIN - sys.extended_properties AS comm ON col.object_id = comm.major_id AND col.column_id = comm.minor_id + INNER JOIN sys.tables AS tbl ON col.object_id = tbl.object_id + INNER JOIN sys.schemas AS scm ON tbl.schema_id = scm.schema_id + INNER JOIN sys.types AS typ ON col.user_type_id = typ.user_type_id + LEFT JOIN sys.extended_properties AS comm ON comm.major_id = col.object_id AND comm.minor_id = col.column_id AND comm.name = N'MS_Description' WHERE tbl.name = #{tableId} and CONVERT(varchar(50), comm.value) is not null and CONVERT(varchar(50), comm.value) ]]> '' - ORDER BY - col.column_id + ORDER BY col.column_id