|
|
@ -1,7 +1,10 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
@ -9,7 +12,12 @@ import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.epmet.dao.IcVaccinePrarmeterDao; |
|
|
|
import com.epmet.dto.IcPointNucleicMonitoringDTO; |
|
|
|
import com.epmet.dto.IcVaccinePrarmeterDTO; |
|
|
|
import com.epmet.dto.form.PointHSYMFormDTO; |
|
|
|
import com.epmet.dto.form.VaccinePrarmeterListFormDTO; |
|
|
|
import com.epmet.excel.IcPointNucleicMonitoringExcel; |
|
|
|
import com.epmet.excel.IcVaccinePrarmeterExcel; |
|
|
|
import com.epmet.service.IcVaccinePrarmeterService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -33,6 +41,9 @@ public class IcVaccinePrarmeterController { |
|
|
|
@Autowired |
|
|
|
private IcVaccinePrarmeterService icVaccinePrarmeterService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IcVaccinePrarmeterDao icVaccinePrarmeterDao; |
|
|
|
|
|
|
|
@RequestMapping("page") |
|
|
|
public Result<PageData<IcVaccinePrarmeterDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
|
PageData<IcVaccinePrarmeterDTO> page = icVaccinePrarmeterService.page(params); |
|
|
@ -77,6 +88,22 @@ public class IcVaccinePrarmeterController { |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, IcVaccinePrarmeterExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Desc: 【新冠病毒疫苗接种人员信息台账】导出 |
|
|
|
* @param response |
|
|
|
* @param formDTO |
|
|
|
* @param tokenDto |
|
|
|
* @author wgf |
|
|
|
* @date 2022/6/24 13:57 |
|
|
|
*/ |
|
|
|
@PostMapping("vaccine-export") |
|
|
|
public void vaccineExport(HttpServletResponse response, @RequestBody VaccinePrarmeterListFormDTO formDTO, @LoginUser TokenDto tokenDto) throws Exception { |
|
|
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
|
|
|
List<IcVaccinePrarmeterDTO> list = icVaccinePrarmeterDao.vaccineExport(formDTO); |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, IcVaccinePrarmeterExcel.class); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|