浏览代码

组织管理,不查询无区域id的项目

wanghaicheng 5 年之前
父节点
当前提交
b39ce00077

+ 3 - 1
lift-enterprise-service/src/main/java/cn/com/ty/lift/enterprise/organization/service/OrganizationService.java

@@ -59,8 +59,9 @@ public class OrganizationService {
 
     /**
      * 获取省,市,区,项目列表
+     *
      * @return 省,市,区,项目列表
-     * @since  2019/12/17 10:05
+     * @since 2019/12/17 10:05
      */
     public RestResponse organizationTree(Long mtCompanyId) {
         List<Organization> ps = new ArrayList<>();
@@ -71,6 +72,7 @@ public class OrganizationService {
         //项目列表
         List<Project> projects = projectService.list(new QueryWrapper<Project>()
                 .select("id", "project_name", "province", "city", "district", "num")
+                .ne("region_id", null)
                 .eq("mt_company_id", mtCompanyId)
         );