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
4b9fca96
Commit
4b9fca96
authored
Jun 01, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增:气瓶标签入库mapper
parent
4761ff3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
CylinderTagsMapper.java
...ot/module/cylinder/flc/api/mapper/CylinderTagsMapper.java
+4
-0
CylinderTagsMapper.xml
...nder-api/src/main/resources/mapper/CylinderTagsMapper.xml
+40
-0
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/CylinderTagsMapper.java
View file @
4b9fca96
...
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.entity.CylinderTags
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 气瓶标签信息 Mapper 接口
*
...
...
@@ -13,4 +15,6 @@ import org.apache.ibatis.annotations.Param;
public
interface
CylinderTagsMapper
extends
BaseMapper
<
CylinderTags
>
{
Double
queryIntegirtyByAppId
(
@Param
(
"appId"
)
String
appId
);
void
saveOrUpdateBatch
(
@Param
(
"list"
)
List
<
CylinderTags
>
cylinderTagsList
);
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderTagsMapper.xml
View file @
4b9fca96
...
...
@@ -8,4 +8,44 @@
</select>
<insert
id=
"saveOrUpdateBatch"
parameterType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.entity.CylinderTags"
>
INSERT INTO tz_cylinder_tags"(
sequence_nbr,
sequence_code,
qrcode,
electronic_label_code,
rec_date,
rec_user_id,
sync_date,
sync_state,
app_id,
integrity,
gas_cylinder_stamp)
VALUES
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(#{item.sequenceNbr},
#{item.sequenceCode},
#{item.qrCode},
#{item.electronicLabelCode},
#{item.recDate},
#{item.recUserId},
#{item.syncDate},
#{item.syncState},
#{item.appId},
#{item.integrity},
#{item.gasCylinderStamp})
</foreach>
on conflict (sequence_code) do update set
"qrcode" = EXCLUDED."qrcode",
"electronic_label_code" = EXCLUDED."electronic_label_code",
"rec_date" = EXCLUDED."rec_date",
"rec_user_id" = EXCLUDED."rec_user_id",
"sync_date" = EXCLUDED."sync_date",
"sync_state" = EXCLUDED."sync_state",
"app_id" = EXCLUDED."app_id",
"integrity" = EXCLUDED."integrity",
"security_adm_phone" = EXCLUDED."security_adm_phone",
"gas_cylinder_stamp" = EXCLUDED."gas_cylinder_stamp"
</insert>
</mapper>
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