Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
be630f9c
Commit
be630f9c
authored
Dec 01, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化统计表修改异步
parent
313976ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+7
-8
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
be630f9c
...
@@ -108,6 +108,7 @@ import java.text.SimpleDateFormat;
...
@@ -108,6 +108,7 @@ import java.text.SimpleDateFormat;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.time.ZoneId
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.Executors
;
import
java.util.function.Function
;
import
java.util.function.Function
;
...
@@ -736,11 +737,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -736,11 +737,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
s
=
s
.
replace
(
"-"
,
""
);
s
=
s
.
replace
(
"-"
,
""
);
createNeedTime
(
P_STATIC_DAY
,
DB
,
P_STATIC_DAY
+
"_"
+
s
);
createNeedTime
(
P_STATIC_DAY
,
DB
,
P_STATIC_DAY
+
"_"
+
s
);
List
<
StaticDay
>
staticDay
=
planTaskMapper
.
findStaticDay
();
List
<
StaticDay
>
staticDay
=
planTaskMapper
.
findStaticDay
();
for
(
StaticDay
st
:
staticDay
Iterable
join
=
CompletableFuture
.
supplyAsync
(()
->
repositoryTs
.
batchSave
(
staticDay
)).
join
();
)
{
if
(!
ValidationUtil
.
isEmpty
(
join
))
{
planTaskMapper
.
insertAll
(
P_STATIC_DAY
+
"_"
+
s
,
st
);
planTaskMapper
.
deleteDate
(
P_STATIC_DAY
);
}
}
planTaskMapper
.
deleteDate
(
P_STATIC_DAY
);
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -750,11 +750,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -750,11 +750,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
String
s
=
DateUtils
.
dateFormat
(
oldDate
,
DateUtils
.
YEAR_PATTERN
);
String
s
=
DateUtils
.
dateFormat
(
oldDate
,
DateUtils
.
YEAR_PATTERN
);
createNeedTime
(
P_STATIC_WEEK
,
DB
,
P_STATIC_WEEK
+
"_"
+
s
);
createNeedTime
(
P_STATIC_WEEK
,
DB
,
P_STATIC_WEEK
+
"_"
+
s
);
List
<
StaticDay
>
staticWeeks
=
planTaskMapper
.
findStaticWeek
();
List
<
StaticDay
>
staticWeeks
=
planTaskMapper
.
findStaticWeek
();
for
(
StaticDay
st
:
staticWeeks
Iterable
join
=
CompletableFuture
.
supplyAsync
(()
->
repositoryTs
.
batchSave
(
staticWeeks
)).
join
();
)
{
if
(!
ValidationUtil
.
isEmpty
(
join
)
)
{
planTaskMapper
.
insertAll
(
P_STATIC_WEEK
+
"_"
+
s
,
st
);
planTaskMapper
.
deleteDate
(
P_STATIC_WEEK
);
}
}
planTaskMapper
.
deleteDate
(
P_STATIC_WEEK
);
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
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