|
|
@@ -223,7 +223,16 @@ public class CombineQuery {
|
|
|
}
|
|
|
|
|
|
public List<String> getOrderByDesc() {
|
|
|
- if(CollUtil.isEmpty(orderByAsc)&&CollUtil.isEmpty(orderByDesc)){
|
|
|
+ //添加默认排序
|
|
|
+ if(CollUtil.isEmpty(orderByAsc)
|
|
|
+ &&
|
|
|
+ CollUtil.isEmpty(orderByDesc)){
|
|
|
+ orderByDesc.add("clinic_id");
|
|
|
+ }
|
|
|
+ if(infusionFinishedDesc!=null&&
|
|
|
+ CollUtil.size(orderByAsc)==1
|
|
|
+ ||CollUtil.size(orderByDesc)==1){
|
|
|
+ //添加默认排序,否则顺序混乱
|
|
|
orderByDesc.add("clinic_id");
|
|
|
}
|
|
|
return orderByDesc;
|