Commit 2ab92da1c07fa08c3cec332274ff0743f1f2c493
1 parent
a95ad007
1
Showing
1 changed file
with
1 additions
and
1 deletions
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/service/impl/${entityName}ServiceImpl.javai
... | ... | @@ -135,7 +135,7 @@ public class ${entityName}ServiceImpl extends ServiceImpl<${entityName}Mapper, $ |
135 | 135 | */ |
136 | 136 | private void updateOldParentNode(String pid) { |
137 | 137 | if(!I${entityName}Service.ROOT_PID_VALUE.equals(pid)) { |
138 | - Integer count = baseMapper.selectCount(new QueryWrapper<${entityName}>().eq("${tableVo.extendParams.pidField}", pid)); | |
138 | + Long count = baseMapper.selectCount(new QueryWrapper<${entityName}>().eq("${tableVo.extendParams.pidField}", pid)); | |
139 | 139 | if(count==null || count<=1) { |
140 | 140 | baseMapper.updateTreeNodeStatus(pid, I${entityName}Service.NOCHILD); |
141 | 141 | } |
... | ... |