123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package com.kingdee.eas.custom.recuritment.handler;
- import com.kingdee.bos.Context;
- import com.kingdee.eas.custom.recuritment.task.RecuritmentFacadeFactory;
- import com.kingdee.shr.base.syssetting.context.SHRContext;
- import com.kingdee.shr.base.syssetting.exception.SHRWebException;
- import com.kingdee.shr.base.syssetting.exception.ShrWebBizException;
- import com.kingdee.shr.base.syssetting.web.handler.ListHandler;
- import com.taobao.api.internal.util.StringUtils;
- import org.springframework.ui.ModelMap;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- /**
- * @author qingwu
- * @date 2025/7/2
- * @apiNote
- */
- public class ApplicantBeisenListHandler extends ListHandler {
- /**
- * 同步北森简历
- *
- * @param request
- * @param response
- * @param modelMap
- * @throws SHRWebException
- */
- public void syncBeisenResumeAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException {
- Context ctx = SHRContext.getInstance().getContext();
- String billId = this.getBillId(request);
- if (StringUtils.isEmpty(billId)) {
- throw new ShrWebBizException("单据Id不能为空!!");
- }
- if (billId.split(",").length > 1) {
- throw new ShrWebBizException("只能选中单行!!");
- }
- try {
- RecuritmentFacadeFactory.getLocalInstance(ctx).syncBeisenResume(billId);
- } catch (Exception e) {
- e.printStackTrace();
- throw new ShrWebBizException(e);
- }
- }
- }
|