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
be3a7c5e
Commit
be3a7c5e
authored
Apr 17, 2026
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 解绑的时候 清理托盘 和 层数据
parent
4198ca5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
TStoreyInfoMapper.java
...main/java/com/zehong/system/mapper/TStoreyInfoMapper.java
+2
-0
PalletDeviceBindingServiceImpl.java
...g/system/service/impl/PalletDeviceBindingServiceImpl.java
+6
-3
TStoreyInfoMapper.xml
...em/src/main/resources/mapper/system/TStoreyInfoMapper.xml
+5
-0
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/mapper/TStoreyInfoMapper.java
View file @
be3a7c5e
...
@@ -32,6 +32,8 @@ public interface TStoreyInfoMapper
...
@@ -32,6 +32,8 @@ public interface TStoreyInfoMapper
public
void
unbindByCode
(
String
fStoreyCode
);
public
void
unbindByCode
(
String
fStoreyCode
);
public
void
unbindByTrayId
(
Long
trayId
);
public
void
updateStatusByCode
(
TStoreyInfo
tStoreyInfo
);
public
void
updateStatusByCode
(
TStoreyInfo
tStoreyInfo
);
// 新增方法:查询离机械臂最近的空闲层
// 新增方法:查询离机械臂最近的空闲层
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/PalletDeviceBindingServiceImpl.java
View file @
be3a7c5e
...
@@ -335,8 +335,9 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
...
@@ -335,8 +335,9 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
// 解绑设备
// 解绑设备
palletDeviceBindingMapper
.
unbindAllDevice
(
trayId
);
palletDeviceBindingMapper
.
unbindAllDevice
(
trayId
);
tStoreyInfoMapper
.
unbindByTrayId
(
trayId
);
// 初始托盘状态
// 初始托盘状态
tTrayInfoMapper
.
initStatus
ByTrayId
(
trayId
);
tTrayInfoMapper
.
clearStoreyCode
ByTrayId
(
trayId
);
return
AjaxResult
.
success
();
return
AjaxResult
.
success
();
}
}
...
@@ -359,8 +360,10 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
...
@@ -359,8 +360,10 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
// 解绑设备
// 解绑设备
palletDeviceBindingMapper
.
unbindAllDevice
(
trayId
);
palletDeviceBindingMapper
.
unbindAllDevice
(
trayId
);
// 初始托盘状态
tStoreyInfoMapper
.
unbindByTrayId
(
trayId
);
tTrayInfoMapper
.
initStatusByTrayId
(
trayId
);
// 初始托盘状态 可能会出现手动直接下料 不会走自定义任务的清理
tTrayInfoMapper
.
clearStoreyCodeByTrayId
(
trayId
);
return
AjaxResult
.
success
();
return
AjaxResult
.
success
();
}
}
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TStoreyInfoMapper.xml
View file @
be3a7c5e
...
@@ -231,6 +231,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -231,6 +231,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
set f_status = '0', f_aging_start_time = null,f_aging_end_time = null,f_estimated_end_time = null
set f_status = '0', f_aging_start_time = null,f_aging_end_time = null,f_estimated_end_time = null
where f_storey_code = #{fStoreyCode}
where f_storey_code = #{fStoreyCode}
</update>
</update>
<update
id=
"unbindByTrayId"
parameterType=
"Long"
>
update t_storey_info storeyInfo left join t_tray_info trayInfo on storeyInfo.f_storey_code = trayInfo.f_storey_code
set storeyInfo.f_status = '0', storeyInfo.f_aging_start_time = null,storeyInfo.f_aging_end_time = null,storeyInfo.f_estimated_end_time = null
where trayInfo.f_tray_id = #{trayId}
</update>
<update
id=
"updateStatusByCode"
parameterType=
"TStoreyInfo"
>
<update
id=
"updateStatusByCode"
parameterType=
"TStoreyInfo"
>
update t_storey_info
update t_storey_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
...
...
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