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