考试定义调整
This commit is contained in:
parent
6b26675fdd
commit
9904077709
@ -32,6 +32,7 @@ CREATE TABLE `rts_paper_composition` (
|
||||
`valid_duration` int DEFAULT NULL COMMENT '完成考试有效最长时长,单位min',
|
||||
`pass_score` int DEFAULT NULL COMMENT '及格分',
|
||||
`full_score` int DEFAULT NULL COMMENT '满分',
|
||||
`update_id` bigint DEFAULT NULL COMMENT '最后更新用户id',
|
||||
`creator_id` bigint DEFAULT NULL COMMENT '创建者id',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -12,8 +12,8 @@ import javax.validation.constraints.PositiveOrZero;
|
||||
/**
|
||||
* 竞赛用户点赞
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(path = "/api/v1/likes")
|
||||
//@RestController
|
||||
//@RequestMapping(path = "/api/v1/likes")
|
||||
public class CompetitionUserLikesController {
|
||||
|
||||
@Autowired
|
||||
|
@ -24,7 +24,7 @@ import java.util.stream.Collectors;
|
||||
* 用户点赞数据
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
//@Component
|
||||
public class CompetitionUserLikeManager extends CustomCommandLineRunner {
|
||||
|
||||
@Autowired
|
||||
|
@ -208,7 +208,7 @@ public class PaperCompositionService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将封存的试卷蓝图解封重新编辑
|
||||
* 将封存的试卷蓝图设置失效
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void unlockPaperComposition(Long pcId, AccountVO user) {
|
||||
|
@ -25,6 +25,10 @@ public enum FindPcType {
|
||||
* 封存
|
||||
*/
|
||||
Locked(4),
|
||||
/**
|
||||
* 失效
|
||||
*/
|
||||
Invalid(5);
|
||||
/**
|
||||
* 已经被使用过
|
||||
*/
|
||||
@ -73,6 +77,9 @@ public enum FindPcType {
|
||||
case Editing:
|
||||
list.add(PaperCompositionState.Editing);
|
||||
break;
|
||||
case Invalid:
|
||||
list.add(PaperCompositionState.Invalid);
|
||||
break;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user