fix(手表设备): 优化错误提示信息,将"该工具不存在"改为"该监测工具不存在"

This commit is contained in:
wanghao
2026-03-18 14:47:39 +08:00
parent 237df3ef38
commit a43806c4e9
@@ -291,7 +291,7 @@ public class WatchDeviceServiceImpl extends ServiceImpl<WatchDeviceMapper, Watch
} }
WatchDevice watchDevice = getDeviceByWatchNo(dto.getWatchNo()); WatchDevice watchDevice = getDeviceByWatchNo(dto.getWatchNo());
if (watchDevice == null) { if (watchDevice == null) {
return Result.error("该工具不存在"); return Result.error("监测工具不存在");
} }
if (isDeviceAlreadyBound(watchDevice, dto)) { if (isDeviceAlreadyBound(watchDevice, dto)) {
return Result.error("该设备已绑定该员工"); return Result.error("该设备已绑定该员工");