Browse Source

。。。

WANG 6 years ago
parent
commit
8ed0b51a8e

+ 15 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -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;
+	}
+
 	/**
 	 * 方法注释
 	 *