Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
1a946280
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
333
Star
10
Fork
6
代码
文件
提交
分支
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,体验更适合开发者的 AI 搜索 >>
提交
1a946280
编写于
12月 04, 2023
作者:
O
o2null
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置manualTaskIdentityText
上级
164d1d3d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
40 addition
and
19 deletion
+40
-19
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/Work.java
.../java/com/x/processplatform/core/entity/content/Work.java
+28
-19
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/WorkProperties.java
...x/processplatform/core/entity/content/WorkProperties.java
+11
-0
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/manual/ManualProcessor.java
.../service/processing/processor/manual/ManualProcessor.java
+1
-0
未找到文件。
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/Work.java
浏览文件 @
1a946280
...
...
@@ -43,11 +43,11 @@ import com.x.base.core.project.gson.XGsonBuilder;
import
com.x.base.core.project.organization.OrganizationDefinition
;
import
com.x.base.core.project.processplatform.ManualTaskIdentityMatrix
;
import
com.x.base.core.project.tools.DateTools
;
import
com.x.base.core.project.tools.ListTools
;
import
com.x.base.core.project.tools.StringTools
;
import
com.x.processplatform.core.entity.PersistenceProperties
;
import
com.x.processplatform.core.entity.content.WorkProperties.GoBackStore
;
import
com.x.processplatform.core.entity.element.ActivityType
;
import
com.x.processplatform.core.entity.ticket.Ticket
;
import
com.x.processplatform.core.entity.ticket.Tickets
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
...
@@ -99,13 +99,11 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
if
(
StringTools
.
utf8Length
(
this
.
getProperties
().
getTitle
())
>
length_255B
)
{
this
.
title
=
StringTools
.
utf8SubString
(
this
.
getProperties
().
getTitle
(),
length_255B
-
3
)
+
"..."
;
}
// 填入处理人文本
if
(
ListTools
.
isEmpty
(
this
.
getManualTaskIdentityMatrix
().
flat
()))
{
if
(
null
==
this
.
getTickets
())
{
this
.
manualTaskIdentityText
=
""
;
}
else
{
String
text
=
StringUtils
.
join
(
OrganizationDefinition
.
name
(
this
.
getManualTaskIdentityMatrix
().
flat
()),
","
);
text
=
StringTools
.
utf8SubString
(
text
,
length_255B
);
this
.
setManualTaskIdentityText
(
text
);
this
.
setManualTaskIdentityText
(
StringUtils
.
join
(
this
.
getTickets
().
bubble
().
stream
()
.
map
(
Ticket:
:
distinguishedName
).
map
(
OrganizationDefinition:
:
name
),
","
));
}
}
...
...
@@ -128,6 +126,7 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
this
.
serviceValue
=
this
.
getProperties
().
getServiceValue
();
this
.
manualEmpowerMap
=
this
.
getProperties
().
getManualEmpowerMap
();
this
.
forceRouteEnable
=
this
.
getProperties
().
getForceRouteEnable
();
this
.
manualTaskIdentityText
=
this
.
getProperties
().
getManualTaskIdentityText
();
}
}
...
...
@@ -306,6 +305,18 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
this
.
forceRouteEnable
=
forceRouteEnable
;
}
public
String
getManualTaskIdentityText
()
{
if
((
null
==
this
.
manualTaskIdentityText
)
&&
(
null
!=
this
.
properties
))
{
this
.
manualTaskIdentityText
=
this
.
getProperties
().
getManualTaskIdentityText
();
}
return
manualTaskIdentityText
;
}
public
void
setManualTaskIdentityText
(
String
manualTaskIdentityText
)
{
this
.
getProperties
().
setManualTaskIdentityText
(
manualTaskIdentityText
);
this
.
manualTaskIdentityText
=
manualTaskIdentityText
;
}
public
static
final
String
MANUALEMPOWERMAP_FIELDNAME
=
"manualEmpowerMap"
;
@Transient
@Deprecated
(
since
=
"8.2"
,
forRemoval
=
true
)
...
...
@@ -372,6 +383,11 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
@FieldDescribe
(
"强制路由."
)
private
Boolean
forceRouteEnable
;
public
static
final
String
MANUALTASKIDENTITYTEXT_FIELDNAME
=
"manualTaskIdentityText"
;
@Transient
@FieldDescribe
(
"当前处理人身份合并文本,用','分割,此字段仅用于显示当前工作的处理人,不索引."
)
private
String
manualTaskIdentityText
;
public
static
final
String
job_FIELDNAME
=
"job"
;
@FieldDescribe
(
"工作"
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
job_FIELDNAME
)
...
...
@@ -560,11 +576,12 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
@CheckPersist
(
allowEmpty
=
true
)
private
Boolean
beforeExecuted
;
public
static
final
String
MANUALTASKIDENTITYTEXT_FIELDNAME
=
"manualTaskIdentityText"
;
@FieldDescribe
(
"当前处理人身份合并文本,用','分割,超长截断,此字段仅用于显示当前工作的处理人,不索引."
)
@Column
(
length
=
JpaObject
.
length_255B
,
name
=
ColumnNamePrefix
+
MANUALTASKIDENTITYTEXT_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
manualTaskIdentityText
;
// @Deprecated(since = "8.2,使用tickets后将删除此字段.", forRemoval = true)
// public static final String MANUALTASKIDENTITYTEXT_FIELDNAME = "manualTaskIdentityText";
// @FieldDescribe("当前处理人身份合并文本,用','分割,超长截断,此字段仅用于显示当前工作的处理人,不索引.")
// @Column(length = JpaObject.length_255B, name = ColumnNamePrefix + MANUALTASKIDENTITYTEXT_FIELDNAME)
// @CheckPersist(allowEmpty = true)
// private String manualTaskIdentityText;
/** Split Attribute */
public
static
final
String
splitting_FIELDNAME
=
"splitting"
;
...
...
@@ -1176,14 +1193,6 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
this
.
dataChanged
=
dataChanged
;
}
public
String
getManualTaskIdentityText
()
{
return
manualTaskIdentityText
;
}
public
void
setManualTaskIdentityText
(
String
manualTaskIdentityText
)
{
this
.
manualTaskIdentityText
=
manualTaskIdentityText
;
}
public
String
getStringValue01
()
{
return
stringValue01
;
}
...
...
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/WorkProperties.java
浏览文件 @
1a946280
...
...
@@ -64,6 +64,17 @@ public class WorkProperties extends JsonProperties {
@FieldDescribe
(
"强制路由."
)
private
Boolean
forceRouteEnable
;
@FieldDescribe
(
"当前处理人身份合并文本,用','分割,此字段仅用于显示当前工作的处理人,不索引."
)
private
String
manualTaskIdentityText
;
public
String
getManualTaskIdentityText
()
{
return
manualTaskIdentityText
;
}
public
void
setManualTaskIdentityText
(
String
manualTaskIdentityText
)
{
this
.
manualTaskIdentityText
=
manualTaskIdentityText
;
}
public
Boolean
getForceRouteEnable
()
{
return
forceRouteEnable
;
}
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/manual/ManualProcessor.java
浏览文件 @
1a946280
...
...
@@ -28,6 +28,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.apache.commons.lang3.tuple.Triple
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.project.bean.tuple.Pair
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.logger.Logger
;
...
...
NoSubject
@NoSubject
mentioned in commit
8873bdae
·
12月 04, 2023
mentioned in commit
8873bdae
mentioned in commit 8873bdaefc30c1fcfcaffd7f13fea1f32ec7e475
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录