|
|
|
@ -96,16 +96,14 @@ public class WorkflowSyncCronJob extends BaseCronJob {
|
|
|
|
|
//区分有效和无效的流程
|
|
|
|
|
while (recordSet.next()) {
|
|
|
|
|
String effective = recordSet.getString("effective");
|
|
|
|
|
String flowcode = recordSet.getString("flowcode");
|
|
|
|
|
String flowname = recordSet.getString("flowname");
|
|
|
|
|
if (EFFECTIVE_YES.equals(effective)) {
|
|
|
|
|
String flowcode = recordSet.getString("flowcode");
|
|
|
|
|
String flowname = recordSet.getString("flowname");
|
|
|
|
|
//拼接有效流程请求参数
|
|
|
|
|
concatWorkflowCondition(cataCode, flowcode, flowname, ACTION_TYPE_ADD, addWorkflowList);
|
|
|
|
|
//有效流程关联的人员参数拼接
|
|
|
|
|
getUserConditionByWorkflow(cataCode, flowcode, flowname, ACTION_TYPE_ADD, addUserList, timeCondition);
|
|
|
|
|
} else if (EFFECTIVE_NO.equals(effective)) {
|
|
|
|
|
String flowcode = recordSet.getString("flowcode");
|
|
|
|
|
String flowname = recordSet.getString("flowname");
|
|
|
|
|
//拼接无效流程请求参数
|
|
|
|
|
concatWorkflowCondition(cataCode, flowcode, flowname, ACTION_TYPE_DELETE, delWorkflowList);
|
|
|
|
|
//无效流程关联的人员参数拼接
|
|
|
|
@ -144,6 +142,7 @@ public class WorkflowSyncCronJob extends BaseCronJob {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 组装流程同步API请求参数
|
|
|
|
|
*
|
|
|
|
|
* @param cataCode
|
|
|
|
|
* @param flowcode
|
|
|
|
|
* @param flowname
|
|
|
|
@ -163,6 +162,7 @@ public class WorkflowSyncCronJob extends BaseCronJob {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 组装人员同步API请求参数
|
|
|
|
|
*
|
|
|
|
|
* @param cataCode
|
|
|
|
|
* @param flowcode
|
|
|
|
|
* @param flowname
|
|
|
|
|