wang_xy 11 bulan lalu
induk
melakukan
bea3d22a43
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      ruoyi-gas/src/main/resources/mapper/GOrderMapper.xml

+ 1 - 1
ruoyi-gas/src/main/resources/mapper/GOrderMapper.xml

@@ -37,7 +37,7 @@
         c.NAME,
         '-',
         b.NAME
-        ) is null,null,(select go.id from g_order go where go.house_id = a.house_id and go.del_flag='0' and go.service_type='004' LIMIT 1)) as anjianId,
+        ) is null,null,(select go.id from g_order go where go.house_id = a.house_id and go.del_flag='0' and go.service_type='004' order by go.time desc LIMIT 1)) as anjianId,
         a.id as id,
         a.service_type as serviceType,
         u.name as userName,