generated from dxfeng/secondev-chapanda-feishu
无锡优耐特-立即执行简历同步
This commit is contained in:
parent
d83c08eac5
commit
5e8a2f8d16
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.api.recruit.controller;
|
||||||
|
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2024/03/27
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Path("/jcl/recruit/schedule")
|
||||||
|
public class RecruitScheduleController extends com.engine.recruit.controller.RecruitScheduleController{
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
package com.engine.recruit.controller;
|
||||||
|
|
||||||
|
import com.engine.common.util.ParamUtil;
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.recruit.util.ResponseResult;
|
||||||
|
import com.engine.recruit.wrapper.RecruitScheduleWrapper;
|
||||||
|
import weaver.hrm.HrmUserVarify;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.ws.rs.POST;
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
import javax.ws.rs.Produces;
|
||||||
|
import javax.ws.rs.core.Context;
|
||||||
|
import javax.ws.rs.core.MediaType;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2024/03/27
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class RecruitScheduleController {
|
||||||
|
|
||||||
|
public RecruitScheduleWrapper getRecruitScheduleWrapper(User user) {
|
||||||
|
return ServiceUtil.getService(RecruitScheduleWrapper.class, user);
|
||||||
|
}
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("/immediatelyRun")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public String immediatelyRun(@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(getRecruitScheduleWrapper(user)::immediatelyRun, param);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.engine.recruit.service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2024/03/27
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public interface RecruitScheduleService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 立即运行计划任务(跳过分权判断)
|
||||||
|
*
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Map<String, Object> immediatelyRun(Map<String, Object> param);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.engine.recruit.service.impl;
|
||||||
|
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
import com.engine.integration.gconst.IntegrationConstant;
|
||||||
|
import com.engine.integration.service.impl.ScheduleServiceImpl;
|
||||||
|
import com.engine.recruit.service.RecruitScheduleService;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2024/03/27
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class RecruitScheduleServiceImpl extends Service implements RecruitScheduleService {
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> immediatelyRun(Map<String, Object> param) {
|
||||||
|
Map<String, Object> apiDatas = ServiceUtil.getService(ScheduleServiceImpl.class, user).immediatelyRun(param, user);
|
||||||
|
apiDatas.put(IntegrationConstant.INTEGRATION_RESULT_STATUS, IntegrationConstant.INTEGRATION_RESULT_STATUS_NORMAL);
|
||||||
|
return apiDatas;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.engine.recruit.wrapper;
|
||||||
|
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
import com.engine.recruit.service.RecruitScheduleService;
|
||||||
|
import com.engine.recruit.service.impl.RecruitScheduleServiceImpl;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2024/03/27
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class RecruitScheduleWrapper extends Service {
|
||||||
|
private RecruitScheduleService getRecruitScheduleService(User user) {
|
||||||
|
return ServiceUtil.getService(RecruitScheduleServiceImpl.class, user);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, Object> immediatelyRun(Map<String, Object> param) {
|
||||||
|
return getRecruitScheduleService(user).immediatelyRun(param);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue