Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
08d35cef
o2oa
项目概览
weixin_42566577
/
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,发现更多精彩内容 >>
提交
08d35cef
编写于
2月 15, 2022
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
内容管理分页列表中增加首页图片信息
上级
47c5f0a2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
80 addition
and
2 deletion
+80
-2
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryListWithFilterPaging.java
...ntrol/jaxrs/document/ActionQueryListWithFilterPaging.java
+3
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryListWithFilterPagingAdmin.java
.../jaxrs/document/ActionQueryListWithFilterPagingAdmin.java
+3
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/WrapInDocumentFilter.java
...assemble/control/jaxrs/document/WrapInDocumentFilter.java
+30
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/WrapOutDocumentList.java
.../assemble/control/jaxrs/document/WrapOutDocumentList.java
+23
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/DocumentPersistService.java
.../cms/assemble/control/service/DocumentPersistService.java
+7
-1
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/Document.java
..._entity/src/main/java/com/x/cms/core/entity/Document.java
+14
-0
未找到文件。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryListWithFilterPaging.java
浏览文件 @
08d35cef
...
...
@@ -132,6 +132,9 @@ public class ActionQueryListWithFilterPaging extends BaseAction {
if
(
wo
.
getCreatorTopUnitName
()
!=
null
&&
!
wo
.
getCreatorTopUnitName
().
isEmpty
()
)
{
wo
.
setCreatorTopUnitNameShort
(
wo
.
getCreatorTopUnitName
().
split
(
"@"
)[
0
]);
}
if
(
StringUtils
.
isNoneBlank
(
document
.
getIndexPics
()))
{
wo
.
setPictureList
(
ListTools
.
toList
(
document
.
getIndexPics
().
split
(
","
)));
}
if
(
wi
.
getNeedData
()
)
{
//需要组装数据
wo
.
setData
(
documentQueryService
.
getDocumentData
(
document
)
);
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryListWithFilterPagingAdmin.java
浏览文件 @
08d35cef
...
...
@@ -91,6 +91,9 @@ public class ActionQueryListWithFilterPagingAdmin extends BaseAction {
if
(
wo
.
getCreatorTopUnitName
()
!=
null
&&
!
wo
.
getCreatorTopUnitName
().
isEmpty
()
)
{
wo
.
setCreatorTopUnitNameShort
(
wo
.
getCreatorTopUnitName
().
split
(
"@"
)[
0
]);
}
if
(
StringUtils
.
isNoneBlank
(
document
.
getIndexPics
()))
{
wo
.
setPictureList
(
ListTools
.
toList
(
document
.
getIndexPics
().
split
(
","
)));
}
if
(
wi
.
getNeedData
()
)
{
//需要组装数据
wo
.
setData
(
documentQueryService
.
getDocumentData
(
document
)
);
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/WrapInDocumentFilter.java
浏览文件 @
08d35cef
...
...
@@ -92,6 +92,12 @@ public class WrapInDocumentFilter {
@FieldDescribe
(
"业务数据Long值02."
)
private
Long
longValue02
;
@FieldDescribe
(
"业务数据Double值01."
)
private
Double
doubleValue01
;
@FieldDescribe
(
"业务数据Double值02."
)
private
Double
doubleValue02
;
public
String
getTopFlag
()
{
return
topFlag
;
}
...
...
@@ -300,6 +306,22 @@ public class WrapInDocumentFilter {
this
.
longValue02
=
longValue02
;
}
public
Double
getDoubleValue01
()
{
return
doubleValue01
;
}
public
void
setDoubleValue01
(
Double
doubleValue01
)
{
this
.
doubleValue01
=
doubleValue01
;
}
public
Double
getDoubleValue02
()
{
return
doubleValue02
;
}
public
void
setDoubleValue02
(
Double
doubleValue02
)
{
this
.
doubleValue02
=
doubleValue02
;
}
/**
* 根据传入的查询参数,组织一个完整的QueryFilter对象
* @return
...
...
@@ -483,6 +505,14 @@ public class WrapInDocumentFilter {
queryFilter
.
addEqualsTerm
(
new
EqualsTerm
(
Document
.
longValue02_FIELDNAME
,
this
.
getLongValue02
()
)
);
}
if
(
this
.
getDoubleValue01
()
!=
null
)
{
queryFilter
.
addEqualsTerm
(
new
EqualsTerm
(
Document
.
doubleValue01_FIELDNAME
,
this
.
getDoubleValue01
()
)
);
}
if
(
this
.
getDoubleValue02
()
!=
null
)
{
queryFilter
.
addEqualsTerm
(
new
EqualsTerm
(
Document
.
doubleValue02_FIELDNAME
,
this
.
getDoubleValue02
()
)
);
}
return
queryFilter
;
}
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/WrapOutDocumentList.java
浏览文件 @
08d35cef
...
...
@@ -73,7 +73,7 @@ public class WrapOutDocumentList extends GsonPropertyObject {
@FieldDescribe
(
"是否含有首页图片"
)
private
Boolean
hasIndexPic
=
false
;
@FieldDescribe
(
"首页图片列表"
)
@FieldDescribe
(
"首页图片列表
,分页展现返回前3个图片
"
)
private
List
<
String
>
pictureList
;
@FieldDescribe
(
"文档所有数据信息."
)
...
...
@@ -103,6 +103,12 @@ public class WrapOutDocumentList extends GsonPropertyObject {
@FieldDescribe
(
"业务数据Long值02."
)
private
Long
longValue02
;
@FieldDescribe
(
"业务数据Double值01."
)
private
Double
doubleValue01
;
@FieldDescribe
(
"业务数据Double值02."
)
private
Double
doubleValue02
;
@FieldDescribe
(
"业务数据DateTime值01."
)
private
Date
dateTimeValue01
;
...
...
@@ -391,6 +397,22 @@ public class WrapOutDocumentList extends GsonPropertyObject {
this
.
longValue02
=
longValue02
;
}
public
Double
getDoubleValue01
()
{
return
doubleValue01
;
}
public
void
setDoubleValue01
(
Double
doubleValue01
)
{
this
.
doubleValue01
=
doubleValue01
;
}
public
Double
getDoubleValue02
()
{
return
doubleValue02
;
}
public
void
setDoubleValue02
(
Double
doubleValue02
)
{
this
.
doubleValue02
=
doubleValue02
;
}
public
Date
getDateTimeValue01
()
{
return
dateTimeValue01
;
}
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/DocumentPersistService.java
浏览文件 @
08d35cef
...
...
@@ -40,6 +40,7 @@ import java.util.concurrent.locks.ReentrantLock;
/**
* 对文档信息进行持久化服务类
* @author sword
*/
public
class
DocumentPersistService
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DocumentPersistService
.
class
);
...
...
@@ -51,8 +52,13 @@ public class DocumentPersistService {
if
(
document
==
null
){
throw
new
Exception
(
"document is null!"
);
}
if
(
document
.
getPictureList
()
!=
null
&&
!
document
.
getPictureList
().
isEmpty
(
))
{
if
(
ListTools
.
isNotEmpty
(
document
.
getPictureList
()
))
{
document
.
setHasIndexPic
(
true
);
if
(
document
.
getPictureList
().
size
()
>
3
){
document
.
setIndexPics
(
StringUtils
.
join
(
document
.
getPictureList
().
subList
(
0
,
2
),
","
));
}
else
{
document
.
setIndexPics
(
StringUtils
.
join
(
document
.
getPictureList
(),
","
));
}
}
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
()
)
{
document
.
setModifyTime
(
new
Date
());
...
...
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/Document.java
浏览文件 @
08d35cef
...
...
@@ -265,6 +265,12 @@ public class Document extends SliceJpaObject {
@CheckPersist
(
allowEmpty
=
true
)
private
Boolean
reviewed
=
false
;
public
static
final
String
indexPics_FIELDNAME
=
"indexPics"
;
@FieldDescribe
(
"首页图片,取自pictureList的前3个图片用于列表展示"
)
@Column
(
name
=
ColumnNamePrefix
+
indexPics_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
indexPics
;
public
static
final
String
sequenceTitle_FIELDNAME
=
"sequenceTitle"
;
@FieldDescribe
(
"用于标题排序的sequence"
)
@Column
(
length
=
JpaObject
.
length_255B
,
name
=
ColumnNamePrefix
+
sequenceTitle_FIELDNAME
)
...
...
@@ -657,6 +663,14 @@ public class Document extends SliceJpaObject {
this
.
hasIndexPic
=
hasIndexPic
;
}
public
String
getIndexPics
()
{
return
indexPics
;
}
public
void
setIndexPics
(
String
indexPics
)
{
this
.
indexPics
=
indexPics
;
}
public
String
getSummary
()
{
return
summary
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录