Commit 1f23cad1 by 284718418@qq.com

添加候选人

parent e8bba5d5
......@@ -126,14 +126,14 @@ public class ZpglController {
zpglRcxxPage.getSize();
Map<String, Object> map = new HashMap<>(2);
map.put("zpglRcxxs", zpglRcxxs);
map.put("FILTERING", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.FILTERING.getType())));
map.put("FILTER_PASS", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.FILTER_PASS.getType())));
map.put("INTERVIEW", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.INTERVIEW.getType())));
map.put("INTERVIEWED", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.INTERVIEWED.getType())));
map.put("INTERVIEW_PASS", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.INTERVIEW_PASS.getType())));
map.put("EMPLOY", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.EMPLOY.getType())));
map.put("OFFER", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.OFFER.getType())));
map.put("ENTRYING", ZpglRcxx.builder().build().selectCount(new QueryWrapper<ZpglRcxx>().lambda().eq(ZpglRcxx::getDeleteFlag,0).eq(ZpglRcxx::getStatus, JxglEnumInterface.ResumeStatus.ENTRYING.getType())));
map.put("FILTERING", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.FILTERING.getType(),userBean.getOrgCode()));
map.put("FILTER_PASS", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.FILTER_PASS.getType(),userBean.getOrgCode()));
map.put("INTERVIEW", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.INTERVIEW.getType(),userBean.getOrgCode()));
map.put("INTERVIEWED", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.INTERVIEWED.getType(),userBean.getOrgCode()));
map.put("INTERVIEW_PASS", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.INTERVIEW_PASS.getType(),userBean.getOrgCode()));
map.put("EMPLOY", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.EMPLOY.getType(),userBean.getOrgCode()));
map.put("OFFER", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.OFFER.getType(),userBean.getOrgCode()));
map.put("ENTRYING", this.getNum(queryWrapper,JxglEnumInterface.ResumeStatus.ENTRYING.getType(),userBean.getOrgCode()));
return ResultUtil.data(zpglRcxxPage, map, "搜索成功");
} catch (Exception e) {
......@@ -416,4 +416,17 @@ public class ZpglController {
}
/**
* 获取统计数据
* @param queryWrapper
* @param status
* @param orgCode
* @return
*/
private Integer getNum(QueryWrapper<ZpglRcxx> queryWrapper,Integer status,Integer orgCode){
queryWrapper.clear();
queryWrapper.lambda().eq(ZpglRcxx::getOrgCode, orgCode).eq(ZpglRcxx::getDeleteFlag,0);
return ZpglRcxx.builder().build().selectCount(queryWrapper.lambda().eq(ZpglRcxx::getStatus, status));
}
}
......@@ -34,13 +34,13 @@ public class ZpglZpqdController {
* @param
* @return
*/
@GetMapping(value = "/zpqd")
@GetMapping(value = "/zpqd/{OrgCode}")
@ApiOperation(value = "1.招聘渠道字典", httpMethod = "GET", notes = "招聘渠道字典")
@ApiOperationSupport(order = 1)
public Result<Object> zpqd(@CurrentUser UserBean userBean) {
public Result<Object> zpqd(@PathVariable Integer OrgCode) {
try {
QueryWrapper<ZpglZpqd> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ZpglZpqd::getDeleteFlag, 0).eq(ZpglZpqd::getOrgCode, userBean.getOrgCode());
queryWrapper.lambda().eq(ZpglZpqd::getDeleteFlag, 0).eq(ZpglZpqd::getOrgCode, OrgCode);
List<ZpglZpqd> zpglZpqd = ZpglZpqd.builder().build().selectList(queryWrapper);
return ResultUtil.data(zpglZpqd, "查询成功");
} catch (Exception e) {
......
......@@ -30,6 +30,11 @@ public class InterviewApplicationDto implements Serializable {
*/
@ApiModelProperty(value = "人才信息ID")
private Integer id;
/**
* 组织机构代码
*/
@ApiModelProperty(value = "组织机构代码")
private String orgCode;
/**
* 姓名
......@@ -204,6 +209,11 @@ public class InterviewApplicationDto implements Serializable {
private Integer zpglZpqdId;
/**
* 职位信息ID
*/
@ApiModelProperty(value = "职位信息ID")
private Integer zpglZwxxId;
/**
* 联系人信息
*/
@ApiModelProperty(value = "联系人信息")
......
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