Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
22ef8ce7
Commit
22ef8ce7
authored
Feb 17, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分一键部署功能
parent
e36f0838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowBusinessServiceImpl.java
...module/window/service/impl/WindowBusinessServiceImpl.java
+24
-24
No files found.
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowBusinessServiceImpl.java
View file @
22ef8ce7
...
...
@@ -210,30 +210,29 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
private
void
updateWindowBusinessCacheResult
(
WindowBusinessEntity
entity
,
Context
context
)
{
Long
siteBusinessId
=
entity
.
getSiteBusinessId
();
String
cacheResult
=
cacheService
.
get
(
KEY_SEARCH_SITEBUSINESSID_CACHE
+
siteBusinessId
,
String
.
class
);
if
(!
ObjectUtils
.
isEmpty
(
cacheResult
))
{
//更新查询结果
//查询数据库
PageInfo
pageInfo
=
new
PageInfo
();
pageInfo
.
setPrePageResult
(-
1
);
Result
<
WindowBusinessEntity
>
result
=
this
.
dao
.
getList
(
new
WindowBusinessQuery
().
siteBusinessId
(
siteBusinessId
),
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
if
(!
ObjectUtils
.
isEmpty
(
result
.
getList
()))
{
cacheService
.
set
(
KEY_SEARCH_SITEBUSINESSID_CACHE
+
siteBusinessId
,
JSON
.
toJSONString
(
result
),
KEY_SEARCH_TIMEOUTT_CACHE
);
}
//更新查询结果
//查询数据库
PageInfo
pageInfo
=
new
PageInfo
();
pageInfo
.
setPrePageResult
(-
1
);
Result
<
WindowBusinessEntity
>
result
=
this
.
dao
.
getList
(
new
WindowBusinessQuery
().
siteBusinessId
(
siteBusinessId
),
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
if
(!
ObjectUtils
.
isEmpty
(
result
.
getList
()))
{
cacheService
.
set
(
KEY_SEARCH_SITEBUSINESSID_CACHE
+
siteBusinessId
,
JSON
.
toJSONString
(
result
),
KEY_SEARCH_TIMEOUTT_CACHE
);
}
Long
windowId
=
entity
.
getWindowId
();
cacheResult
=
cacheService
.
get
(
KEY_SEARCH_WINDOWID_CACHE
+
windowId
,
String
.
class
);
if
(!
ObjectUtils
.
isEmpty
(
cacheResult
))
{
//查询数据库
PageInfo
pageInfo
=
new
PageInfo
();
pageInfo
.
setPrePageResult
(-
1
);
Result
<
WindowBusinessEntity
>
result
=
this
.
dao
.
getList
(
new
WindowBusinessQuery
().
siteBusinessId
(
siteBusinessId
),
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
//无查询结果的不做保存
if
(!
ObjectUtils
.
isEmpty
(
result
.
getList
()))
{
cacheService
.
set
(
KEY_SEARCH_WINDOWID_CACHE
+
windowId
,
JSON
.
toJSONString
(
result
),
KEY_SEARCH_TIMEOUTT_CACHE
);
}
cacheService
.
get
(
KEY_SEARCH_WINDOWID_CACHE
+
windowId
,
String
.
class
);
//查询数据库
pageInfo
=
new
PageInfo
();
pageInfo
.
setPrePageResult
(-
1
);
result
=
this
.
dao
.
getList
(
new
WindowBusinessQuery
().
siteBusinessId
(
siteBusinessId
),
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
//无查询结果的不做保存
if
(!
ObjectUtils
.
isEmpty
(
result
.
getList
()))
{
cacheService
.
set
(
KEY_SEARCH_WINDOWID_CACHE
+
windowId
,
JSON
.
toJSONString
(
result
),
KEY_SEARCH_TIMEOUTT_CACHE
);
}
//窗口列表更新
...
...
@@ -248,15 +247,16 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
windowBusinessQuery
.
setWindowIdList
(
windowIdlist
);
//查询数据库
PageInfo
pageInfo
=
new
PageInfo
();
pageInfo
=
new
PageInfo
();
pageInfo
.
setPrePageResult
(-
1
);
Result
<
WindowBusinessEntity
>
result
=
this
.
dao
.
getList
(
windowBusinessQuery
,
pageInfo
);
result
=
this
.
dao
.
getList
(
windowBusinessQuery
,
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
if
(!
ObjectUtils
.
isEmpty
(
result
.
getList
()))
{
String
windowIdlistStr
=
windowIdlist
.
stream
().
map
(
String:
:
valueOf
).
collect
(
Collectors
.
joining
(
"#"
));
cacheService
.
set
(
KEY_SEARCH_WINDOWID_LIST_CACHE
+
windowIdlistStr
,
JSON
.
toJSONString
(
result
),
KEY_SEARCH_TIMEOUTT_CACHE
);
}
else
{
}
}
...
...
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