Browse Source

增加排序

chenw 7 years ago
parent
commit
7a1d787775

+ 1 - 1
bi-server/src/main/java/com/usoftchina/bi/server/dao/dataSource/DataConnectorMapper.java

@@ -76,7 +76,7 @@ public interface DataConnectorMapper {
             "  ( bo_type='0' and bo_ob_id in " +
             "  ( select br_user_group from bi_user_rel_groups where br_user_id = #{id} ) " +
             "   )" +
-            ")and is_open = '1')) and is_open = '1'")
+            ")and is_open = '1')) and is_open = '1' ORDER BY dataId DESC")
     @Results(id = "DataConnectorListResultMap", value = {
             @Result(column = "dataId", property = "dataId", jdbcType = JdbcType.BIGINT),
             @Result(column = "dataName", property = "dataName", jdbcType = JdbcType.VARCHAR),