|
@@ -158,7 +158,7 @@ public class DirServiceImpl extends IBaseServiceImpl<DirEntity, Long> implements
|
|
|
private void updateParentId(Long parentId, String dirIds, String ancestors){
|
|
|
if (StrUtil.isNotBlank(dirIds)){
|
|
|
log.info("移动目录: {} 到 {}", dirIds, parentId);
|
|
|
- entityMapper.updateParentId(StrUtil.format("update tb_dir set parent_id={}, ancestors={} where is_delete=0 and id in ({}) ", parentId,ancestors, dirIds));
|
|
|
+ entityMapper.updateParentId(StrUtil.format("update tb_dir set parent_id={}, ancestors='{}' where is_delete=0 and id in ({}) ", parentId,ancestors, dirIds));
|
|
|
}
|
|
|
|
|
|
}
|