generated from dxfeng/secondev-chapanda-feishu
ADD-应聘者列表卡片接口
This commit is contained in:
parent
2a78b11d99
commit
7bf2b93b9e
|
|
@ -100,7 +100,7 @@ public class ApplicantResumeController {
|
|||
public String getResumeListStatus(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
Map<String, Object> param = ParamUtil.request2Map(request);
|
||||
return new ResponseResult<Map<String, Object>, Map<String, Object>>(user).run(getApplicantResumeWrapper(user)::getResumeListStatus, param);
|
||||
return new ResponseResult<Map<String, Object>, String>(user).run(getApplicantResumeWrapper(user)::getResumeListStatus, param);
|
||||
}
|
||||
|
||||
@POST
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public interface ApplicantResumeService {
|
|||
* @param param
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> getResumeListStatus(Map<String, Object> param);
|
||||
String getResumeListStatus(Map<String, Object> param);
|
||||
|
||||
/**
|
||||
* 更新简历列表状态
|
||||
|
|
|
|||
|
|
@ -483,12 +483,28 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getResumeListStatus(Map<String, Object> param) {
|
||||
return null;
|
||||
public String getResumeListStatus(Map<String, Object> param) {
|
||||
int uid = user.getUID();
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select ypzlb from uf_jcl_recruit where userId = ?", uid);
|
||||
String listType = "0";
|
||||
if (rs.next()) {
|
||||
listType = rs.getString("ypzlb");
|
||||
}
|
||||
return listType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> updateResumeListStatus(Map<String, Object> param) {
|
||||
int uid = user.getUID();
|
||||
String listType = Util.null2String(param.get("listType"));
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select ypzlb from uf_jcl_recruit where userId = ?", uid);
|
||||
if (rs.next()) {
|
||||
rs.executeUpdate("update uf_jcl_recruit set ypzlb = ? where userId = ?", listType, uid);
|
||||
} else {
|
||||
rs.executeUpdate("insert into uf_jcl_recruit (ypzlb,userId) values (?,?)", listType, uid);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -629,6 +645,7 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
|
||||
/**
|
||||
* 最近薪酬谈判:若未发起,则不显示,若有记录但是无结果的,显示“暂无薪酬谈判结果”;若有结果则显示“谈判日期,结果”;若存在多条,则显示最新的数据;若存在多条则取最新的【谈判时间】
|
||||
*
|
||||
* @param id
|
||||
* @param rs
|
||||
* @param recruitProcessList
|
||||
|
|
@ -659,6 +676,7 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
|
||||
/**
|
||||
* offer状态:若未产生数据则不显示,若有数据了,则显示offer状态,若反馈时间有数值,则显示,没数值则不现实
|
||||
*
|
||||
* @param id
|
||||
* @param rs
|
||||
* @param recruitProcessList
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class ApplicantResumeWrapper extends Service {
|
|||
return getApplicantResumeService(user).getResumeCardInfo(params);
|
||||
}
|
||||
|
||||
public Map<String, Object> getResumeListStatus(Map<String, Object> params) {
|
||||
public String getResumeListStatus(Map<String, Object> params) {
|
||||
return getApplicantResumeService(user).getResumeListStatus(params);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue