Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
09e47849
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,发现更多精彩内容 >>
提交
09e47849
编写于
9月 14, 2020
作者:
O
o2null
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/java11' into 'develop'
fix redies See merge request o2oa/o2oa!1620
上级
0c1cce4e
426208a1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
6 deletion
+18
-6
o2server/x_base_core_project/src/main/java/com/x/base/core/project/cache/CacheRedisImpl.java
...in/java/com/x/base/core/project/cache/CacheRedisImpl.java
+10
-4
o2server/x_base_core_project/src/main/java/com/x/base/core/project/jaxrs/WoFile.java
...t/src/main/java/com/x/base/core/project/jaxrs/WoFile.java
+3
-1
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/PersistenceProperties.java
.../x/processplatform/core/entity/PersistenceProperties.java
+4
-0
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/Record.java
...ava/com/x/processplatform/core/entity/content/Record.java
+1
-1
未找到文件。
o2server/x_base_core_project/src/main/java/com/x/base/core/project/cache/CacheRedisImpl.java
浏览文件 @
09e47849
...
...
@@ -4,6 +4,7 @@ import java.io.ByteArrayInputStream;
import
java.io.ByteArrayOutputStream
;
import
java.io.ObjectInputStream
;
import
java.io.ObjectOutputStream
;
import
java.io.Serializable
;
import
java.nio.charset.StandardCharsets
;
import
java.util.List
;
import
java.util.Optional
;
...
...
@@ -12,6 +13,7 @@ import java.util.concurrent.LinkedBlockingQueue;
import
org.apache.commons.lang3.StringUtils
;
import
com.x.base.core.project.config.Cache.Redis
;
import
com.x.base.core.project.gson.XGsonBuilder
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.jaxrs.WrapClearCacheRequest
;
...
...
@@ -62,10 +64,14 @@ public class CacheRedisImpl implements Cache {
@Override
public
Optional
<
Object
>
get
(
CacheCategory
category
,
CacheKey
key
)
throws
Exception
{
try
(
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
jedis
.
get
(
concrete
(
category
,
key
).
getBytes
(
StandardCharsets
.
UTF_8
)));
ObjectInputStream
ois
=
new
ObjectInputStream
(
bais
))
{
return
Optional
.
ofNullable
(
ois
.
readObject
());
byte
[]
bytes
=
jedis
.
get
(
concrete
(
category
,
key
).
getBytes
(
StandardCharsets
.
UTF_8
));
if
((
null
!=
bytes
)
&&
bytes
.
length
>
0
)
{
try
(
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
bytes
);
ObjectInputStream
ois
=
new
ObjectInputStream
(
bais
))
{
return
Optional
.
ofNullable
(
ois
.
readObject
());
}
}
else
{
return
Optional
.
empty
();
}
}
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/jaxrs/WoFile.java
浏览文件 @
09e47849
package
com.x.base.core.project.jaxrs
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.gson.GsonPropertyObject
;
public
abstract
class
WoFile
{
public
abstract
class
WoFile
extends
GsonPropertyObject
{
private
static
final
long
serialVersionUID
=
-
4566232046358204025L
;
@FieldDescribe
(
"说明"
)
private
String
contentDisposition
;
@FieldDescribe
(
"类型"
)
...
...
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/PersistenceProperties.java
浏览文件 @
09e47849
...
...
@@ -76,6 +76,10 @@ public final class PersistenceProperties extends AbstractPersistenceProperties {
public
static
class
DocumentVersion
{
public
static
final
String
table
=
"PP_C_DOCUMENTVERSION"
;
}
public
static
class
Snap
{
public
static
final
String
table
=
"PP_C_SNAP"
;
}
}
public
static
class
Element
{
...
...
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/Record.java
浏览文件 @
09e47849
...
...
@@ -30,7 +30,7 @@ import com.x.processplatform.core.entity.PersistenceProperties;
import
com.x.processplatform.core.entity.element.ActivityType
;
@Entity
@ContainerEntity
(
dumpSize
=
100
0
,
type
=
ContainerEntity
.
Type
.
content
,
reference
=
ContainerEntity
.
Reference
.
strong
)
@ContainerEntity
(
dumpSize
=
100
,
type
=
ContainerEntity
.
Type
.
content
,
reference
=
ContainerEntity
.
Reference
.
strong
)
@Table
(
name
=
PersistenceProperties
.
Content
.
Record
.
table
,
uniqueConstraints
=
{
@UniqueConstraint
(
name
=
PersistenceProperties
.
Content
.
Record
.
table
+
JpaObject
.
IndexNameMiddle
+
JpaObject
.
DefaultUniqueConstraintSuffix
,
columnNames
=
{
JpaObject
.
IDCOLUMN
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录