qinchao 4 жил өмнө
parent
commit
39ee7caa93

+ 3 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/OrgController.java

@@ -1409,7 +1409,9 @@ public class OrgController extends ControllerSupport {
         if (null == orgEntity) {
             throw new StatusException("140002", "orgEntity is null");
         }
-        OrgPropertyEntity fileEntity = orgPropertyRepo.findByOrgIdAndKeyId(orgId, 26L);
+        DynamicEnumManager manager = OrgProperty.getDynamicEnumManager();
+        DynamicEnum answersTemplate = manager.getByName("ANSWERS_TEMPLATE");
+        OrgPropertyEntity fileEntity = orgPropertyRepo.findByOrgIdAndKeyId(orgId, answersTemplate.getId());
         if (null == fileEntity || StringUtils.isBlank(fileEntity.getValue())) {
             return "";
         }