Przeglądaj źródła

修复districtId错误

zhouhao 7 lat temu
rodzic
commit
73570cde74

+ 1 - 1
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-local/src/main/java/org/hswebframework/web/service/organizational/simple/SimpleDistrictService.java

@@ -85,7 +85,7 @@ public class SimpleDistrictService extends AbstractTreeSortService<DistrictEntit
     @CacheEvict(allEntries = true)
     public int deleteByPk(String id) {
         if (DefaultDSLQueryService.createQuery(organizationalDao)
-                .where(OrganizationalEntity.orgId, id)
+                .where(OrganizationalEntity.districtId, id)
                 .total() > 0) {
             throw new BusinessException("行政区域下存在机构信息,无法删除!");
         }