|
@@ -524,7 +524,7 @@ public class OrgController extends ControllerSupport {
|
|
|
return cb.and(predicates.toArray(new Predicate[predicates.size()]));
|
|
|
};
|
|
|
|
|
|
- PageRequest pageRequest = PageRequest.of(0, 50, Sort.by(Direction.DESC, "updateTime"));
|
|
|
+ PageRequest pageRequest = PageRequest.of(0, 50, new Sort(Direction.DESC, "updateTime"));
|
|
|
Page<OrgEntity> page = orgRepo.findAll(specification, pageRequest);
|
|
|
Iterator<OrgEntity> iterator = page.iterator();
|
|
|
List<OrgEntity> list = Lists.newArrayList();
|
|
@@ -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 "";
|
|
|
}
|