|
@@ -64,13 +64,11 @@ public class CopyDataController extends ControllerSupport {
|
|
|
* 目标学校
|
|
|
* @param paperSuff
|
|
|
* 复制后的目标学校试卷后缀
|
|
|
- * @param copyAll
|
|
|
- * 是否全部试卷复制(已经复制过的id有记录)
|
|
|
*/
|
|
|
@PostMapping(value = "data")
|
|
|
public void copyData(HttpServletResponse response,
|
|
|
@RequestPart @NotNull(message = "上传文件不能为空!") MultipartFile dataFile, @RequestParam Long fromRootOrgId,
|
|
|
- @RequestParam Long toRootOrgId, @RequestParam String paperSuff, @RequestParam Boolean copyAll) {
|
|
|
+ @RequestParam Long toRootOrgId, @RequestParam String paperSuff) {
|
|
|
User user = getAccessUser();
|
|
|
if (!user.getRootOrgId().equals(toRootOrgId)) {
|
|
|
ServletUtil.returnJson("请求失败,没有权限", response);
|
|
@@ -105,7 +103,7 @@ public class CopyDataController extends ControllerSupport {
|
|
|
courses.add(new CopyDataCourseInfo(coursesMap.get(c), c));
|
|
|
}
|
|
|
}
|
|
|
- copyDataService.copyData(user, fromRootOrgId, toRootOrgId, courses, paperSuff, copyAll);
|
|
|
+ copyDataService.copyData(user, fromRootOrgId, toRootOrgId, courses, paperSuff);
|
|
|
ServletUtil.returnJson("请求成功", response);
|
|
|
} catch (StatusException e) {
|
|
|
ServletUtil.returnJson("请求失败" + e.getDesc(), response);
|