Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
bd20ff06
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
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,发现更多精彩内容 >>
提交
bd20ff06
编写于
7月 12, 2021
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
内容管理查看记录排除cipher用户,对review表建联合索引
上级
fe7399fb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
6 deletion
+8
-6
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryViewDocument.java
...emble/control/jaxrs/document/ActionQueryViewDocument.java
+1
-1
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/Review.java
...re_entity/src/main/java/com/x/cms/core/entity/Review.java
+7
-5
未找到文件。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/ActionQueryViewDocument.java
浏览文件 @
bd20ff06
...
...
@@ -80,7 +80,7 @@ public class ActionQueryViewDocument extends BaseAction {
if
(
check
)
{
//只要不是管理员访问,则记录该文档的访问记录
if
(
!
"xadmin"
.
equalsIgnoreCase
(
personName
)
)
{
if
(
!
"xadmin"
.
equalsIgnoreCase
(
personName
)
&&
!
"cipher"
.
equalsIgnoreCase
(
personName
)
)
{
try
{
viewCount
=
documentViewRecordServiceAdv
.
addViewRecord
(
id
,
personName
);
result
.
getData
().
document
.
setViewCount
(
viewCount
);
...
...
o2server/x_cms_core_entity/src/main/java/com/x/cms/core/entity/Review.java
浏览文件 @
bd20ff06
...
...
@@ -12,6 +12,7 @@ import javax.persistence.Temporal;
import
javax.persistence.TemporalType
;
import
javax.persistence.UniqueConstraint
;
import
com.x.query.core.entity.Item
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.openjpa.persistence.jdbc.Index
;
...
...
@@ -27,13 +28,17 @@ import com.x.base.core.project.annotation.FieldDescribe;
@Table
(
name
=
PersistenceProperties
.
Review
.
table
,
uniqueConstraints
=
{
@UniqueConstraint
(
name
=
PersistenceProperties
.
Review
.
table
+
JpaObject
.
IndexNameMiddle
+
JpaObject
.
DefaultUniqueConstraintSuffix
,
columnNames
=
{
JpaObject
.
IDCOLUMN
,
JpaObject
.
CREATETIMECOLUMN
,
JpaObject
.
UPDATETIMECOLUMN
,
JpaObject
.
SEQUENCECOLUMN
})
})
JpaObject
.
CREATETIMECOLUMN
,
JpaObject
.
UPDATETIMECOLUMN
,
JpaObject
.
SEQUENCECOLUMN
})
},
indexes
=
{
@javax
.
persistence
.
Index
(
name
=
Review
.
TABLE
+
Review
.
IndexNameMiddle
+
Review
.
docId_FIELDNAME
,
columnList
=
Review
.
ColumnNamePrefix
+
Review
.
docId_FIELDNAME
+
","
+
Review
.
ColumnNamePrefix
+
Review
.
permissionObj_FIELDNAME
)})
@Inheritance
(
strategy
=
InheritanceType
.
TABLE_PER_CLASS
)
public
class
Review
extends
SliceJpaObject
{
private
static
final
long
serialVersionUID
=
-
570048661936488247L
;
p
rivate
static
final
String
TABLE
=
PersistenceProperties
.
Review
.
table
;
p
ublic
static
final
String
TABLE
=
PersistenceProperties
.
Review
.
table
;
public
String
getId
()
{
return
id
;
...
...
@@ -108,7 +113,6 @@ public class Review extends SliceJpaObject {
public
static
final
String
docId_FIELDNAME
=
"docId"
;
@FieldDescribe
(
"文档ID."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
docId_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
docId_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
docId
;
...
...
@@ -185,14 +189,12 @@ public class Review extends SliceJpaObject {
public
static
final
String
isTop_FIELDNAME
=
"isTop"
;
@FieldDescribe
(
"是否置顶"
)
@Column
(
name
=
ColumnNamePrefix
+
isTop_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
isTop_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
Boolean
isTop
=
false
;
public
static
final
String
hasIndexPic_FIELDNAME
=
"hasIndexPic"
;
@FieldDescribe
(
"是否含有首页图片"
)
@Column
(
name
=
ColumnNamePrefix
+
hasIndexPic_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
hasIndexPic_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
Boolean
hasIndexPic
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录