校招详情加公司规模,3个热门分类改成公共接口
This commit is contained in:
@@ -123,7 +123,7 @@ public class JobController {
|
|||||||
*
|
*
|
||||||
* @param limit 返回条数,默认10
|
* @param limit 返回条数,默认10
|
||||||
*/
|
*/
|
||||||
@GetMapping("/industry/hot")
|
@GetMapping("/public/industry/hot")
|
||||||
public List<HotIndustryVo> listHotIndustries(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
public List<HotIndustryVo> listHotIndustries(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
||||||
return jobService.listHotIndustries(limit);
|
return jobService.listHotIndustries(limit);
|
||||||
}
|
}
|
||||||
@@ -134,7 +134,7 @@ public class JobController {
|
|||||||
*
|
*
|
||||||
* @param limit 返回条数,默认10
|
* @param limit 返回条数,默认10
|
||||||
*/
|
*/
|
||||||
@GetMapping("/category/hot")
|
@GetMapping("/public/category/hot")
|
||||||
public List<HotJobCategoryVo> listHotJobCategories(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
public List<HotJobCategoryVo> listHotJobCategories(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
||||||
return jobService.listHotJobCategories(limit);
|
return jobService.listHotJobCategories(limit);
|
||||||
}
|
}
|
||||||
@@ -145,7 +145,7 @@ public class JobController {
|
|||||||
*
|
*
|
||||||
* @param limit 返回条数,默认10
|
* @param limit 返回条数,默认10
|
||||||
*/
|
*/
|
||||||
@GetMapping("/city/hot")
|
@GetMapping("/public/city/hot")
|
||||||
public List<HotCityVo> listHotCities(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
public List<HotCityVo> listHotCities(@RequestParam(required = false, defaultValue = "10") Integer limit) {
|
||||||
return jobService.listHotCities(limit);
|
return jobService.listHotCities(limit);
|
||||||
}
|
}
|
||||||
|
|||||||
+9
@@ -35,6 +35,9 @@ public class RecruitAnnouncementDetailDto {
|
|||||||
/** 公司简介 */
|
/** 公司简介 */
|
||||||
private String companyIntro;
|
private String companyIntro;
|
||||||
|
|
||||||
|
/** 公司规模 */
|
||||||
|
private String companyScale;
|
||||||
|
|
||||||
/** 面向对象,如2027届本硕博 */
|
/** 面向对象,如2027届本硕博 */
|
||||||
private String targetAudience;
|
private String targetAudience;
|
||||||
|
|
||||||
@@ -65,6 +68,12 @@ public class RecruitAnnouncementDetailDto {
|
|||||||
/** 信息来源说明 */
|
/** 信息来源说明 */
|
||||||
private String source;
|
private String source;
|
||||||
|
|
||||||
|
/** 公告地址 */
|
||||||
|
private String announcementUrl;
|
||||||
|
|
||||||
|
/** 投递地址 */
|
||||||
|
private String applyUrl;
|
||||||
|
|
||||||
/** 公告发布/更新时间 */
|
/** 公告发布/更新时间 */
|
||||||
private Instant publishTime;
|
private Instant publishTime;
|
||||||
|
|
||||||
|
|||||||
@@ -194,12 +194,13 @@ public class RecruitAnnouncementService {
|
|||||||
RecruitAnnouncementDetailDto dto = new RecruitAnnouncementDetailDto();
|
RecruitAnnouncementDetailDto dto = new RecruitAnnouncementDetailDto();
|
||||||
BeanUtils.copyProperties(announcement, dto);
|
BeanUtils.copyProperties(announcement, dto);
|
||||||
|
|
||||||
// 补公司logo与类型
|
// 补公司logo与类型和公司规模
|
||||||
if (announcement.getCompanyId() != null) {
|
if (announcement.getCompanyId() != null) {
|
||||||
Company company = companyMapper.selectOne(new LambdaQueryWrapper<Company>().select(Company::getLogoUrl, Company::getCompanyType).eq(Company::getId, announcement.getCompanyId()));
|
Company company = companyMapper.selectOne(new LambdaQueryWrapper<Company>().select(Company::getLogoUrl, Company::getCompanyType, Company::getScale).eq(Company::getId, announcement.getCompanyId()));
|
||||||
if (company != null) {
|
if (company != null) {
|
||||||
dto.setLogoUrl(company.getLogoUrl());
|
dto.setLogoUrl(company.getLogoUrl());
|
||||||
dto.setCompanyType(company.getCompanyType());
|
dto.setCompanyType(company.getCompanyType());
|
||||||
|
dto.setCompanyScale(company.getScale());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user