Commit ad0cad7a authored by 韩桐桐's avatar 韩桐桐

fix(jyjc):定(首)检验列表导出功能

parent 13798e27
......@@ -18,5 +18,5 @@ public interface IJyjcInspectionApplicationService {
Page<JyjcInspectionApplicationModel> queryForPageList(Page<JyjcInspectionApplication> page, JyjcInspectionApplicationModel model);
void export(HttpServletResponse response, List<String> ids);
void DSExport(HttpServletResponse response, List<String> ids);
}
......@@ -287,6 +287,6 @@ public class JyjcInspectionApplicationController extends BaseController {
@ApiOperation(httpMethod = "GET", value = "定(首)检验列表(企业)列表数据导出", notes = "定(首)检验列表(企业)列表数据导出")
public void export(HttpServletResponse response, String ids) {
Assert.hasText(ids,"未选择导出数据");
jyjcInspectionApplicationServiceImpl.export(response, Arrays.asList(ids.split(",")));
jyjcInspectionApplicationServiceImpl.DSExport(response, Arrays.asList(ids.split(",")));
}
}
......@@ -531,8 +531,13 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
return this.getBaseMapper().selectForPage(page, model, identity, currentApplicationUnitCode, currentInspectionUnitCode, currentUserId);
}
/**
* 定(首)检验列表(企业)列表数据导出
* @param response
* @param ids
*/
@Override
public void export(HttpServletResponse response, List<String> ids) {
public void DSExport(HttpServletResponse response, List<String> ids) {
List<JyjcInspectionApplicationVo> exportData = this.baseMapper.queryExportInIds(ids);
ExcelUtil.createTemplate(response, "定(首)检验列表数据", "定(首)检验列表", exportData, JyjcInspectionApplicationVo.class, null, false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment