xuhy
2025-02-17 1cc7231bab6d4af58ea89f4484e9da9ac76170c5
ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCompanyController.java
@@ -145,6 +145,11 @@
        List<Map<String, Object>> scopeList = tCompanyService.getCompanyScopeById(tCompanyId);
        model.addAttribute("scopeList",scopeList);
        //计费规则
        TSystemPrice tSystemPrice = systemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("companyId", tCompanyId)
                .eq("type", 2).last("LIMIT 1"));
        model.addAttribute("contentExclusive",JSONObject.parseObject(tSystemPrice.getContent()));
        return PREFIX + "tCompany_detail.html";
    }
@@ -168,6 +173,10 @@
        //经营区域
        List<Map<String, Object>> scopeList = tCompanyService.getCompanyScopeById(tCompanyId);
        model.addAttribute("scopeList",scopeList);
        //计费规则
        TSystemPrice tSystemPrice = systemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("companyId", tCompanyId)
                .eq("type", 2).last("LIMIT 1"));
        model.addAttribute("contentExclusive",JSONObject.parseObject(tSystemPrice.getContent()));
        return PREFIX + "tCompany_edit.html";
    }
@@ -192,6 +201,10 @@
        //系统用户对象
        User user = userService.selectOne(new EntityWrapper<User>().eq("roleType", 3).eq("objectId", tCompanyId));
        model.addAttribute("user",user);
        //计费规则
        TSystemPrice tSystemPrice = systemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("companyId", tCompanyId)
                .eq("type", 2).last("LIMIT 1"));
        model.addAttribute("contentExclusive",JSONObject.parseObject(tSystemPrice.getContent()));
        return PREFIX + "tCompany_detailFranchisee.html";
    }
@@ -219,6 +232,11 @@
        User user = userService.selectOne(new EntityWrapper<User>().eq("roleType", 3).eq("objectId", tCompanyId));
        model.addAttribute("user",user);
        //计费规则
        TSystemPrice tSystemPrice = systemPriceService.selectOne(new EntityWrapper<TSystemPrice>().eq("companyId", tCompanyId)
                .eq("type", 2).last("LIMIT 1"));
        model.addAttribute("contentExclusive",JSONObject.parseObject(tSystemPrice.getContent()));
        return PREFIX + "tCompany_updateFranchisee.html";
    }