|
@@ -1092,6 +1092,21 @@ public class ExamController extends ControllerSupport {
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "删除学习中心特殊设置", notes = "")
|
|
|
+ @PutMapping("deleteExamOrgSettings/{ids}")
|
|
|
+ public List<String> deleteExamOrgSettings(@PathVariable String ids) {
|
|
|
+ List<Long> orgSettingsIds = Stream.of(ids.split(",")).map(s -> Long.parseLong(s.trim()))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ List<String> ret = Lists.newArrayList();
|
|
|
+ for (Long cur : orgSettingsIds) {
|
|
|
+ ExamSpecialSettingsEntity entity = GlobalHelper.getEntity(examSpecialSettingsRepo, cur,
|
|
|
+ ExamSpecialSettingsEntity.class);
|
|
|
+ examSpecialSettingsRepo.delete(entity);
|
|
|
+ ret.add(entity.getExamId() + ":" + entity.getOrgId());
|
|
|
+ }
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 方法注释
|
|
|
*
|