Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
wei.zhou
2021-06-24 17:10:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6cf2d925cf8f323475a2b4bba3ebb26e66c825cb
6cf2d925
1 parent
b8a9caf2
提交代码
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
34 deletions
src/main/java/com/erry/iclear/dateInterface/init/IClearApiSystemInit.java
src/main/java/com/erry/iclear/dateInterface/service/IClearApiSystemService.java
src/main/java/com/erry/iclear/dateInterface/init/IClearApiSystemInit.java
View file @
6cf2d92
...
...
@@ -25,25 +25,12 @@ public class IClearApiSystemInit implements InitializingBean, ApplicationContext
private
ApplicationContext
applicationContext
;
@Autowired
private
AppInfoService
appInfoService
;
@Autowired
private
DomesticDestinationMappingService
domesticDestinationMappingService
;
@Autowired
private
DictionaryEntriesService
dictionaryEntriesService
;
@Autowired
private
OrigplacecodeMappingService
origplacecodeMappingService
;
@Autowired
private
ChmCarryPortService
chmCarryPortService
;
private
IClearApiSystemService
iClearApiSystemService
;
@Override
public
void
setApplicationContext
(
ApplicationContext
applicationContext
)
throws
BeansException
{
this
.
applicationContext
=
applicationContext
;
}
@Override
...
...
@@ -51,26 +38,9 @@ public class IClearApiSystemInit implements InitializingBean, ApplicationContext
try
{
StopWatch
sw
=
new
StopWatch
(
"initSystemCache"
);
sw
.
start
(
"initCache"
);
log
.
info
(
"init initAppInfo start>>>>>>>>>"
);
appInfoService
.
initAppInfo
();
log
.
info
(
"init initAppInfo end>>>>>>>>>"
);
log
.
info
(
"init initDictionaryEntries start>>>>>>>>>"
);
dictionaryEntriesService
.
initDictionaryEntries
();
log
.
info
(
"init initDictionaryEntries end>>>>>>>>>"
);
log
.
info
(
"init initDomesticDestinationMapping start>>>>>>>>>"
);
domesticDestinationMappingService
.
initDomesticDestinationMapping
();
log
.
info
(
"init initDomesticDestinationMapping end>>>>>>>>>"
);
log
.
info
(
"init initOrigplacecodeMapping start>>>>>>>>>"
);
origplacecodeMappingService
.
initOrigplacecodeMapping
();
log
.
info
(
"init initOrigplacecodeMapping end>>>>>>>>>"
);
log
.
info
(
"init initChmCarryPort start>>>>>>>>>"
);
chmCarryPortService
.
initChmCarryPort
();
log
.
info
(
"init initChmCarryPort start>>>>>>>>>"
);
log
.
info
(
"init initSystemCache start>>>>>>>>>"
);
iClearApiSystemService
.
refreshAppInfoCache
();
log
.
info
(
"init initSystemCache end>>>>>>>>>"
);
sw
.
stop
();
System
.
out
.
println
(
sw
.
prettyPrint
());
...
...
src/main/java/com/erry/iclear/dateInterface/service/IClearApiSystemService.java
View file @
6cf2d92
...
...
@@ -15,11 +15,27 @@ public class IClearApiSystemService {
@Autowired
private
AppInfoService
appInfoService
;
@Autowired
private
DomesticDestinationMappingService
domesticDestinationMappingService
;
@Autowired
private
DictionaryEntriesService
dictionaryEntriesService
;
@Autowired
private
OrigplacecodeMappingService
origplacecodeMappingService
;
@Autowired
private
ChmCarryPortService
chmCarryPortService
;
/**
* 刷新缓存
*/
public
void
refreshAppInfoCache
(){
appInfoService
.
initAppInfo
();
dictionaryEntriesService
.
initDictionaryEntries
();
domesticDestinationMappingService
.
initDomesticDestinationMapping
();
origplacecodeMappingService
.
initOrigplacecodeMapping
();
chmCarryPortService
.
initChmCarryPort
();
}
...
...
Please
register
or
login
to post a comment