| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ycl.exception.ServiceException; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.ycl.platform.domain.form.ManualScoreForm; |
| | |
| | | baseMapper.updateById(checkResult); |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public Result publishById(String id) { |
| | | CheckResult checkResult = new CheckResult(); |
| | | checkResult.setId(Integer.valueOf(id)); |
| | | checkResult.setPublish(1); |
| | | if(baseMapper.updateById(checkResult) > 0) { |
| | | return Result.ok("发布成功"); |
| | | } |
| | | return Result.error("发布失败"); |
| | | } |
| | | } |