ApplicantBeisenListHandler.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.kingdee.eas.custom.recuritment.handler;
  2. import com.kingdee.bos.Context;
  3. import com.kingdee.eas.custom.recuritment.task.RecuritmentFacadeFactory;
  4. import com.kingdee.shr.base.syssetting.context.SHRContext;
  5. import com.kingdee.shr.base.syssetting.exception.SHRWebException;
  6. import com.kingdee.shr.base.syssetting.exception.ShrWebBizException;
  7. import com.kingdee.shr.base.syssetting.web.handler.ListHandler;
  8. import com.taobao.api.internal.util.StringUtils;
  9. import org.springframework.ui.ModelMap;
  10. import javax.servlet.http.HttpServletRequest;
  11. import javax.servlet.http.HttpServletResponse;
  12. /**
  13. * @author qingwu
  14. * @date 2025/7/2
  15. * @apiNote
  16. */
  17. public class ApplicantBeisenListHandler extends ListHandler {
  18. /**
  19. * 同步北森简历
  20. *
  21. * @param request
  22. * @param response
  23. * @param modelMap
  24. * @throws SHRWebException
  25. */
  26. public void syncBeisenResumeAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException {
  27. Context ctx = SHRContext.getInstance().getContext();
  28. String billId = this.getBillId(request);
  29. if (StringUtils.isEmpty(billId)) {
  30. throw new ShrWebBizException("单据Id不能为空!!");
  31. }
  32. if (billId.split(",").length > 1) {
  33. throw new ShrWebBizException("只能选中单行!!");
  34. }
  35. try {
  36. RecuritmentFacadeFactory.getLocalInstance(ctx).syncBeisenResume(billId);
  37. } catch (Exception e) {
  38. e.printStackTrace();
  39. throw new ShrWebBizException(e);
  40. }
  41. }
  42. }