|
@@ -19,6 +19,7 @@ package org.springblade.archive.service.impl;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -743,5 +744,19 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询案卷,排序
|
|
|
+ * @param ids
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<ArchivesAuto> findArchivesAutosByIds(List<Long> ids) {
|
|
|
+ QueryWrapper<ArchivesAuto> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.in("id", ids)
|
|
|
+ .orderByDesc("tree_sort")
|
|
|
+ .orderByAsc("auto_file_sort");
|
|
|
+
|
|
|
+ return this.list(queryWrapper);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|