feat: 企标稽查导出延期数据(新版列表接口)

This commit is contained in:
2023-12-12 15:46:53 +08:00
parent 56d37a22fc
commit f729ee763c
3 changed files with 12 additions and 5 deletions
@@ -159,8 +159,8 @@ public class EnterpriseStandardInspectController extends JeroController<Enterpri
@AutoLog(value = "企标稽查-导出延期数据") @AutoLog(value = "企标稽查-导出延期数据")
@ApiOperation(value="企标稽查-导出延期数据", notes="企标稽查-导出延期数据") @ApiOperation(value="企标稽查-导出延期数据", notes="企标稽查-导出延期数据")
@GetMapping("/exportDataWithDelay") @GetMapping("/exportDataWithDelay")
public void exportDataWithDelay(HttpServletResponse response, ESQueryCommonDTO esQueryCommonDTO) { public void exportDataWithDelay(HttpServletResponse response, EnterpriseStandardInspectVo enterpriseStandardInspectVo) {
esInspectService.exportDataWithDelay(response, esQueryCommonDTO, "企标稽查-延期数据", "企标稽查-延期数据"); esInspectService.exportDataWithDelay(response, enterpriseStandardInspectVo, "企标稽查-延期数据", "企标稽查-延期数据");
} }
@RequiresPermissions("enterpriseStandardLibrary:check:exportRectificationPlan") @RequiresPermissions("enterpriseStandardLibrary:check:exportRectificationPlan")
@@ -38,11 +38,11 @@ public interface EnterpriseStandardInspectService extends IService<EnterpriseSta
/** /**
* 企标稽查-导出 * 企标稽查-导出
* @param response * @param response
* @param esQueryCommonDTO * @param enterpriseStandardInspectVo
* @param fileName * @param fileName
* @param sheetName * @param sheetName
*/ */
void exportDataWithDelay(HttpServletResponse response, ESQueryCommonDTO esQueryCommonDTO, String fileName, String sheetName); void exportDataWithDelay(HttpServletResponse response, EnterpriseStandardInspectVo enterpriseStandardInspectVo, String fileName, String sheetName);
/** /**
* 企标稽查-导出整改计划 * 企标稽查-导出整改计划
@@ -90,10 +90,17 @@ public class EnterpriseStandardInspectServiceImpl extends ServiceImpl<Enterprise
} }
@Override @Override
public void exportDataWithDelay(HttpServletResponse response, ESQueryCommonDTO esQueryCommonDTO, String fileName, String sheetName) { public void exportDataWithDelay(HttpServletResponse response, EnterpriseStandardInspectVo enterpriseStandardInspectVo, String fileName, String sheetName) {
try { try {
// 获取数据 // 获取数据
IPage<EnterpriseStandardInspectDelayVo> page = new Page<>(1, Integer.MAX_VALUE); IPage<EnterpriseStandardInspectDelayVo> page = new Page<>(1, Integer.MAX_VALUE);
// 查询参数转换
ESQueryCommonDTO esQueryCommonDTO = new ESQueryCommonDTO();
esQueryCommonDTO.setStandardNo(enterpriseStandardInspectVo.getInspectNo());
esQueryCommonDTO.setStandardName(enterpriseStandardInspectVo.getInspectName());
esQueryCommonDTO.setInspectStatus(enterpriseStandardInspectVo.getInspectStatus());
esQueryCommonDTO.setInspectDept(enterpriseStandardInspectVo.getBelongDept());
// TODO 时间范围查询 等待VO添加对应参数后再添加
IPage<EnterpriseStandardInspectDelayVo> enterpriseStandardInspectDelayVoIPage = esInspectMapper.pageWithDelay(page, esQueryCommonDTO); IPage<EnterpriseStandardInspectDelayVo> enterpriseStandardInspectDelayVoIPage = esInspectMapper.pageWithDelay(page, esQueryCommonDTO);
List<EnterpriseStandardInspectDelayVo> records = enterpriseStandardInspectDelayVoIPage.getRecords(); List<EnterpriseStandardInspectDelayVo> records = enterpriseStandardInspectDelayVoIPage.getRecords();