Browse Source

add 增加默认排序规则

A17404李放 3 years ago
parent
commit
3da5bfc987

+ 1 - 0
coffee-system/src/main/resources/mapper/bus/BusClinicMapper.xml

@@ -112,5 +112,6 @@
             left join  bus_patient  as p on c.id=p.clinic_id
             left join  (select clinic_id,count(1) as infusion_count from bus_infusion_history GROUP BY clinic_id) as i on i.clinic_id=c.id
             left join (select clinic_id,count(1) as eval_count from bus_evaluation  GROUP BY clinic_id) as eval on eval.clinic_id=c.id
+            order by c.monitor_start_time desc
     </select>
 </mapper>

+ 1 - 0
coffee-system/src/main/resources/mapper/bus/BusDeviceManualMapper.xml

@@ -48,6 +48,7 @@
                 </foreach>
             </if>
         </where>
+        order by c.monitor_start_time desc
     </select>
 
 </mapper>

+ 1 - 0
coffee-system/src/main/resources/mapper/bus/BusDeviceMapper.xml

@@ -74,5 +74,6 @@
         </where>
         ) as r
         on r.device_id=d.device_id
+        order by d.create_time desc
     </select>
 </mapper>

+ 1 - 0
coffee-system/src/main/resources/mapper/bus/BusPatientMapper.xml

@@ -286,6 +286,7 @@
                 </if>)
             </where>
         </if>
+        order by c.monitor_start_time desc
     </select>