| | |
| | | |
| | | @PostMapping("/agreement") |
| | | @ApiOperation(value = "协议", tags = {"后台-协议管理"}) |
| | | public AjaxResult agreement( AggrementDTO dto) { |
| | | public AjaxResult agreement(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()); |
| | | } |
| | | } |