Browse Source

1、系统生成数据库相关代码,树级表单处理

master
Aug 2 weeks ago
parent
commit
b6fb05e8ec
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/studytourAddress/service/impl/StudytourAddressServiceImpl.java
  2. +1
    -1
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/studytourCategory/service/impl/StudytourCategoryServiceImpl.java

+ 1
- 1
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/studytourAddress/service/impl/StudytourAddressServiceImpl.java View File

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


+ 1
- 1
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/studytourCategory/service/impl/StudytourCategoryServiceImpl.java View File

@ -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);
}


Loading…
Cancel
Save