|
@@ -58,7 +58,7 @@ public class TEExamActivity extends BaseEntity {
|
|
|
}
|
|
|
|
|
|
public TEExamActivity(Long examId, Integer prepareSeconds, Integer maxDurationSeconds, Integer openingSeconds,
|
|
|
- Long startTime, Long finishTime, Long createId) {
|
|
|
+ Long startTime, Long finishTime, Long createId) {
|
|
|
setId(UidUtil.nextId());
|
|
|
this.examId = examId;
|
|
|
this.code = "examActivity" + getId();
|
|
@@ -115,7 +115,11 @@ public class TEExamActivity extends BaseEntity {
|
|
|
}
|
|
|
|
|
|
public void setOpeningSeconds(Integer openingSeconds) {
|
|
|
- this.openingSeconds = openingSeconds;
|
|
|
+ if (Objects.nonNull(openingSeconds) && openingSeconds.intValue() == 0) {
|
|
|
+ this.openingSeconds = 60;
|
|
|
+ } else {
|
|
|
+ this.openingSeconds = openingSeconds;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public Long getStartTime() {
|