无关风月
2024-06-18 610604ea8fbdc1f2b0f54e90a689b9ff449f092c
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TSysSetController.java
@@ -62,6 +62,10 @@
    public AjaxResult saveSysSet(SysSetVO vo) {
        TSysSet byId = sysSetService.getById(1);
        BeanUtils.copyProperties(vo, byId);
        // 音效更改及更改音效设置时间
        if (!byId.getCorrect().equals(vo.getCorrect()) || !byId.getError().equals(vo.getError())) {
            byId.setAcousticsTime(new Date());
        }
        byId.setId(1);
        sysSetService.updateById(byId);
        return AjaxResult.success("保存成功");
@@ -147,7 +151,7 @@
    @PostMapping("/agreement")
    @ApiOperation(value = "协议", tags = {"后台-协议管理"})
    public AjaxResult agreement(@RequestBody AggrementDTO dto) {
    public AjaxResult agreement( AggrementDTO dto) {
        TProtocol protocol = protocolService.getById(dto.getType());
        if (StringUtils.hasLength(dto.getContent())) {
            protocol.setContent(dto.getContent());