|
@@ -14,6 +14,7 @@ import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import com.qmth.boot.core.exception.ParameterException;
|
|
import com.qmth.boot.core.exception.ParameterException;
|
|
|
|
|
|
@@ -62,6 +63,7 @@ public class StudentImportServiceImpl implements StudentImportService {
|
|
}
|
|
}
|
|
|
|
|
|
@Async
|
|
@Async
|
|
|
|
+ @Transactional
|
|
@Override
|
|
@Override
|
|
public void studentImport(String taskId, List<String> lines, Long examId, String subjectCode, Integer yearConfig,
|
|
public void studentImport(String taskId, List<String> lines, Long examId, String subjectCode, Integer yearConfig,
|
|
Integer yearHalfConfig) {
|
|
Integer yearHalfConfig) {
|