|
|
@@ -68,32 +68,9 @@ public class RecruitCompanyServiceImpl extends ServiceImpl<RecruitCompanyMapper,
|
|
|
|
|
|
@Override
|
|
|
public List<RecruitCompanyVo> queryList(RecruitCompanyQueryBo bo) {
|
|
|
- LambdaQueryWrapper<RecruitCompany> lqw = Wrappers.lambdaQuery();
|
|
|
- lqw.like(StrUtil.isNotBlank(bo.getCompanyName()), RecruitCompany::getCompanyName, bo.getCompanyName());
|
|
|
- lqw.eq(bo.getCompanyTypeId() != null, RecruitCompany::getCompanyTypeId, bo.getCompanyTypeId());
|
|
|
- lqw.eq(bo.getCompanySizeId() != null, RecruitCompany::getCompanySizeId, bo.getCompanySizeId());
|
|
|
- lqw.eq(bo.getIndustryTypeId() != null, RecruitCompany::getIndustryTypeId, bo.getIndustryTypeId());
|
|
|
- lqw.like(StrUtil.isNotBlank(bo.getIndustryTypeName()), RecruitCompany::getIndustryTypeName, bo.getIndustryTypeName());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getCompanyIntroduce()), RecruitCompany::getCompanyIntroduce, bo.getCompanyIntroduce());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getLogoUrl()), RecruitCompany::getLogoUrl, bo.getLogoUrl());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getLicenseUrl()), RecruitCompany::getLicenseUrl, bo.getLicenseUrl());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getSocietyCode()), RecruitCompany::getSocietyCode, bo.getSocietyCode());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getProvince()), RecruitCompany::getProvince, bo.getProvince());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getCity()), RecruitCompany::getCity, bo.getCity());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getDistrict()), RecruitCompany::getDistrict, bo.getDistrict());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getAddress()), RecruitCompany::getAddress, bo.getAddress());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getCompanyPh()), RecruitCompany::getCompanyPh, bo.getCompanyPh());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getLinkMan()), RecruitCompany::getLinkMan, bo.getLinkMan());
|
|
|
- lqw.eq(StrUtil.isNotBlank(bo.getPostBox()), RecruitCompany::getPostBox, bo.getPostBox());
|
|
|
- lqw.eq(RecruitCompany::getStatus, 1);
|
|
|
- lqw.eq(bo.getTenantId() != null, RecruitCompany::getTenantId, bo.getTenantId());
|
|
|
- List<RecruitCompanyVo> companyVos = entity2Vo(this.list(lqw));
|
|
|
- String TenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
- bo.setTenantId(Convert.toLong(TenantId));
|
|
|
- RecruitCompanyVo companyList = baseMapper.selectCompanyList(bo);
|
|
|
- companyList.setCompanyId(0L);
|
|
|
- companyVos.add(companyList);
|
|
|
- for (RecruitCompanyVo companyVo : companyVos) {
|
|
|
+ List<RecruitCompanyVo> recruitCompanyVos = baseMapper.selectLimt(bo);
|
|
|
+
|
|
|
+ for (RecruitCompanyVo companyVo : recruitCompanyVos) {
|
|
|
if (companyVo.getCompanyTypeId() != null && companyVo.getCompanySizeId() != null) {
|
|
|
SysDictData sysDictData = dictDataService.selectDictDataById(companyVo.getCompanyTypeId());
|
|
|
SysDictData sysDictData1 = dictDataService.selectDictDataById(companyVo.getCompanySizeId());
|
|
|
@@ -101,7 +78,7 @@ public class RecruitCompanyServiceImpl extends ServiceImpl<RecruitCompanyMapper,
|
|
|
companyVo.setCompanySize(sysDictData1.getDictLabel());
|
|
|
}
|
|
|
}
|
|
|
- return companyVos;
|
|
|
+ return recruitCompanyVos;
|
|
|
}
|
|
|
|
|
|
/**
|