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
344043d7
Commit
344043d7
authored
Dec 02, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 解绑后 重新绑定自测报错调整
2 扫码绑定校验重复设备号
parent
630fa641
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
190 additions
and
28 deletions
+190
-28
TTrayInfoMapper.java
...c/main/java/com/zehong/system/mapper/TTrayInfoMapper.java
+2
-0
CalibrationResultEventHandler.java
...ong/system/netty/event/CalibrationResultEventHandler.java
+10
-0
ITTrayInfoService.java
...ain/java/com/zehong/system/service/ITTrayInfoService.java
+2
-0
TTrayInfoServiceImpl.java
.../com/zehong/system/service/impl/TTrayInfoServiceImpl.java
+11
-1
AllCommandHandler.java
...c/main/java/com/zehong/system/task/AllCommandHandler.java
+1
-1
PalletDeviceBindingMapper.xml
...ain/resources/mapper/system/PalletDeviceBindingMapper.xml
+9
-1
TTrayInfoMapper.xml
...stem/src/main/resources/mapper/system/TTrayInfoMapper.xml
+6
-1
TrayBinding.vue
zhmes-agecal-web/src/views/screen/components/TrayBinding.vue
+149
-24
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/mapper/TTrayInfoMapper.java
View file @
344043d7
...
...
@@ -53,6 +53,8 @@ public interface TTrayInfoMapper
*/
public
int
updateTTrayInfo
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByStoreyCode
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByTrayCode
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByTrayId
(
TTrayInfo
tTrayInfo
);
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/netty/event/CalibrationResultEventHandler.java
View file @
344043d7
...
...
@@ -7,6 +7,7 @@ import com.zehong.common.constant.RoboticArmConstans;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.common.utils.http.HttpUtils
;
import
com.zehong.system.domain.*
;
import
com.zehong.system.mapper.TTrayInfoMapper
;
import
com.zehong.system.service.IPalletDeviceBindingService
;
import
com.zehong.system.service.IPalletDeviceUploadHistoryService
;
import
com.zehong.system.service.IProcessCalibrationResultHistoryService
;
...
...
@@ -52,6 +53,9 @@ public class CalibrationResultEventHandler {
@Resource
private
IProcessCalibrationResultHistoryService
processCalibrationResultHistoryService
;
@Resource
private
TTrayInfoMapper
tTrayInfoMapper
;
/**
* check是否启动 ,没启动就启动下 开始老化
*
...
...
@@ -158,6 +162,12 @@ public class CalibrationResultEventHandler {
// 批量更新
palletDeviceBindingService
.
batchUpdateAdAndStatus
(
palletDeviceBindings
);
// 更新托盘为标检完成状态3
TTrayInfo
tTrayInfo
=
new
TTrayInfo
();
tTrayInfo
.
setfStatus
(
"3"
);
tTrayInfo
.
setfTrayCode
(
trayCode
);
tTrayInfoMapper
.
updateStatusByTrayCode
(
tTrayInfo
);
return
palletDeviceBindings
;
}
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/ITTrayInfoService.java
View file @
344043d7
...
...
@@ -44,6 +44,8 @@ public interface ITTrayInfoService
*/
public
int
updateTTrayInfo
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByStoreCode
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByTrayCode
(
TTrayInfo
tTrayInfo
);
public
int
updateStatusByTrayId
(
TTrayInfo
tTrayInfo
);
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/TTrayInfoServiceImpl.java
View file @
344043d7
...
...
@@ -79,11 +79,21 @@ public class TTrayInfoServiceImpl implements ITTrayInfoService
return
tTrayInfoMapper
.
updateTTrayInfo
(
tTrayInfo
);
}
@Override
public
int
updateStatusByStoreCode
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
updateStatusByStoreyCode
(
tTrayInfo
);
}
/**
* 修改托盘状态
*
* @param tTrayInfo 托盘信息
* @return 批量结果
*/
@Override
public
int
updateStatusByTrayCode
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
updateStatusByTrayCode
(
tTrayInfo
);
}
@Override
public
int
updateStatusByTrayId
(
TTrayInfo
tTrayInfo
)
{
return
tTrayInfoMapper
.
initStatusByTrayId
(
tTrayInfo
.
getfTrayId
());
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/task/AllCommandHandler.java
View file @
344043d7
...
...
@@ -81,7 +81,7 @@ public class AllCommandHandler {
TTrayInfo
tTrayInfo
=
new
TTrayInfo
();
tTrayInfo
.
setfStatus
(
"1"
);
tTrayInfo
.
setfStoreyCode
(
storeyCode
);
trayInfoService
.
updateStatusBy
Tray
Code
(
tTrayInfo
);
trayInfoService
.
updateStatusBy
Store
Code
(
tTrayInfo
);
deviceTaskScheduler
.
scheduleDeviceMonitoring
(
tStoreyInfo
.
getfStoreyId
(),
fip
,
fport
);
}
...
...
zhmes-agecal-system/src/main/resources/mapper/system/PalletDeviceBindingMapper.xml
View file @
344043d7
...
...
@@ -169,6 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"resetAll"
parameterType=
"long"
>
update t_pallet_device_binding
set f_device_code = null,
f_status = null,
f_binding_time = null,
f_unbinding_time = null,
f_status = null,
...
...
@@ -222,6 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"unbindDevice"
parameterType=
"long"
>
update t_pallet_device_binding
set f_device_code = null,
f_status = null,
f_unbinding_time = NOW(),
f_record_year = null,
f_record_month = null,
...
...
@@ -303,6 +305,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
UPDATE t_pallet_device_binding
<trim
prefix=
"SET"
suffixOverrides=
","
>
f_unbinding_time = null,
f_status = null,
f_binding_time = NOW(),
f_record_year = null,
f_record_month = null,
...
...
@@ -320,7 +323,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
f_real_time_ad_status = null,
f_calibration_concentration = null,
f_calibration_concentration_status = null
<if
test=
"item.deviceCode != null"
>
f_device_code = #{item.deviceCode},
</if>
<choose>
<when
test=
"item.deviceCode != null"
>
, f_device_code = #{item.deviceCode}
</when>
</choose>
</trim>
WHERE f_pallet_device_binding_id = #{item.palletDeviceBindingId}
</foreach>
...
...
@@ -328,6 +335,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"unbindAllDevice"
parameterType=
"long"
>
update t_pallet_device_binding
set f_device_code = null,
f_status = null,
f_unbinding_time = NOW(),
f_status = '1',
f_record_year = null,
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TTrayInfoMapper.xml
View file @
344043d7
...
...
@@ -89,11 +89,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</insert>
<update
id=
"updateStatusBy
Tra
yCode"
parameterType=
"TTrayInfo"
>
<update
id=
"updateStatusBy
Store
yCode"
parameterType=
"TTrayInfo"
>
update t_tray_info
set f_status = #{fStatus}
where f_storey_code = #{fStoreyCode}
</update>
<update
id=
"updateStatusByTrayCode"
parameterType=
"TTrayInfo"
>
update t_tray_info
set f_status = #{fStatus}
where f_tray_code = #{fTrayCode}
</update>
<update
id=
"updateStatusByTrayId"
parameterType=
"TTrayInfo"
>
update t_tray_info
set f_status = #{fStatus}
...
...
zhmes-agecal-web/src/views/screen/components/TrayBinding.vue
View file @
344043d7
This diff is collapsed.
Click to expand it.
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