|
|
@@ -2,9 +2,7 @@ package com.java110.intf.common;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.java110.config.feign.FeignConfiguration;
|
|
|
-import com.java110.dto.PageDto;
|
|
|
import com.java110.dto.auditMessage.AuditMessageDto;
|
|
|
-import com.java110.dto.oaWorkflow.OaWorkflowDto;
|
|
|
import com.java110.dto.oaWorkflowXml.OaWorkflowXmlDto;
|
|
|
import com.java110.entity.audit.AuditUser;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
@@ -12,28 +10,52 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@FeignClient(name = "${java110.common-service}", configuration = {FeignConfiguration.class})
|
|
|
-@RequestMapping("/oaWorkflowUserApi")
|
|
|
-public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
+@RequestMapping("/oaWorkflowActivitiApi")
|
|
|
+public interface IOaWorkflowActivitiInnerServiceSMO {
|
|
|
|
|
|
/**
|
|
|
* 启动流程
|
|
|
*
|
|
|
+ * @param reqJson {
|
|
|
+ * createUserId:'',
|
|
|
+ * flowId:'',
|
|
|
+ * id:'',
|
|
|
+ * auditMessage:'',
|
|
|
+ * storeId:''
|
|
|
+ * }
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/startProcess", method = RequestMethod.POST)
|
|
|
JSONObject startProcess(@RequestBody JSONObject reqJson);
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param reqJson {
|
|
|
+ * createUserId:'',
|
|
|
+ * processInstanceId:'',
|
|
|
+ * nextUserId:'',
|
|
|
+ * auditCode:'',
|
|
|
+ * storeId:'',
|
|
|
+ * id:'',
|
|
|
+ * flowId:''
|
|
|
+ * }
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@RequestMapping(value = "/autoFinishFirstTask", method = RequestMethod.POST)
|
|
|
boolean autoFinishFirstTask(@RequestBody JSONObject reqJson);
|
|
|
|
|
|
/**
|
|
|
* 查询用户任务数
|
|
|
*
|
|
|
- * @param user
|
|
|
+ * @param user {
|
|
|
+ * flowId:'',
|
|
|
+ * userId:''
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getUserTaskCount", method = RequestMethod.POST)
|
|
|
@@ -42,7 +64,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 获取用户任务
|
|
|
*
|
|
|
- * @param user 用户信息
|
|
|
+ * @param user 用户信息 {
|
|
|
+ * flowId:'',
|
|
|
+ * userId:''
|
|
|
+ * }
|
|
|
*/
|
|
|
@RequestMapping(value = "/getUserTasks", method = RequestMethod.POST)
|
|
|
List<JSONObject> getUserTasks(@RequestBody AuditUser user);
|
|
|
@@ -50,7 +75,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 查询用户处理任务数
|
|
|
*
|
|
|
- * @param user
|
|
|
+ * @param user {
|
|
|
+ * flowId:'',
|
|
|
+ * userId:''
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getUserHistoryTaskCount", method = RequestMethod.POST)
|
|
|
@@ -59,7 +87,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 获取用户处理审批的任务
|
|
|
*
|
|
|
- * @param user 用户信息
|
|
|
+ * @param user 用户信息{
|
|
|
+ * flowId:'',
|
|
|
+ * userId:''
|
|
|
+ *}
|
|
|
*/
|
|
|
@RequestMapping(value = "/getUserHistoryTasks", method = RequestMethod.POST)
|
|
|
List<JSONObject> getUserHistoryTasks(@RequestBody AuditUser user);
|
|
|
@@ -67,7 +98,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 查询用户任务数
|
|
|
*
|
|
|
- * @param user
|
|
|
+ * @param user{
|
|
|
+ * userId:'',
|
|
|
+ * processDefinitionkeys:[]
|
|
|
+ *}
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getDefinitionKeysUserTaskCount", method = RequestMethod.POST)
|
|
|
@@ -76,7 +110,12 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 获取用户任务
|
|
|
*
|
|
|
- * @param user 用户信息
|
|
|
+ * @param user 用户信息{
|
|
|
+ * userId:'',
|
|
|
+ * page:1,
|
|
|
+ * row:10,
|
|
|
+ * processDefinitionkeys:[]
|
|
|
+ *}
|
|
|
*/
|
|
|
@RequestMapping(value = "/getDefinitionKeysUserTasks", method = RequestMethod.POST)
|
|
|
List<JSONObject> getDefinitionKeysUserTasks(@RequestBody AuditUser user) ;
|
|
|
@@ -84,7 +123,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 查询用户任务数
|
|
|
*
|
|
|
- * @param user
|
|
|
+ * @param user{
|
|
|
+ * userId:'',
|
|
|
+ * processDefinitionkeys:[]
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getDefinitionKeysUserHistoryTaskCount", method = RequestMethod.POST)
|
|
|
@@ -93,7 +135,12 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 获取用户审批的任务
|
|
|
*
|
|
|
- * @param user 用户信息
|
|
|
+ * @param user 用户信息{
|
|
|
+ * userId:'',
|
|
|
+ * page:1,
|
|
|
+ * row:10,
|
|
|
+ * processDefinitionkeys:[]
|
|
|
+ * }
|
|
|
*/
|
|
|
@RequestMapping(value = "/getDefinitionKeysUserHistoryTasks", method = RequestMethod.POST)
|
|
|
List<JSONObject> getDefinitionKeysUserHistoryTasks(@RequestBody AuditUser user) ;
|
|
|
@@ -102,7 +149,15 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 处理任务
|
|
|
*
|
|
|
- * @param reqJson
|
|
|
+ * @param reqJson {
|
|
|
+ * taskId:'',
|
|
|
+ * nextUserId:'',
|
|
|
+ * auditMessage:'',
|
|
|
+ * auditCode:'',
|
|
|
+ * id:'',
|
|
|
+ * storeId:'',
|
|
|
+ * flowId:''
|
|
|
+ * }
|
|
|
* @return true 为流程结束 false 为流程没有结束
|
|
|
*/
|
|
|
@RequestMapping(value = "/completeTask", method = RequestMethod.POST)
|
|
|
@@ -111,7 +166,16 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 处理任务
|
|
|
*
|
|
|
- * @param reqJson
|
|
|
+ * @param reqJson {
|
|
|
+ * storeId:'',
|
|
|
+ * id:'',
|
|
|
+ * nextUserId:'',
|
|
|
+ * taskId:'',
|
|
|
+ * auditMessage:'',
|
|
|
+ * flowId:'',
|
|
|
+ * storeId:'',
|
|
|
+ *
|
|
|
+ * }
|
|
|
* @return true 为流程结束 false 为流程没有结束
|
|
|
*/
|
|
|
@RequestMapping(value = "/changeTaskToOtherUser", method = RequestMethod.POST)
|
|
|
@@ -120,7 +184,12 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 处理任务
|
|
|
*
|
|
|
- * @param reqJson
|
|
|
+ * @param reqJson {
|
|
|
+ * taskId:'',
|
|
|
+ * nextUserId:'',
|
|
|
+ * auditMessage:'',
|
|
|
+ * auditCode:'',
|
|
|
+ * }
|
|
|
* @return true 为流程结束 false 为流程没有结束
|
|
|
*/
|
|
|
@RequestMapping(value = "/goBackTask", method = RequestMethod.POST)
|
|
|
@@ -130,7 +199,10 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 查询批注信息
|
|
|
*
|
|
|
- * @param reqJson
|
|
|
+ * @param reqJson {
|
|
|
+ * taskId:'',
|
|
|
+ *
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getAuditMessage", method = RequestMethod.POST)
|
|
|
@@ -139,18 +211,31 @@ public interface IOaWorkflowUserInnerServiceSMO {
|
|
|
/**
|
|
|
* 获取任务当前处理人
|
|
|
*
|
|
|
- * @param reqJson
|
|
|
+ * @param reqJson{
|
|
|
+ * id:'',
|
|
|
+ *
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getTaskCurrentUser", method = RequestMethod.POST)
|
|
|
JSONObject getTaskCurrentUser(@RequestBody JSONObject reqJson);
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param reqJson{
|
|
|
+ * taskId:'',
|
|
|
+ * startUserId:''
|
|
|
+ * }
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@RequestMapping(value = "/nextAllNodeTaskList", method = RequestMethod.POST)
|
|
|
List<JSONObject> nextAllNodeTaskList(@RequestBody JSONObject reqJson);
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @param oaWorkflowXmlDto
|
|
|
+ * @param oaWorkflowXmlDto {
|
|
|
+ * bpmnXml:''
|
|
|
+ * }
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/queryFirstAuditStaff", method = RequestMethod.POST)
|