|
@@ -111,11 +111,11 @@ public class SpecimenInfoController {
|
|
|
@PreAuthorize("@ss.hasPermission('museums:specimen-info:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportSpecimenInfoSelectExcel(@Valid SpecimenInfoExportReqVO pageReqVO,
|
|
|
- @RequestParam List<Long> ids, // 接收前端传递的 ID 数组
|
|
|
HttpServletResponse response) throws IOException {
|
|
|
+ List <Long> ids = new ArrayList<>();
|
|
|
// 如果有 ID 数组,设置查询条件,过滤查询
|
|
|
- if (!ids.isEmpty()) {
|
|
|
- pageReqVO.setIds(ids); // 设置过滤条件
|
|
|
+ if (pageReqVO.getIds() != null && !pageReqVO.getIds().isEmpty()) {
|
|
|
+ ids = pageReqVO.getIds(); // 设置过滤条件
|
|
|
}
|
|
|
|
|
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); // 设置不分页
|