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
89bf0418
Commit
89bf0418
authored
Oct 17, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filling表 完善同步接口
parent
a922791a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
21 deletions
+27
-21
CylCylinderFillingCheckMapper.java
...ylinder/flc/api/mapper/CylCylinderFillingCheckMapper.java
+1
-1
CylCylinderFillingCheckMapper.xml
...c/main/resources/mapper/CylCylinderFillingCheckMapper.xml
+23
-16
CylSyncServiceImpl.java
...ule/cylinder/flc/biz/service/impl/CylSyncServiceImpl.java
+3
-4
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/mapper/CylCylinderFillingCheckMapper.java
View file @
89bf0418
...
...
@@ -32,7 +32,7 @@ public interface CylCylinderFillingCheckMapper extends BaseMapper<CylinderFillin
List
<
CylinderFilling
>
queryUnSyncFilling
();
boolean
updataSyncFilling
(
List
<
String
>
appIds
,
List
<
String
>
fillingBeforeIds
,
List
<
String
>
sequenceCodes
);
boolean
b
atchInsert
(
@Param
(
"list"
)
List
<
CylinderFilling
>
list
);
boolean
saveAndB
atchInsert
(
@Param
(
"list"
)
List
<
CylinderFilling
>
list
);
Long
selectCountTotal
();
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylCylinderFillingCheckMapper.xml
View file @
89bf0418
...
...
@@ -71,18 +71,24 @@
<update
id=
"updataSyncFilling"
>
update tm_cylinder_filling set sync_state = 3
<where>
app_id in
<foreach
collection=
"appIds"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
and filling_before_id in
<foreach
collection=
"fillingBeforeIds"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
and sequence_code in
<foreach
collection=
"sequenceCodes"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
<if
test=
"appIds != null and appIds.size() > 0"
>
app_id in
<foreach
collection=
"appIds"
item=
"appId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{appId}
</foreach>
</if>
<if
test=
"fillingBeforeIds != null and fillingBeforeIds.size() > 0"
>
and filling_before_id in
<foreach
collection=
"fillingBeforeIds"
item=
"fillingBeforeId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{fillingBeforeId}
</foreach>
</if>
<if
test=
"sequenceCodes != null and sequenceCodes.size() > 0"
>
and sequence_code in
<foreach
collection=
"sequenceCodes"
item=
"sequenceCode"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{sequenceCode}
</foreach>
</if>
</where>
</update>
...
...
@@ -129,10 +135,11 @@
and cf.app_id is not null
ORDER BY
cf.sync_date DESC
LIMIT 1000
0
LIMIT 1000
</select>
<insert
id=
"batchInsert"
>
INSERT INTO tz_cylinder_filling (
<insert
id=
"saveAndBatchInsert"
>
INSERT INTO "amos_tzs_biz"."tz_cylinder_filling"
(
sequence_nbr,
filling_before_id,
filling_unit_name,
...
...
@@ -175,7 +182,7 @@
#{item.recDate},
#{item.recUserId},
#{item.syncDate},
#{item.syncState}
,
'3'
,
#{item.appId},
#{item.integrity},
#{item.creditCode},
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylSyncServiceImpl.java
View file @
89bf0418
...
...
@@ -135,7 +135,7 @@ public class CylSyncServiceImpl {
return
"success"
;
}
@Transactional
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
public
void
fillingDataProcessing
(
List
<
CylinderFilling
>
data
)
{
List
<
String
>
appIds
=
new
ArrayList
<>();
List
<
String
>
fillingBeforeIds
=
new
ArrayList
<>();
...
...
@@ -201,9 +201,8 @@ public class CylSyncServiceImpl {
}
});
if
(
sourceFillingCheckServiceImpl
.
updataSyncFilling
(
appIds
,
fillingBeforeIds
,
sequenceCodes
)){
cylCylinderFillingCheckMapper
.
batchInsert
(
data
);
}
cylCylinderFillingCheckMapper
.
saveAndBatchInsert
(
data
);
sourceFillingCheckServiceImpl
.
updataSyncFilling
(
appIds
,
fillingBeforeIds
,
sequenceCodes
);
}
...
...
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