Explorar el Código

机台状态排序

qiuenguang hace 1 año
padre
commit
8537559dd8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      application/api/controller/Facility.php

+ 3 - 1
application/api/controller/Facility.php

@@ -1114,7 +1114,9 @@ class Facility extends Api
                 WHERE
                     a.`使用部门` = '{$workshop}' 
                 GROUP BY
-                    a.`设备编号`";
+                    a.`设备编号`
+                ORDER BY 
+                    a.UniqId";
         $list = \db()->query($sql);
         foreach ($list as $key=>$value){
             if ($value['状态'] == ''){