|
|
|
@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
|
|
import java.io.*;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.*;
|
|
|
|
@ -366,7 +367,7 @@ public class TeacherOpenCourseMergeResourcesQuestionService extends CoreBaseServ
|
|
|
|
|
* @param resourcesQuestionIds
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public void copyFromQuestion(Set<String> resourcesQuestionIds) {
|
|
|
|
|
public void copyFromQuestion(@NotEmpty(message = "资源题目ID不能为空!") Set<String> resourcesQuestionIds) {
|
|
|
|
|
// 题目ID集合
|
|
|
|
|
String ids = join(resourcesQuestionIds, ",");
|
|
|
|
|
List<ResourcesQuestion> resourcesQuestions = resourcesQuestionDao.getByIds(ids);
|
|
|
|
@ -375,5 +376,6 @@ public class TeacherOpenCourseMergeResourcesQuestionService extends CoreBaseServ
|
|
|
|
|
|
|
|
|
|
// 默认有
|
|
|
|
|
List<TeacherOpenCourseMergeResourcesQuestion> copyToList = BeanUtil.copyToList(resourcesQuestions, TeacherOpenCourseMergeResourcesQuestion.class);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|