generated from dxfeng/secondev-chapanda-feishu
tab展示当前tab页下简历关联的记录条数合集
This commit is contained in:
parent
5e88575e8e
commit
11387472fc
|
|
@ -55,4 +55,13 @@ public class ApplicantResumeController {
|
|||
Map<String, Object> params = ParamUtil.request2Map(request);
|
||||
return new ResponseResult<Map<String, Object>, Map<String, Object>>(user).run(getApplicantResumeWrapper(user)::getDisplayLayoutId, params);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/getTabCount")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String getTabCount(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
Map<String, Object> params = ParamUtil.request2Map(request);
|
||||
return new ResponseResult<Map<String, Object>, Map<String, Object>>(user).run(getApplicantResumeWrapper(user)::getTabCount, params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,4 +36,12 @@ public interface ApplicantResumeService {
|
|||
* @return 显示布局ID
|
||||
*/
|
||||
Map<String, Object> getDisplayLayoutId(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取关联Tab页,数据统计条数
|
||||
*
|
||||
* @param params 入参
|
||||
* @return 据统计条数
|
||||
*/
|
||||
Map<String, Object> getTabCount(Map<String, Object> params);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,53 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
return returnMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getTabCount(Map<String, Object> params) {
|
||||
Map<String, Object> returnMap = new HashMap<>();
|
||||
String billId = Util.null2String(params.get("billid"));
|
||||
List<Integer> countList = new ArrayList<>();
|
||||
RecordSet rs = new RecordSet();
|
||||
// 部门筛选反馈
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_bmsxfk where ypz = ?", billId);
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
// 笔试
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_bs where ypz = ?", billId);
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
// 面试
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_ms where ypz = ?", billId);
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
// 背调
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_bd where ypz = ?", billId);
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
// 薪酬谈判
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_xctp where ypz = ?", billId);
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
// 历史投递记录
|
||||
rs.executeQuery("select xm,sjhm from uf_jcl_yppc where id = ?", billId);
|
||||
if (rs.next()) {
|
||||
rs.executeQuery("select count(id) as num from uf_jcl_yppc where xm=? and sjhm =?", rs.getString("xm"), rs.getString("sjhm"));
|
||||
if (rs.next()) {
|
||||
countList.add(rs.getInt("num"));
|
||||
}
|
||||
}else{
|
||||
countList.add(0);
|
||||
}
|
||||
|
||||
|
||||
returnMap.put("countList", countList);
|
||||
return returnMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建普通数据格式
|
||||
*
|
||||
|
|
|
|||
|
|
@ -29,4 +29,7 @@ public class ApplicantResumeWrapper extends Service {
|
|||
public Map<String, Object> getDisplayLayoutId(Map<String, Object> params) {
|
||||
return getApplicantResumeService(user).getDisplayLayoutId(params);
|
||||
}
|
||||
public Map<String, Object> getTabCount(Map<String, Object> params) {
|
||||
return getApplicantResumeService(user).getTabCount(params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue