diff --git a/src/main/java/neatlogic/module/cmdb/dao/mapper/resourcecenter/ResourceMapper.xml b/src/main/java/neatlogic/module/cmdb/dao/mapper/resourcecenter/ResourceMapper.xml index 4438fb5b514b0fd9f83e994ac5646d10a289841e..133bd2fffe346dbab55e7f2ba9e0f3fae64ac200 100644 --- a/src/main/java/neatlogic/module/cmdb/dao/mapper/resourcecenter/ResourceMapper.xml +++ b/src/main/java/neatlogic/module/cmdb/dao/mapper/resourcecenter/ResourceMapper.xml @@ -1078,19 +1078,23 @@ limitations under the License. @@ -1207,12 +1215,12 @@ limitations under the License. SELECT - `id`, - `name`, - `description`, - `env_seq_no` - FROM @{DATA_SCHEMA}.`scence_env` - WHERE `id` IN + a.`id`, + a.`value` AS NAME, + a.`sort` AS envSeqNo + FROM `cmdb_global_attritem` a + JOIN `cmdb_global_attr` b ON b.`id` = a.`attr_id` AND b.`name` = 'env' + WHERE a.`id` IN #{id} - ORDER BY `env_seq_no` ASC + ORDER BY a.`sort` ASC