|
|
@ -1,20 +1,15 @@
|
|
|
|
package com.ruoyi.web.controller.ehs;
|
|
|
|
package com.ruoyi.web.controller.ehs;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.TableInfo;
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.ExcelExp;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.utils.ExcelExportUtil;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.ehsRescueTeam.domain.EhsRescueTeam;
|
|
|
|
import com.ruoyi.ehsRescueTeam.domain.EhsRescueTeam;
|
|
|
|
import com.ruoyi.ehsRescueTeam.domain.RescueTeamImportTemplate;
|
|
|
|
|
|
|
|
import com.ruoyi.ehsRescueTeam.service.IEhsRescueTeamService;
|
|
|
|
import com.ruoyi.ehsRescueTeam.service.IEhsRescueTeamService;
|
|
|
|
import com.ruoyi.ehsRescueTeam.vo.TeamResponseVo;
|
|
|
|
import com.ruoyi.ehsRescueTeam.vo.TeamResponseVo;
|
|
|
|
import com.ruoyi.ehsRescueTeamWorker.domain.EhsRescueTeamWorker;
|
|
|
|
import com.ruoyi.ehsRescueTeamWorker.domain.EhsRescueTeamWorker;
|
|
|
|
import com.ruoyi.ehsRescueTeamWorker.domain.RescueTeamWorkerImportTemplate;
|
|
|
|
|
|
|
|
import com.ruoyi.ehsRescueTeamWorker.service.IEhsRescueTeamWorkerService;
|
|
|
|
import com.ruoyi.ehsRescueTeamWorker.service.IEhsRescueTeamWorkerService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@ -23,8 +18,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
@ -61,8 +54,10 @@ public class EhsRescueTeamWorkerController extends BaseController {
|
|
|
|
@Log(title = "应急救援队人员信息", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "应急救援队人员信息", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/export")
|
|
|
|
@PostMapping("/export")
|
|
|
|
public void export(HttpServletResponse response, EhsRescueTeamWorker ehsRescueTeamWorker) {
|
|
|
|
public void export(HttpServletResponse response, EhsRescueTeamWorker ehsRescueTeamWorker) {
|
|
|
|
|
|
|
|
EhsRescueTeam team = ehsRescueTeamService.selectEhsRescueTeamById(ehsRescueTeamWorker.getRescueTeamId());
|
|
|
|
List<EhsRescueTeamWorker> list = ehsRescueTeamWorkerService.selectEhsRescueTeamWorkerList(ehsRescueTeamWorker);
|
|
|
|
List<EhsRescueTeamWorker> list = ehsRescueTeamWorkerService.selectEhsRescueTeamWorkerList(ehsRescueTeamWorker);
|
|
|
|
ExcelUtil<EhsRescueTeamWorker> util = new ExcelUtil<EhsRescueTeamWorker>(EhsRescueTeamWorker.class);
|
|
|
|
list.stream().forEach(item -> item.setDutyer(team.getDutyer()));
|
|
|
|
|
|
|
|
ExcelUtil<EhsRescueTeamWorker> util = new ExcelUtil<>(EhsRescueTeamWorker.class);
|
|
|
|
util.exportExcel(response, list, "应急救援队人员信息数据");
|
|
|
|
util.exportExcel(response, list, "应急救援队人员信息数据");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|