Commit 2f1397b5 by 龙于生

新增获取企业名称接口

parent 128f723f
...@@ -60,7 +60,9 @@ public class WebSecurityConfig implements WebMvcConfigurer { ...@@ -60,7 +60,9 @@ public class WebSecurityConfig implements WebMvcConfigurer {
.excludePathPatterns("/wxgzpt/**") .excludePathPatterns("/wxgzpt/**")
.excludePathPatterns("/evaluation/**") .excludePathPatterns("/evaluation/**")
.excludePathPatterns("/oss/uploadImg") .excludePathPatterns("/oss/uploadImg")
.excludePathPatterns("/check/**"); .excludePathPatterns("/check/**")
.excludePathPatterns("/yggl/native_place");
// registry.addInterceptor(getSessionInterceptor()).addPathPatterns("/**").excludePathPatterns("/swagger-ui*"); // registry.addInterceptor(getSessionInterceptor()).addPathPatterns("/**").excludePathPatterns("/swagger-ui*");
} }
......
...@@ -2,6 +2,7 @@ package cn.timer.api.controller.zpgl; ...@@ -2,6 +2,7 @@ package cn.timer.api.controller.zpgl;
import cn.timer.api.aspect.lang.annotation.Log; import cn.timer.api.aspect.lang.annotation.Log;
import cn.timer.api.aspect.lang.enums.BusinessType; import cn.timer.api.aspect.lang.enums.BusinessType;
import cn.timer.api.bean.qyzx.QyzxEntInfoM;
import cn.timer.api.bean.zpgl.*; import cn.timer.api.bean.zpgl.*;
import cn.timer.api.config.enuminterface.JxglEnumInterface; import cn.timer.api.config.enuminterface.JxglEnumInterface;
import cn.timer.api.controller.zpgl.sevice.ZpglMslcLogService; import cn.timer.api.controller.zpgl.sevice.ZpglMslcLogService;
...@@ -21,6 +22,7 @@ import org.springframework.validation.annotation.Validated; ...@@ -21,6 +22,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.transaction.Transactional; import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -119,22 +121,28 @@ public class ZpglH5Controller { ...@@ -119,22 +121,28 @@ public class ZpglH5Controller {
* @param * @param
* @return * @return
*/ */
@RequestMapping("/interview_application_info/{mobile}") @RequestMapping("/interview_application_info")
@ApiOperation(value = "查询面试申请信息", httpMethod = "GET", notes = "查询面试申请信息") @ApiOperation(value = "查询面试申请信息", httpMethod = "GET", notes = "查询面试申请信息")
@Log(title = "interviewApplicationIofo", businessType = BusinessType.INSERT_UPDATE) @Log(title = "interviewApplicationIofo", businessType = BusinessType.INSERT_UPDATE)
public Result<InterviewApplicationDto> interviewApplicationIofo(@PathVariable String mobile) { public Result<InterviewApplicationDto> interviewApplicationIofo(@RequestParam String mobile,Integer zpglRcxxId) {
System.out.println(mobile);
if(mobile == null || "".equals(mobile)){
return ResultUtil.error("手机号不能为空");
}
InterviewApplicationDto dto = new InterviewApplicationDto(); InterviewApplicationDto dto = new InterviewApplicationDto();
List<ZpglRcxx> zpglRcxxes = ZpglRcxx.builder().build() List<ZpglRcxx> zpglRcxxes = new ArrayList<>();
.selectList(new QueryWrapper<ZpglRcxx>().lambda() if(null != zpglRcxxId){
.eq(ZpglRcxx::getMobile, mobile)); zpglRcxxes = ZpglRcxx.builder().build()
.selectList(new QueryWrapper<ZpglRcxx>().lambda()
.eq(ZpglRcxx::getId, zpglRcxxId));
}else{
zpglRcxxes = ZpglRcxx.builder().build()
.selectList(new QueryWrapper<ZpglRcxx>().lambda()
.eq(ZpglRcxx::getMobile, mobile));
}
if(zpglRcxxes.size() == 0){ if(zpglRcxxes.size() == 0){
return ResultUtil.error("没有简历信息"); return ResultUtil.error("没有简历信息");
} }
ZpglRcxx zpglRcxx = zpglRcxxes.get(0); ZpglRcxx zpglRcxx = zpglRcxxes.get(0);
//复制到dto //复制到dto
BeanUtils.copyProperties(zpglRcxx,dto); BeanUtils.copyProperties(zpglRcxx,dto);
...@@ -171,4 +179,15 @@ public class ZpglH5Controller { ...@@ -171,4 +179,15 @@ public class ZpglH5Controller {
return ResultUtil.data(dto,"查询成功"); return ResultUtil.data(dto,"查询成功");
} }
@RequestMapping("/getOrgName")
@ApiOperation(value = "根据orgCode获取企业名称", httpMethod = "GET", notes = "获取企业名称")
public Object getOrgName(@RequestParam("orgCode") Integer orgCode){
QyzxEntInfoM qyzxEntInfoM = QyzxEntInfoM.builder().build()
.selectOne(new QueryWrapper<QyzxEntInfoM>().lambda()
.select(QyzxEntInfoM::getName).eq(QyzxEntInfoM::getId, orgCode));
return ResultUtil.data(qyzxEntInfoM);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment