Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
d9fafa6a
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d9fafa6a
编写于
4月 20, 2020
作者:
Z
Zhou Rui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
appendtask需要调用empower
上级
e9f5d6e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
5 deletion
+13
-5
o2server/configSample/processPlatform.json
o2server/configSample/processPlatform.json
+1
-1
o2server/configSample/qiyeweixin.json
o2server/configSample/qiyeweixin.json
+7
-1
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/jaxrs/task/ActionAppend.java
...splatform/service/processing/jaxrs/task/ActionAppend.java
+5
-3
未找到文件。
o2server/configSample/processPlatform.json
浏览文件 @
d9fafa6a
...
...
@@ -36,7 +36,7 @@
"deleteDraft"
:
{
"enable"
:
false
,
"cron"
:
"0 0 20 * * ?"
,
"thresholdMinutes"
:
14
400.0
,
"thresholdMinutes"
:
86
400.0
,
"###enable"
:
"是否启用###"
,
"###cron"
:
"定时cron表达式###"
,
"###thresholdMinutes"
:
"设定阈值,如果超过这个时间认为是可以删除的草稿,默认为10天.###"
...
...
o2server/configSample/qiyeweixin.json
浏览文件 @
d9fafa6a
...
...
@@ -13,6 +13,9 @@
"messageRedirectPortal"
:
""
,
"messageEnable"
:
false
,
"scanLoginEnable"
:
false
,
"attendanceSyncEnable"
:
false
,
"attendanceSyncAgentId"
:
""
,
"attendanceSyncSecret"
:
""
,
"###enable"
:
"是否启用.###"
,
"###syncCron"
:
"拉入同步cron,默认每10分钟同步一次.###"
,
"###forceSyncCron"
:
"强制拉入同步cron,默认在每天的8点和12点强制进行同步.###"
,
...
...
@@ -26,5 +29,8 @@
"###workUrl"
:
"企业微信消息打开工作的url地址,如:http://dev.o2oa.net/x_desktop/###"
,
"###messageRedirectPortal"
:
"企业微信消息处理完成后跳转到特定的门户页面的Id###"
,
"###messageEnable"
:
"推送消息到企业微信###"
,
"###scanLoginEnable"
:
"企业微信扫码登录###"
"###scanLoginEnable"
:
"企业微信扫码登录###"
,
"###attendanceSyncEnable"
:
"是否启用考勤信息###"
,
"###attendanceSyncAgentId"
:
"企业微信考勤打卡应用id###"
,
"###attendanceSyncSecret"
:
"企业微信考勤打卡应用secret###"
}
\ No newline at end of file
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/jaxrs/task/ActionAppend.java
浏览文件 @
d9fafa6a
...
...
@@ -31,6 +31,7 @@ import com.x.processplatform.core.entity.content.Work;
import
com.x.processplatform.core.entity.element.Activity
;
import
com.x.processplatform.core.entity.element.ActivityType
;
import
com.x.processplatform.core.entity.element.Manual
;
import
com.x.processplatform.core.entity.element.Process
;
import
com.x.processplatform.core.entity.element.Route
;
import
com.x.processplatform.core.express.service.processing.jaxrs.task.WrapAppend
;
import
com.x.processplatform.service.processing.ApplicationDictHelper
;
...
...
@@ -104,8 +105,9 @@ class ActionAppend extends BaseAction {
}
}
}
Process
process
=
business
.
element
().
get
(
task
.
getProcess
(),
Process
.
class
);
identities
=
business
.
organization
().
identity
().
list
(
ListTools
.
trim
(
identities
,
true
,
true
));
TaskIdentities
taskIdentities
=
empower
(
business
,
task
,
identities
);
TaskIdentities
taskIdentities
=
empower
(
business
,
process
,
task
,
identities
);
identities
=
taskIdentities
.
identities
();
if
(
ListTools
.
isNotEmpty
(
identities
))
{
List
<
TaskCompleted
>
os
=
emc
.
listEqualAndInAndNotEqual
(
TaskCompleted
.
class
,
...
...
@@ -160,10 +162,10 @@ class ActionAppend extends BaseAction {
return
scriptContext
;
}
private
TaskIdentities
empower
(
Business
business
,
Task
task
,
List
<
String
>
identities
)
throws
Exception
{
private
TaskIdentities
empower
(
Business
business
,
Process
process
,
Task
task
,
List
<
String
>
identities
)
throws
Exception
{
TaskIdentities
taskIdentities
=
new
TaskIdentities
();
taskIdentities
.
addIdentities
(
identities
);
taskIdentities
.
empower
(
business
.
organization
().
empower
().
listWithIdentityObject
(
task
.
getApplication
(),
taskIdentities
.
empower
(
business
.
organization
().
empower
().
listWithIdentityObject
(
task
.
getApplication
(),
process
.
getEdition
(),
task
.
getProcess
(),
task
.
getWork
(),
identities
));
return
taskIdentities
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录