generated from dxfeng/secondev-chapanda-feishu
招聘阶段流转提醒
This commit is contained in:
parent
4423e73124
commit
d8dee8823d
|
|
@ -89,4 +89,13 @@ public class RecruitPositionController {
|
||||||
Map<String, Object> param = ParamUtil.request2Map(request);
|
Map<String, Object> param = ParamUtil.request2Map(request);
|
||||||
return new ResponseResult<Map<String, Object>, Map<String, Object>>(user).run(getRecruitPositionWrapper(user)::getReportList, param);
|
return new ResponseResult<Map<String, Object>, Map<String, Object>>(user).run(getRecruitPositionWrapper(user)::getReportList, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("/setStepMsgConfig")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public String setStepMsgConfig(@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(getRecruitPositionWrapper(user)::setStepMsgConfig, param);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ public interface RecruitPositionService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存并发布职位
|
* 保存并发布职位
|
||||||
|
*
|
||||||
* @param param
|
* @param param
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -64,4 +65,12 @@ public interface RecruitPositionService {
|
||||||
*/
|
*/
|
||||||
Map<String, Object> getReportList(Map<String, Object> param);
|
Map<String, Object> getReportList(Map<String, Object> param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 阶段提醒配置
|
||||||
|
*
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Map<String, Object> setStepMsgConfig(Map<String, Object> param);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -331,6 +331,33 @@ public class RecruitPositionServiceImpl extends Service implements RecruitPositi
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> setStepMsgConfig(Map<String, Object> param) {
|
||||||
|
Map<String, Object> resultMap = new HashMap<>();
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
|
String checked = Util.null2String(param.get("checked"));
|
||||||
|
String zpzw = Util.null2String(param.get("cardid"));
|
||||||
|
if (StringUtils.isBlank(zpzw)) {
|
||||||
|
zpzw = "-1";
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(checked)) {
|
||||||
|
checked = "true".equals(checked) ? "1" : "0";
|
||||||
|
rs.executeQuery("select qyzt from uf_jcl_step_config where zpzw = ? ", zpzw);
|
||||||
|
if (rs.next()) {
|
||||||
|
// 更新数据
|
||||||
|
rs.executeUpdate("update uf_jcl_step_config set qyzt = ? where zpzw = ?", checked, zpzw);
|
||||||
|
} else {
|
||||||
|
// 插入数据
|
||||||
|
rs.executeUpdate("insert into uf_jcl_step_config (zpzw, qyzt) values (?, ?)", zpzw, checked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rs.executeQuery("select qyzt from uf_jcl_step_config where zpzw = ?", zpzw);
|
||||||
|
if (rs.next()) {
|
||||||
|
resultMap.put("enable", "1".equals(rs.getString("qyzt")));
|
||||||
|
}
|
||||||
|
return resultMap;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> saveAndReleaseResumeJob(Map<String, Object> param) {
|
public Map<String, Object> saveAndReleaseResumeJob(Map<String, Object> param) {
|
||||||
String billId = Util.null2String(param.get("billId"));
|
String billId = Util.null2String(param.get("billId"));
|
||||||
|
|
|
||||||
|
|
@ -46,4 +46,8 @@ public class RecruitPositionWrapper extends Service {
|
||||||
return getRecruitPositionService(user).getReportList(param);
|
return getRecruitPositionService(user).getReportList(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<String, Object> setStepMsgConfig(Map<String, Object> param) {
|
||||||
|
return getRecruitPositionService(user).setStepMsgConfig(param);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue