소스 검색

报警设置修改排序

yuejiaying 4 년 전
부모
커밋
94283146bb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      sms_water/src/main/resources/mapper/AlarmSettingMapper.xml

+ 2 - 0
sms_water/src/main/resources/mapper/AlarmSettingMapper.xml

@@ -61,6 +61,7 @@
             </if>
             and t1.status =1
         </where>
+        order by t1.device_id,t1.date_create
     </select>
 
     <select id="selectAttributes" resultMap="alarmSettingMap">
@@ -69,6 +70,7 @@
         inner join sms_device_type t2 on t1.device_type_id=t2.id and t2.status =1
         inner join sms_device_attribute t3 on t2.id=t3.device_type_id and t3.status =1
         where t1.id=#{deviceId} and t1.status=1
+        order by t3.name
     </select>
 
 </mapper>