zhibing.pu
2024-07-25 01d8de48c76467ff3b99b204e66d3ef86506fa52
ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TAgreementController.java
@@ -82,8 +82,10 @@
     */
    @RequestMapping("/user")
    public String userIndex(Model model) {
        TAgreement one = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("type", 3));
        TAgreement one = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("useType",1).eq("type", 3).eq("language",1));
        model.addAttribute("one",one);
        TAgreement two = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("useType",2).eq("type", 3).eq("language",1));
        model.addAttribute("two",two);
        return PREFIX + "tAgreementUser.html";
    }
@@ -155,8 +157,10 @@
     */
    @RequestMapping("/showCommonProblem")
    public String showCommonProblem(Model model) {
        TAgreement one = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("type", 12));
        TAgreement one = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("useType",1).eq("type", 12).eq("language",1));
        model.addAttribute("one",one);
        TAgreement two = tAgreementService.selectOne(new EntityWrapper<TAgreement>().eq("useType",2).eq("type", 12).eq("language",1));
        model.addAttribute("two",two);
        return PREFIX + "commonProblem.html";
    }
@@ -217,12 +221,18 @@
     */
    @RequestMapping(value = "/updateAppParam")
    @ResponseBody
    public Object updateAppParam(@RequestParam Integer id,@RequestParam String context) {
    public Object updateAppParam(@RequestParam Integer id,@RequestParam String context, Integer id1, String context1) {
        TAgreement agreement = tAgreementService.selectById(id);
        agreement.setContent(context);
        agreement.setUpdateTime(new Date());
        agreement.setUpdateUser(ShiroKit.getUser().getId());
        tAgreementService.updateById(agreement);
        TAgreement agreement1 = tAgreementService.selectById(id1);
        agreement1.setContent(context1);
        agreement1.setUpdateTime(new Date());
        agreement1.setUpdateUser(ShiroKit.getUser().getId());
        tAgreementService.updateById(agreement1);
        return SUCCESS_TIP;
    }