无关风月
2024-07-05 cb7edabb2232bc9901725d562a2b4ec56d174a07
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TSysSetController.java
@@ -151,13 +151,13 @@
    @PostMapping("/agreement")
    @ApiOperation(value = "协议", tags = {"后台-协议管理"})
    public AjaxResult agreement( AggrementDTO dto) {
    public AjaxResult agreement(@RequestBody AggrementDTO dto) {
        TProtocol protocol = protocolService.getById(dto.getType());
        if (StringUtils.hasLength(dto.getContent())) {
        if (StringUtils.hasLength(dto.getContent())){
            protocol.setContent(dto.getContent());
            protocolService.updateById(protocol);
            return AjaxResult.success("修改成功");
        } else {
        }else {
            return AjaxResult.success(protocol.getContent());
        }
    }
@@ -182,7 +182,6 @@
        List<String> strings = new ArrayList<>();
        strings.add("insertTime");
        wrapper.orderByDesc(strings);
        List<TUseGuide> useGuides = useGuideService.list(wrapper);
        PageInfo<TUseGuide> res = new PageInfo<>(pageNumber, pageSize);
        res.setRecords(useGuides);
@@ -204,8 +203,6 @@
        PageInfo<TUseGuide> res = new PageInfo<>(query.getPageNumber(), query.getPageSize());
        List<TUseGuide> useGuides = useGuideService.list(wrapper);
        List<TUseGuide> useGuides2 = useGuideService.listAll(query);
        PageInfo<TUseGuide> page = useGuideService.page(new PageInfo<>(query.getPageNumber(), query.getPageSize()), wrapper);
        res.setRecords(useGuides2);
        res.setTotal(useGuides.size());