diff --git a/health-watch/health-watch-biz/src/main/java/com/renkang/watch/async/AsyncImportService.java b/health-watch/health-watch-biz/src/main/java/com/renkang/watch/async/AsyncImportService.java index 9a45c05..a7205fd 100644 --- a/health-watch/health-watch-biz/src/main/java/com/renkang/watch/async/AsyncImportService.java +++ b/health-watch/health-watch-biz/src/main/java/com/renkang/watch/async/AsyncImportService.java @@ -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);