Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
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
耿迪迪
zhmes-agecal
Commits
fe5155a6
Commit
fe5155a6
authored
Dec 03, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 提交绑定 判断 已绑定的 和 刚绑定的 时候有重复。
parent
a7d72f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
PalletDeviceBindingMapper.xml
...ain/resources/mapper/system/PalletDeviceBindingMapper.xml
+10
-4
No files found.
zhmes-agecal-system/src/main/resources/mapper/system/PalletDeviceBindingMapper.xml
View file @
fe5155a6
...
...
@@ -158,10 +158,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"checkRepeat"
parameterType=
"list"
resultType=
"int"
>
select count(1) from t_pallet_device_binding palDeviceBinding
where palDeviceBinding.f_device_code in
<foreach
item=
"item"
collection=
"validDeviceCodes"
index=
"index"
separator=
","
>
#{item}
</foreach>
<if
test=
"validDeviceCodes != null and validDeviceCodes.size() > 0"
>
where palDeviceBinding.f_device_code in
<foreach
item=
"item"
collection=
"validDeviceCodes"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"validDeviceCodes == null or validDeviceCodes.size() == 0"
>
where 1=0
</if>
</select>
<insert
id=
"batchInsertPalletDeviceBinding"
parameterType=
"list"
useGeneratedKeys=
"true"
keyProperty=
"palletDeviceBindingId"
>
insert into t_pallet_device_binding (f_tray_id, f_device_code,f_row,f_col,f_index,f_number,f_binding_time,
...
...
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