夜班天数计算
parent
aae717c314
commit
1e146c826e
@ -0,0 +1,13 @@
|
|||||||
|
package com.api.xmgsecond.web;
|
||||||
|
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2025/5/16 15:13
|
||||||
|
* @Description: 考勤关账
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Path("/xmgsecond/kq/cube")
|
||||||
|
public class KqCloseAccountAction extends com.engine.xmgsecond.web.KqCloseAccountAction{
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.engine.xmgsecond.service;
|
||||||
|
|
||||||
|
import com.engine.workflow.entity.publicApi.PAResponseEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2025/5/16 15:17
|
||||||
|
* @Description: TODO
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public interface KqCloseAccountService {
|
||||||
|
|
||||||
|
PAResponseEntity closeAccount(Map<String, Object> param);
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.engine.xmgsecond.service.impl;
|
||||||
|
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
import com.engine.workflow.entity.publicApi.PAResponseEntity;
|
||||||
|
import com.engine.workflow.entity.publicApi.ReqOperateRequestEntity;
|
||||||
|
import com.engine.workflow.publicApi.WorkflowRequestOperatePA;
|
||||||
|
import com.engine.workflow.publicApi.impl.WorkflowRequestOperatePAImpl;
|
||||||
|
import com.engine.xmgsecond.service.KqCloseAccountService;
|
||||||
|
import weaver.general.BaseBean;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2025/5/16 15:18
|
||||||
|
* @Description: TODO
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class KqCloseAccountServiceImpl extends Service implements KqCloseAccountService {
|
||||||
|
|
||||||
|
private WorkflowRequestOperatePA getRequestOperatePA() {
|
||||||
|
return ServiceUtil.getService(WorkflowRequestOperatePAImpl.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PAResponseEntity closeAccount(Map<String, Object> param) {
|
||||||
|
|
||||||
|
WorkflowRequestOperatePA operatePA = getRequestOperatePA();
|
||||||
|
|
||||||
|
ReqOperateRequestEntity requestParam = new ReqOperateRequestEntity();
|
||||||
|
|
||||||
|
//流程干预
|
||||||
|
// requestParam.setRequestId(1681681);
|
||||||
|
// requestParam.setSrc("intervenor");
|
||||||
|
// requestParam.setWorkflowId(95);
|
||||||
|
// requestParam.setNodeId(392);
|
||||||
|
// requestParam.setRemark("考勤干预");
|
||||||
|
// requestParam.setEnableIntervenor(true);
|
||||||
|
// requestParam.setSubmitNodeId(391);
|
||||||
|
// requestParam.setIntervenorid("1");
|
||||||
|
// PAResponseEntity paResponseEntity = operatePA.doIntervenor(user, requestParam);
|
||||||
|
|
||||||
|
|
||||||
|
//强制归档 DoArchivingCmd
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.engine.xmgsecond.web;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
|
import com.engine.common.util.ParamUtil;
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.xmgsecond.service.KqCloseAccountService;
|
||||||
|
import com.engine.xmgsecond.service.impl.KqCloseAccountServiceImpl;
|
||||||
|
import weaver.hrm.HrmUserVarify;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.ws.rs.GET;
|
||||||
|
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.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2025/5/16 15:15
|
||||||
|
* @Description: TODO
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class KqCloseAccountAction {
|
||||||
|
|
||||||
|
private KqCloseAccountService getService(User user) {
|
||||||
|
return ServiceUtil.getService(KqCloseAccountServiceImpl.class, user);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/closeAccount")
|
||||||
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
|
public String closeAccount(@Context HttpServletRequest request, @Context HttpServletResponse response){
|
||||||
|
Map<String, Object> data = new HashMap<>(8);
|
||||||
|
try {
|
||||||
|
User user = HrmUserVarify.getUser(request, response);
|
||||||
|
data.put("data",getService(user).closeAccount(ParamUtil.request2Map(request)));
|
||||||
|
data.put("code", 200);
|
||||||
|
} catch (Exception e) {
|
||||||
|
data.put("code", 500);
|
||||||
|
data.put("msg", "catch exception : " + e.getMessage());
|
||||||
|
}
|
||||||
|
return JSONObject.toJSONString(data, SerializerFeature.DisableCircularReferenceDetect);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package weaver.interfaces.xmgsecond;
|
||||||
|
|
||||||
|
import weaver.general.BaseBean;
|
||||||
|
import weaver.interfaces.workflow.action.Action;
|
||||||
|
import weaver.soa.workflow.request.RequestInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2025/5/16 14:25
|
||||||
|
* @Description: TODO
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class TestWorkAction implements Action {
|
||||||
|
@Override
|
||||||
|
public String execute(RequestInfo requestInfo) {
|
||||||
|
|
||||||
|
BaseBean bb = new BaseBean();
|
||||||
|
|
||||||
|
bb.writeLog("TestWorkAction1: 执行流程节点附件操作");
|
||||||
|
|
||||||
|
return Action.SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue