Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
5f581c8b
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,发现更多精彩内容 >>
提交
5f581c8b
编写于
3月 02, 2022
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
内容管理增加是否全员推送的配置
上级
0067e099
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
19 addition
and
3 deletion
+19
-3
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/queue/QueueSendDocumentNotify.java
...x/cms/assemble/control/queue/QueueSendDocumentNotify.java
+2
-1
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/CategoryInfo.java
...ity/src/main/java/com/x/cms/core/entity/CategoryInfo.java
+17
-2
未找到文件。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/queue/QueueSendDocumentNotify.java
浏览文件 @
5f581c8b
...
...
@@ -17,6 +17,7 @@ import com.x.cms.assemble.control.service.UserManagerService;
import
com.x.cms.core.entity.AppInfo
;
import
com.x.cms.core.entity.CategoryInfo
;
import
com.x.cms.core.entity.Document
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.ArrayList
;
...
...
@@ -52,7 +53,7 @@ public class QueueSendDocumentNotify extends AbstractQueue<String> {
persons
=
reviewService
.
listPermissionPersons
(
appInfo
,
category
,
document
);
if
(
ListTools
.
isNotEmpty
(
persons
))
{
//有可能是*, 一般是所有的人员标识列表
if
(
persons
.
contains
(
"*"
))
{
if
(
persons
.
contains
(
"*"
)
&&
!
BooleanUtils
.
isFalse
(
category
.
getBlankToAllNotify
())
)
{
String
topUnitName
=
document
.
getCreatorTopUnitName
();
logger
.
debug
(
">>>>>document.getCreatorTopUnitName()="
+
topUnitName
);
if
(
StringUtils
.
equalsAnyIgnoreCase
(
"cipher"
,
topUnitName
)
||
StringUtils
.
equalsAnyIgnoreCase
(
"xadmin"
,
topUnitName
))
{
...
...
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/CategoryInfo.java
浏览文件 @
5f581c8b
...
...
@@ -49,10 +49,12 @@ public class CategoryInfo extends SliceJpaObject {
private
static
final
long
serialVersionUID
=
3856138316794473794L
;
private
static
final
String
TABLE
=
PersistenceProperties
.
CategoryInfo
.
table
;
@Override
public
String
getId
()
{
return
id
;
}
@Override
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
...
...
@@ -62,6 +64,7 @@ public class CategoryInfo extends SliceJpaObject {
@Column
(
length
=
length_id
,
name
=
ColumnNamePrefix
+
id_FIELDNAME
)
private
String
id
=
createId
();
@Override
public
void
onPersist
()
throws
Exception
{
}
/*
...
...
@@ -279,16 +282,20 @@ public class CategoryInfo extends SliceJpaObject {
@FieldDescribe
(
"是否允许匿名访问."
)
@Column
(
name
=
ColumnNamePrefix
+
anonymousAble_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
anonymousAble_FIELDNAME
)
private
Boolean
anonymousAble
=
true
;
public
static
final
String
sendNotify_FIELDNAME
=
"sendNotify"
;
@FieldDescribe
(
"发布文档后是否通知阅读者:true | false"
)
@Column
(
name
=
ColumnNamePrefix
+
sendNotify_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
sendNotify_FIELDNAME
)
private
Boolean
sendNotify
=
true
;
public
static
final
String
blankToAllNotify_FIELDNAME
=
"blankToAllNotify"
;
@FieldDescribe
(
"文档发布范围为空时是否全员通知:true(默认)|false"
)
@Column
(
name
=
ColumnNamePrefix
+
blankToAllNotify_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
Boolean
blankToAllNotify
=
true
;
public
static
final
String
projection_FIELDNAME
=
"projection"
;
@FieldDescribe
(
"字段映射配置."
)
@Lob
...
...
@@ -701,6 +708,14 @@ public class CategoryInfo extends SliceJpaObject {
this
.
documentType
=
documentType
;
}
public
Boolean
getBlankToAllNotify
()
{
return
blankToAllNotify
;
}
public
void
setBlankToAllNotify
(
Boolean
blankToAllNotify
)
{
this
.
blankToAllNotify
=
blankToAllNotify
;
}
public
List
<
String
>
getViewablePersonList
()
{
return
viewablePersonList
==
null
?
new
ArrayList
<>()
:
viewablePersonList
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录