Browse Source

根节点删除校验

master
牧羊人 4 years ago
parent
commit
c67767554a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/java/com/taauav/admin/service/impl/LsCityServiceImpl.java

+ 3
- 0
src/main/java/com/taauav/admin/service/impl/LsCityServiceImpl.java View File

@@ -212,6 +212,9 @@ public class LsCityServiceImpl extends ServiceImpl<SysCityMapper, SysCity> imple
if (id == null) {
return response.failure("机构ID不存在");
}
if (id == BigInteger.valueOf(Long.valueOf(320117))) {
return response.failure("根级无法删除");
}
SysCity entity = sysCityMapper.selectById(id);
if (entity == null) {
return response.failure("机构信息不存在");

Loading…
Cancel
Save