Pu Zhibing
2 天以前 e809f5955584e600d8612540ea814977c49774c2
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TDispatchController.java
@@ -67,7 +67,6 @@
       model.addAttribute("roleType", shiroExtUtil.getUser().getRoleType());
   
       List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2)
             .eq("isCross", 1)
             .last(" and state != 1 and FIND_IN_SET(flag,'1,2')"));
       model.addAttribute("companyList", companyList);
   
@@ -113,19 +112,16 @@
       model.addAttribute("roleType", roleType);
       if (1 == roleType) {
          List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2)
                .eq("isCross", 1)
                .last(" and state != 1 and FIND_IN_SET(flag,'1,2')"));
          model.addAttribute("companyList", companyList);
      
          List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3)
                .eq("superiorId", tDispatch.getCompanyId())
                .eq("isCross", 1)
                    .last(" and state != 1 and FIND_IN_SET(flag,'1,2')"));
            model.addAttribute("franchiseeList",franchiseeList);
        }else if (2 == roleType){
            List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3)
                  .eq("superiorId", shiroExtUtil.getUser().getObjectId())
                    .eq("isCross", 1)
                    .last(" and state != 1 and FIND_IN_SET(flag,'1,2')"));
            model.addAttribute("franchiseeList",franchiseeList);
        }