diff --git a/src/main/java/com/ydool/staff/service/impl/PersonnelServiceImpl.java b/src/main/java/com/ydool/staff/service/impl/PersonnelServiceImpl.java index 7372524..81a1532 100644 --- a/src/main/java/com/ydool/staff/service/impl/PersonnelServiceImpl.java +++ b/src/main/java/com/ydool/staff/service/impl/PersonnelServiceImpl.java @@ -600,7 +600,7 @@ public class PersonnelServiceImpl extends BaseService list = list(); + List list = list(Wrappers.lambdaQuery(Personnel.class).eq(Personnel::getState, "2").eq(Personnel::getAuditState, "3").orderByDesc(Personnel::getCreatedAt)); List personnelList = BeanUtil.copyToList(list, ExcelPersonnel.class); for (ExcelPersonnel excelPersonnel : personnelList) { CompanyName companyName = companyNameMapper.selectById(excelPersonnel.getCompanyName());