feat(watch): 导入设备绑定时,手表所属单位以员工信息为准

This commit is contained in:
2026-05-06 14:47:33 +08:00
parent 115407026f
commit 0e8f5e7b14
@@ -336,8 +336,9 @@ public class AsyncImportService {
updatedWatchDevice.setBindDate(watchDevice.getBindDate()==null?new Date():watchDevice.getBindDate());
updatedWatchDevice.setUpdateDate(new Date());
updatedWatchDevice.setUpdateBy(sysUser.getId());
updatedWatchDevice.setDeptId(device.getDeptId());
updatedWatchDevice.setOrgCode(device.getOrgCode());
// 这里修改成以用户的部门为准,更新手表的所属部门
updatedWatchDevice.setDeptId(sysCache.getDepartIdByOrgCode(user.getOrgCode()));
updatedWatchDevice.setOrgCode(user.getOrgCode());
updateList.add(updatedWatchDevice);
}
info1.setHandleMsg(index + "/" + count);