|
@ -40,6 +40,7 @@ public class EpidemicUserInfoController { |
|
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
public Result<PageData<EpidemicRecordListDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
public Result<PageData<EpidemicRecordListDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
|
|
|
// 按人员往返时间倒序排列
|
|
|
PageData<EpidemicRecordListDTO> page = epidemicUserInfoService.getPageList(params); |
|
|
PageData<EpidemicRecordListDTO> page = epidemicUserInfoService.getPageList(params); |
|
|
|
|
|
|
|
|
return new Result<PageData<EpidemicRecordListDTO>>().ok(page); |
|
|
return new Result<PageData<EpidemicRecordListDTO>>().ok(page); |
|
@ -82,10 +83,10 @@ public class EpidemicUserInfoController { |
|
|
@LogOperation("导出") |
|
|
@LogOperation("导出") |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
List<EpidemicRecordListDTO> list = epidemicUserInfoService.getList(params); |
|
|
List<EpidemicRecordListDTO> list = epidemicUserInfoService.getList(params); |
|
|
|
|
|
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, EpidecmicUserNewExcel.class); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, EpidecmicUserNewExcel.class); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return io.pingyin.common.utils.Result<io.pingyin.common.page.PageData < io.pingyin.modules.epidemic.dto.result.EpidemicPageResultDTO>> |
|
|
* @return io.pingyin.common.utils.Result<io.pingyin.common.page.PageData < io.pingyin.modules.epidemic.dto.result.EpidemicPageResultDTO>> |
|
|
* @describe: 接种信息列表 |
|
|
* @describe: 接种信息列表 |
|
@ -95,11 +96,11 @@ public class EpidemicUserInfoController { |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("getEpidemicPage") |
|
|
@GetMapping("getEpidemicPage") |
|
|
public Result<PageData<EpidemicPageResultDTO>> getEpidemicPage(@RequestParam Map<String, Object> params) { |
|
|
public Result<PageData<EpidemicPageResultDTO>> getEpidemicPage(@RequestParam Map<String, Object> params) { |
|
|
|
|
|
// 按人员录入时间倒序排列
|
|
|
PageData<EpidemicPageResultDTO> page = epidemicUserInfoService.getEpidemicPage(params); |
|
|
PageData<EpidemicPageResultDTO> page = epidemicUserInfoService.getEpidemicPage(params); |
|
|
return new Result<PageData<EpidemicPageResultDTO>>().ok(page); |
|
|
return new Result<PageData<EpidemicPageResultDTO>>().ok(page); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("getinfo/{id}") |
|
|
@GetMapping("getinfo/{id}") |
|
|
public Result<VaccinationInfoResultDTO> getinfo(@PathVariable("id") Long id) { |
|
|
public Result<VaccinationInfoResultDTO> getinfo(@PathVariable("id") Long id) { |
|
|
VaccinationInfoResultDTO data = epidemicUserInfoService.getInfo(id); |
|
|
VaccinationInfoResultDTO data = epidemicUserInfoService.getInfo(id); |
|
|