|
|
@ -2,6 +2,11 @@ package com.elink.esua.epdc.vaccine.epidemic.service.impl; |
|
|
|
|
|
|
|
import cn.afterturn.easypoi.handler.inter.IExcelExportServer; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.OrganizationTypeConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|
|
|
import com.elink.esua.epdc.vaccine.epidemic.dao.EpidemicUserInfoDao; |
|
|
|
import com.elink.esua.epdc.vaccine.epidemic.dto.EpidemicRecordListDTO; |
|
|
|
import com.elink.esua.epdc.vaccine.epidemic.excel.EpidecmicUserNewExcel; |
|
|
@ -30,6 +35,14 @@ public class EpidemicUserInfoExportServer implements IExcelExportServer { |
|
|
|
Map<String, Object> params = (Map<String, Object>) queryParams; |
|
|
|
params.put("excelBigDataPageSize", 30000); |
|
|
|
params.put("excelBigDataPageIndex", (page - 1) * 30000); |
|
|
|
UserDetail user = SecurityUser.getUser(); |
|
|
|
if (user == null) { |
|
|
|
throw new RenException("用户未登录"); |
|
|
|
} |
|
|
|
// 街道和超管有权查看所有数据
|
|
|
|
if (NumConstant.ZERO == user.getSuperAdmin() && !user.getTypeKey().equals(OrganizationTypeConstant.ORG_TYPE_STREET_PARTY)) { |
|
|
|
params.put("deptIdList", user.getDeptIdList()); |
|
|
|
} |
|
|
|
List<EpidemicRecordListDTO> recordList = epidemicUserInfoDao.getEpidemicUserRecordList(params); |
|
|
|
List<Object> targetList = new ArrayList<>(); |
|
|
|
if (CollUtil.isNotEmpty(recordList)) { |
|
|
|