|
|
@ -125,7 +125,7 @@ public class StudytourCategoryServiceImpl extends ServiceImpl<StudytourCategoryM |
|
|
|
*/ |
|
|
|
private void updateOldParentNode(String pid) { |
|
|
|
if(!IStudytourCategoryService.ROOT_PID_VALUE.equals(pid)) { |
|
|
|
Integer count = baseMapper.selectCount(new QueryWrapper<StudytourCategory>().eq("pid", pid)); |
|
|
|
Integer count = Math.toIntExact(baseMapper.selectCount(new QueryWrapper<StudytourCategory>().eq("pid", pid))); |
|
|
|
if(count==null || count<=1) { |
|
|
|
baseMapper.updateTreeNodeStatus(pid, IStudytourCategoryService.NOCHILD); |
|
|
|
} |
|
|
|