|
|
|
@ -18,6 +18,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
|
|
@ -44,6 +45,11 @@ public class StudentTrainingAnswerServiceImpl implements StudentTrainingAnswerSe
|
|
|
|
|
|
|
|
|
|
|
|
private boolean studentTrainingAnswerTableChecked = false;
|
|
|
|
private boolean studentTrainingAnswerTableChecked = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostConstruct
|
|
|
|
|
|
|
|
public void initializeSchema() {
|
|
|
|
|
|
|
|
ensureStudentTrainingAnswerTable();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public StudentTrainingAnswer get(String taskKey, String teachingClassId, JwtUser user) {
|
|
|
|
public StudentTrainingAnswer get(String taskKey, String teachingClassId, JwtUser user) {
|
|
|
|
ensureStudentTrainingAnswerTable();
|
|
|
|
ensureStudentTrainingAnswerTable();
|
|
|
|
|