|
@@ -508,7 +508,7 @@ public class SocialSecurityConfirmController extends BaseController {
|
|
|
return;
|
|
|
}
|
|
|
ExcelWriter writer = cn.hutool.poi.excel.ExcelUtil.getWriter(true);
|
|
|
- writer.merge(0, 0, 0, 5, "社保员信息", true);
|
|
|
+ writer.merge(0, 0, 0, 5, "社保人员信息", true);
|
|
|
writer.merge(1, 1, 0, 3, company.getName(), false);
|
|
|
writer.merge(1, 1, 4, 5, socialSecurityConfirm.getYear() + "年 第" + socialSecurityConfirm.getMonth() + "期", false);
|
|
|
writer.writeCellValue(0, 2, "员工名");
|
|
@@ -598,6 +598,7 @@ public class SocialSecurityConfirmController extends BaseController {
|
|
|
List<BizSocialSecurityConfirmDetailEmployee> socialSecurityDetailEmployeeList = socialSecurityConfirmDetailEmployeeService.getList(map);
|
|
|
socialSecurityConfirm.setDetails(socialSecurityDetailEmployeeList);
|
|
|
company = companyService.getById(socialSecurityConfirm.getCompanyId());
|
|
|
+ socialSecurityConfirm.setTime(" "+socialSecurityConfirm.getYear()+"年"+" "+"第"+socialSecurityConfirm.getMonth()+"期");
|
|
|
socialSecurityConfirm.setCompanyName(company.getName());
|
|
|
} else {
|
|
|
return;
|
|
@@ -614,8 +615,7 @@ public class SocialSecurityConfirmController extends BaseController {
|
|
|
String templateContent = out.toString();
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
response.setContentType("application/pdf");
|
|
|
- String fileName ="工资表";
|
|
|
-// response.setHeader("Content-Disposition", "filename=" + new String(fileName.getBytes(), StandardCharsets.ISO_8859_1));
|
|
|
+ String fileName ="社保人员信息表";
|
|
|
response.setHeader("Content-Disposition", "filename=" + new String(fileName.getBytes()));
|
|
|
byte[] resources = PdfUtil.html2Pdf(templateContent);
|
|
|
ServletOutputStream outputStream = response.getOutputStream();
|