This commit is contained in:
2026-09-07 15:18:17 +08:00
parent bc56b0c777
commit 7322252d41
@@ -92,6 +92,7 @@ public class SysDataUnitPullServiceImpl extends BaseServiceImpl<Sys_unit> implem
}
log.info("本次拉取单位数据,新增{}条,更新{}条", insertList.size(), updateList.size());
dao().insert(insertList);
dao().update(updateList);
// 单位同步只更新数据中心负责维护的字段,避免将未参与映射的工会、小组等本地关联字段覆盖为空。
dao().update(updateList, "name|unitcode|unitType|unitTypeCode|parentId|unitLevel");
}
}