This commit is contained in:
mash 2024-11-14 13:35:10 +08:00
parent eefffb845b
commit 79ff43f704
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
} }
public void export(PersonnelDeleteRequest param, HttpServletResponse response) { public void export(PersonnelDeleteRequest param, HttpServletResponse response) {
List<Personnel> list = list(); List<Personnel> list = list(Wrappers.lambdaQuery(Personnel.class).eq(Personnel::getState, "2").eq(Personnel::getAuditState, "3").orderByDesc(Personnel::getCreatedAt));
List<ExcelPersonnel> personnelList = BeanUtil.copyToList(list, ExcelPersonnel.class); List<ExcelPersonnel> personnelList = BeanUtil.copyToList(list, ExcelPersonnel.class);
for (ExcelPersonnel excelPersonnel : personnelList) { for (ExcelPersonnel excelPersonnel : personnelList) {
CompanyName companyName = companyNameMapper.selectById(excelPersonnel.getCompanyName()); CompanyName companyName = companyNameMapper.selectById(excelPersonnel.getCompanyName());