1.登录获取简历信息时如何时企业用户则返回企业信息
2.添加企业-按名称查询模糊接口,最大返回50条数据
This commit is contained in:
		| @@ -144,4 +144,12 @@ public class AppCompanyController extends BaseController | ||||
|         } | ||||
|         return AjaxResult.success(companyService.queryCodeCompany(code)); | ||||
|     } | ||||
|  | ||||
|     @ApiOperation("模糊查询公司列表") | ||||
|     @GetMapping("/likeList") | ||||
|     public TableDataInfo likeList(Company company) | ||||
|     { | ||||
|         List<Company> list = companyService.selectLikeCompanyList(company); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -49,7 +49,7 @@ public class AppUserController extends BaseController | ||||
|     @ApiOperation("保存注册信息") | ||||
|     @PostMapping("/registerUser") | ||||
|     @BussinessLog(title = "保存简历") | ||||
|     public AjaxResult saveResume(@RequestBody RegisterBody registerBody) | ||||
|     public AjaxResult registerUser(@RequestBody RegisterBody registerBody) | ||||
|     { | ||||
|         appUserService.registerAppUser(registerBody); | ||||
|         return AjaxResult.success(); | ||||
|   | ||||
| @@ -163,7 +163,7 @@ public class Job extends BaseEntity | ||||
|     @ApiModelProperty("岗位类型 0疆内 1疆外") | ||||
|     private String jobType; | ||||
|  | ||||
|     @ApiModelProperty("类型 0常规岗位 1就业见习岗位 2实习实训岗位 3社区实践岗位 对应字段字典position_type") | ||||
|     @ApiModelProperty("类型 0常规岗位 1就业见习岗位 2实习实训岗位 3社区实践岗位 4零工 对应字段字典position_type") | ||||
|     private String type; | ||||
|  | ||||
|     @TableField(exist = false) | ||||
|   | ||||
| @@ -25,4 +25,6 @@ public interface CompanyMapper extends BaseMapper<Company> | ||||
|     void updateJobCountOfCompany(); | ||||
|  | ||||
|     List<Company> label(@Param("companyNature") String companyNature, @Param("targ")String targ,@Param("companyName")String companyName); | ||||
|  | ||||
|     List<Company> selectLikeCompanyList(Company company); | ||||
| } | ||||
|   | ||||
| @@ -77,4 +77,6 @@ public interface ICompanyService | ||||
|     Company approval(Company company); | ||||
|  | ||||
|     Company queryCodeCompany(String code); | ||||
|  | ||||
|     List<Company> selectLikeCompanyList(Company company); | ||||
| } | ||||
|   | ||||
| @@ -7,6 +7,7 @@ import java.util.Map; | ||||
| import java.util.stream.Collectors; | ||||
|  | ||||
| import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||||
| import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||||
| import com.ruoyi.cms.mapper.*; | ||||
| import com.ruoyi.cms.util.StringUtil; | ||||
| import com.ruoyi.common.core.domain.entity.Company; | ||||
| @@ -59,6 +60,11 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple | ||||
|             List<JobTitle> jobs = jobTitleMapper.selectBatchIds(collect); | ||||
|             appUser.setJobTitle(jobs.stream().map(JobTitle::getJobName).collect(Collectors.toList())); | ||||
|         } | ||||
|         //查询企业信息 | ||||
|         if("0".equals(appUser.getIsCompanyUser())){ | ||||
|             Company company=companyMapper.selectOne(Wrappers.<Company>lambdaQuery().eq(Company::getCode, appUser.getIdCard()).orderByDesc(Company::getUpdateTime).last("LIMIT 1")); | ||||
|             appUser.setCompany(company); | ||||
|         } | ||||
|         return appUser; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -301,4 +301,9 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl | ||||
|         Company companyResult = companyMapper.selectOne(Wrappers.<Company>lambdaQuery().eq(Company::getCode, code).orderByDesc(Company::getUpdateTime).last("LIMIT 1")); | ||||
|         return companyResult; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public List<Company> selectLikeCompanyList(Company company) { | ||||
|         return companyMapper.selectLikeCompanyList(company); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user