|
@@ -26,6 +26,7 @@ import com.mooctest.crowd.site.service.CommonService;
|
|
|
import com.mooctest.crowd.site.util.DataUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
@@ -66,6 +67,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
@Autowired
|
|
|
private WebMediatorImpl webMediator;
|
|
|
|
|
|
+ @Value("${feature.import.task}")
|
|
|
+ private String featureImportTask;
|
|
|
+
|
|
|
@Override
|
|
|
public List<UserVO> getMoreUser(Pageable pageable,String keyword) {
|
|
|
return viewMediator.renderMoreUser(pageable,keyword);
|
|
@@ -320,7 +324,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
|
|
|
@Override
|
|
|
public ConfigurationVO getConfigurationListMap() {
|
|
|
- return new ConfigurationVO(commonRepo.getConfigurationListMap());
|
|
|
+ Map<String, String> configurationMap = commonRepo.getConfigurationListMap();
|
|
|
+ configurationMap.put("feature_import_task", "{\"feature_import_task\":" + featureImportTask + "}");
|
|
|
+ return new ConfigurationVO(configurationMap);
|
|
|
}
|
|
|
|
|
|
Pageable getPageable(SearchConditionVO searchConditionVO) {
|