|
@@ -53,6 +53,7 @@ import cn.com.qmth.examcloud.commons.helpers.DynamicEnumManager;
|
|
|
import cn.com.qmth.examcloud.commons.util.PathUtil;
|
|
|
import cn.com.qmth.examcloud.commons.util.RegExpUtil;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.OrgDomain;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.controller.bean.SaveOrgPropertiesDomain;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.OrgPropertyRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.OrgRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.OrgEntity;
|
|
@@ -895,6 +896,19 @@ public class OrgController extends ControllerSupport {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "保存机构属性", notes = "")
|
|
|
+ @PutMapping("saveOrgProperties")
|
|
|
+ public void saveOrgProperties(@RequestBody SaveOrgPropertiesDomain domain) {
|
|
|
+ Long orgId = domain.getOrgId();
|
|
|
+ Map<String, String> properties = domain.getProperties();
|
|
|
+
|
|
|
+ OrgEntity orgEntity = GlobalHelper.getPresentEntity(orgRepo, orgId, OrgEntity.class);
|
|
|
+
|
|
|
+ validateRootOrgIsolation(orgEntity.getRootId());
|
|
|
+
|
|
|
+ orgService.saveOrgProperties(orgEntity.getId(), properties);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 方法注释
|
|
|
*
|