Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
faafe961
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,发现更多精彩内容 >>
提交
faafe961
编写于
9月 16, 2020
作者:
L
luojing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
缓存修改——考勤
上级
35efcd0c
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
19 addition
and
10 deletion
+19
-10
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/CacheUtil.java
...ain/java/com/x/attendance/assemble/control/CacheUtil.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendancestatisticalcycle/ActionDelete.java
...ontrol/jaxrs/attendancestatisticalcycle/ActionDelete.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendancestatisticalcycle/ActionSave.java
.../control/jaxrs/attendancestatisticalcycle/ActionSave.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendanceworkdayconfig/ActionDelete.java
...e/control/jaxrs/attendanceworkdayconfig/ActionDelete.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendanceworkdayconfig/ActionSave.java
...ble/control/jaxrs/attendanceworkdayconfig/ActionSave.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionDelete.java
...ance/assemble/control/jaxrs/selfholiday/ActionDelete.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionDeleteByWfDocId.java
...mble/control/jaxrs/selfholiday/ActionDeleteByWfDocId.java
+2
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionSave.java
...ndance/assemble/control/jaxrs/selfholiday/ActionSave.java
+3
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/service/AttendanceSelfHolidayService.java
...ssemble/control/service/AttendanceSelfHolidayService.java
+1
-1
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/service/AttendanceStatisticalCycleService.java
...le/control/service/AttendanceStatisticalCycleService.java
+1
-1
未找到文件。
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/CacheUtil.java
浏览文件 @
faafe961
...
...
@@ -2,6 +2,7 @@ package com.x.attendance.assemble.control;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
/**
* 缓存管理帮助类
...
...
@@ -10,7 +11,7 @@ import com.x.base.core.project.cache.ApplicationCache;
public
class
CacheUtil
{
public
static
<
T
extends
JpaObject
>
void
notify
(
Class
<
T
>
clz
)
throws
Exception
{
ApplicationCache
.
notify
(
clz
);
CacheManager
.
notify
(
clz
);
}
}
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendancestatisticalcycle/ActionDelete.java
浏览文件 @
faafe961
...
...
@@ -6,6 +6,7 @@ import com.x.base.core.container.EntityManagerContainer;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -30,7 +31,7 @@ public class ActionDelete extends BaseAction {
emc
.
remove
(
attendanceStatisticalCycle
,
CheckRemoveType
.
all
);
emc
.
commit
();
ApplicationCache
.
notify
(
AttendanceStatisticalCycle
.
class
);
CacheManager
.
notify
(
AttendanceStatisticalCycle
.
class
);
result
.
setData
(
new
Wo
(
id
));
}
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendancestatisticalcycle/ActionSave.java
浏览文件 @
faafe961
...
...
@@ -15,6 +15,7 @@ import com.x.base.core.entity.annotation.CheckPersistType;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -82,7 +83,7 @@ public class ActionSave extends BaseAction {
}
emc
.
commit
();
ApplicationCache
.
notify
(
AttendanceStatisticalCycle
.
class
);
CacheManager
.
notify
(
AttendanceStatisticalCycle
.
class
);
result
.
setData
(
new
Wo
(
attendanceStatisticalCycle
.
getId
()));
}
catch
(
Exception
e
)
{
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendanceworkdayconfig/ActionDelete.java
浏览文件 @
faafe961
...
...
@@ -8,6 +8,7 @@ import com.x.base.core.container.EntityManagerContainer;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -33,7 +34,7 @@ public class ActionDelete extends BaseAction {
emc
.
remove
(
attendanceWorkDayConfig
,
CheckRemoveType
.
all
);
emc
.
commit
();
ApplicationCache
.
notify
(
AttendanceWorkDayConfig
.
class
);
CacheManager
.
notify
(
AttendanceWorkDayConfig
.
class
);
result
.
setData
(
new
Wo
(
id
));
}
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/attendanceworkdayconfig/ActionSave.java
浏览文件 @
faafe961
...
...
@@ -15,6 +15,7 @@ import com.x.base.core.entity.annotation.CheckPersistType;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -97,7 +98,7 @@ public class ActionSave extends BaseAction {
emc
.
persist
(
attendanceWorkDayConfig
,
CheckPersistType
.
all
);
emc
.
commit
();
ApplicationCache
.
notify
(
AttendanceWorkDayConfig
.
class
);
CacheManager
.
notify
(
AttendanceWorkDayConfig
.
class
);
result
.
setData
(
new
Wo
(
attendanceWorkDayConfig
.
getId
()));
}
catch
(
Exception
e
)
{
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionDelete.java
浏览文件 @
faafe961
...
...
@@ -12,6 +12,7 @@ import com.x.base.core.container.EntityManagerContainer;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -39,7 +40,7 @@ public class ActionDelete extends BaseAction {
emc
.
commit
();
//清除缓存
ApplicationCache
.
notify
(
AttendanceSelfHoliday
.
class
);
CacheManager
.
notify
(
AttendanceSelfHoliday
.
class
);
result
.
setData
(
new
Wo
(
id
)
);
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionDeleteByWfDocId.java
浏览文件 @
faafe961
...
...
@@ -11,6 +11,7 @@ import com.x.base.core.container.EntityManagerContainer;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -46,7 +47,7 @@ public class ActionDeleteByWfDocId extends BaseAction {
emc
.
commit
();
//清除缓存
ApplicationCache
.
notify
(
AttendanceSelfHoliday
.
class
);
CacheManager
.
notify
(
AttendanceSelfHoliday
.
class
);
logger
.
debug
(
effectivePerson
,
">>>>>>>>>>System delete attendanceSelfHoliday success......"
);
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/jaxrs/selfholiday/ActionSave.java
浏览文件 @
faafe961
...
...
@@ -14,6 +14,7 @@ import com.x.base.core.entity.annotation.CheckPersistType;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.CacheManager
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoId
;
...
...
@@ -162,7 +163,8 @@ public class ActionSave extends BaseAction {
result
.
setData
(
new
Wo
(
attendanceSelfHoliday
.
getId
()
)
);
//清除缓存
ApplicationCache
.
notify
(
AttendanceSelfHoliday
.
class
);
//ApplicationCache.notify( AttendanceSelfHoliday.class );
CacheManager
.
notify
(
AttendanceSelfHoliday
.
class
);
//根据员工休假数据来记录与这条数据相关的统计需求记录
//new AttendanceDetailAnalyseService().recordStatisticRequireLog( attendanceSelfHoliday );
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/service/AttendanceSelfHolidayService.java
浏览文件 @
faafe961
...
...
@@ -41,7 +41,7 @@ public class AttendanceSelfHolidayService {
public
List
<
AttendanceSelfHoliday
>
listWithPersonFromCache
(
EntityManagerContainer
emc
,
String
person
,
boolean
debugger
)
throws
Exception
{
//String cacheKey = ApplicationCache.concreteCacheKey( "list#" + person );
//Element element = cache_AttendanceSelfHoliday.get(cacheKey);
CacheKey
cacheKey
=
new
CacheKey
(
"list#"
+
person
);
CacheKey
cacheKey
=
new
CacheKey
(
this
.
getClass
(),
"list"
,
person
);
Optional
<?>
optional
=
CacheManager
.
get
(
cache_AttendanceSelfHoliday
,
cacheKey
);
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/service/AttendanceStatisticalCycleService.java
浏览文件 @
faafe961
...
...
@@ -37,7 +37,7 @@ public class AttendanceStatisticalCycleService {
* @throws Exception
*/
public
Map
<
String
,
Map
<
String
,
List
<
AttendanceStatisticalCycle
>>>
getAllStatisticalCycleMapWithCache
(
Boolean
debugger
)
throws
Exception
{
CacheKey
cacheKey
=
new
CacheKey
(
"map#
all"
);
CacheKey
cacheKey
=
new
CacheKey
(
this
.
getClass
(),
"map"
,
"
all"
);
Map
<
String
,
Map
<
String
,
List
<
AttendanceStatisticalCycle
>>>
statisticalCycleMap
=
null
;
Optional
<?>
optional
=
CacheManager
.
get
(
cache_AttendanceStatisticalCycle
,
cacheKey
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录