|
|
|
@ -25,6 +25,7 @@ import static com.engine.dito.ssologin.constant.DitoConstant.*;
|
|
|
|
|
public class WorkflowSyncCornJob extends BaseCronJob {
|
|
|
|
|
private static final Log logger = LogFactory.getLog(WorkflowSyncCornJob.class);
|
|
|
|
|
private String isDeleteAll;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void execute() {
|
|
|
|
|
logger.info("WorkflowSyncModeCornJob start");
|
|
|
|
@ -94,11 +95,16 @@ public class WorkflowSyncCornJob extends BaseCronJob {
|
|
|
|
|
recordSet.executeBatchSql(insertSql, insertList);
|
|
|
|
|
} else if (actionType.equals(ACTION_TYPE_UPDATE) && CollectionUtils.isNotEmpty(updateList)) {
|
|
|
|
|
String updateSql = "UPDATE uf_sync_workflow set workflowname=? where workflowselect=?";
|
|
|
|
|
String updateUserSql = "UPDATE uf_workflow_auth set workflowname=? where workflowselect=?";
|
|
|
|
|
recordSet.executeBatchSql(updateSql, updateList);
|
|
|
|
|
recordSet.executeBatchSql(updateUserSql, updateList);
|
|
|
|
|
} else if (actionType.equals(ACTION_TYPE_DELETE) && CollectionUtils.isNotEmpty(deleteList)) {
|
|
|
|
|
String deleteSql = "DELETE FROM uf_sync_workflow where workflowselect=?";
|
|
|
|
|
//同时删除人员同步建模表
|
|
|
|
|
String deleteUserSql = "DELETE FROM uf_workflow_auth where workflowselect=?";
|
|
|
|
|
for (String deleteID : deleteList) {
|
|
|
|
|
recordSet.executeUpdate(deleteSql, deleteID);
|
|
|
|
|
recordSet.executeUpdate(deleteUserSql, deleteID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|