فهرست منبع

标签属性字段排序

wangyangyang 4 سال پیش
والد
کامیت
875f3edf15
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      sms_water/src/main/resources/mapper/DeviceParmMapper.xml

+ 1 - 1
sms_water/src/main/resources/mapper/DeviceParmMapper.xml

@@ -73,7 +73,7 @@
         from sms_device  a
         left join sms_device_attribute b on a.DEVICE_TYPE_ID=b.DEVICE_TYPE_ID and b.`STATUS`=1
         left join sms_device_parm p on p.DEVICE_ID=a.id and p.ATTRIBUTE_ID=b.ID and p.`STATUS`=1
-        where a.id=#{id} and p.IS_ARTWORK=1  order by p.seq asc
+        where a.id=#{id} and p.IS_ARTWORK=1  order by  p.seq is null,p.seq asc
     </select>
 
     <select id="selectById" resultType="com.huaxu.entity.DeviceParmEntity">