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">