Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
datasync-service
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
位宇华
datasync-service
Commits
996087dc
Commit
996087dc
authored
Jun 27, 2024
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据同步提交
parent
ca2069fe
Pipeline
#11
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/tianyi/sync/service/impl/DataSyncServiceimpl.java
...ava/com/tianyi/sync/service/impl/DataSyncServiceimpl.java
+2
-2
src/main/resources/mapper/FallSlaveMapper.xml
src/main/resources/mapper/FallSlaveMapper.xml
+2
-2
No files found.
src/main/java/com/tianyi/sync/service/impl/DataSyncServiceimpl.java
View file @
996087dc
...
...
@@ -45,8 +45,8 @@ public class DataSyncServiceimpl implements DataSyncService {
JSONObject
jsonObject
=
new
JSONObject
();
String
lastMonth
=
DateUtils
.
getYearAndMonthLast
();
ParmDataModel
parmDataModel
=
new
ParmDataModel
();
parmDataModel
.
setPeriod
(
lastMonth
);
//parmDataModel.setPeriod("2024-03
");
//
parmDataModel.setPeriod(lastMonth);
parmDataModel
.
setPeriod
(
"2024-05
"
);
String
period
=
parmDataModel
.
getPeriod
();
parmDataModel
.
setYear
(
period
.
substring
(
0
,
4
));
parmDataModel
.
setMonth
(
StringUtils
.
startsWith
(
period
.
substring
(
5
,
7
),
"0"
)
?
StringUtils
.
substringAfterLast
(
period
.
substring
(
5
,
7
),
"0"
)
:
period
.
substring
(
5
,
7
));
...
...
src/main/resources/mapper/FallSlaveMapper.xml
View file @
996087dc
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.tianyi.sync.mapper.slave.FallSlaveMapper"
>
<insert
id=
"addAll"
>
INSERT INTO elim
bak
INSERT INTO elim
( `year`, `month`, entitycode, entityname, accountcode, ICPcode, orivalue,c1,c2,c3,c4)
VALUES
<foreach
collection=
"fallDataModelList"
item=
"item"
index=
"index"
separator=
","
>
...
...
@@ -13,7 +13,7 @@
</insert>
<delete
id=
"delete"
>
delete
from elim
bak
from elim
where `year` = #{year}
and `month`=#{month}
</delete>
...
...
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