Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
佟礼
HYH.APSJ
Commits
bb00017a
Commit
bb00017a
authored
Apr 03, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存修改
parent
25c58c5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ChromosomeDataService.java
...in/java/com/aps/service/common/ChromosomeDataService.java
+8
-2
No files found.
src/main/java/com/aps/service/common/ChromosomeDataService.java
View file @
bb00017a
...
@@ -13,6 +13,7 @@ import com.aps.entity.basic.Machine;
...
@@ -13,6 +13,7 @@ import com.aps.entity.basic.Machine;
import
com.aps.entity.basic.MachineOption
;
import
com.aps.entity.basic.MachineOption
;
import
com.aps.entity.basic.Order
;
import
com.aps.entity.basic.Order
;
import
com.aps.entity.common.*
;
import
com.aps.entity.common.*
;
import
com.aps.entity.Schedule.SceneChromsome
;
import
com.aps.service.plan.PlanResultService
;
import
com.aps.service.plan.PlanResultService
;
import
com.aps.service.plan.SceneService
;
import
com.aps.service.plan.SceneService
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
...
@@ -1253,8 +1254,13 @@ public class ChromosomeDataService {
...
@@ -1253,8 +1254,13 @@ public class ChromosomeDataService {
* 查询文件数据
* 查询文件数据
*/
*/
private
Object
queryFileData
(
String
sceneId
,
EntityConfig
config
)
{
private
Object
queryFileData
(
String
sceneId
,
EntityConfig
config
)
{
// 生成缓存键
SceneChromsome
sceneChromsome
=
sceneService
.
getSceneChromsome
(
sceneId
);
String
cacheKey
=
sceneId
+
":"
+
config
.
getEntityName
()
+
":"
+
config
.
getFieldName
();
String
versionTag
=
sceneChromsome
!=
null
&&
sceneChromsome
.
getVersion
()
!=
null
?
sceneChromsome
.
getVersion
().
toString
()
:
"base"
;
// 生成缓存键(包含版本号,避免读取到旧场景缓存)
String
cacheKey
=
sceneId
+
":"
+
versionTag
+
":"
+
config
.
getEntityName
()
+
":"
+
config
.
getFieldName
();
// 先从缓存中获取
// 先从缓存中获取
Object
cachedData
=
fileDataCache
.
get
(
cacheKey
);
Object
cachedData
=
fileDataCache
.
get
(
cacheKey
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment