|
@ -16,15 +16,11 @@ import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
|
import com.yihu.jw.util.common.NumberUtil;
|
|
|
import com.yihu.jw.util.network.HttpResponse;
|
|
|
import com.yihu.jw.util.network.HttpUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import jxl.Cell;
|
|
|
import jxl.Workbook;
|
|
|
import jxl.write.Label;
|
|
|
import jxl.write.WritableSheet;
|
|
|
import jxl.write.WritableWorkbook;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -33,10 +29,7 @@ import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
import java.io.IOException;
|
|
|
import java.io.OutputStream;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
@ -102,10 +95,30 @@ public class ResourceIntegratedController extends EnvelopRestEndpoint {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/metadata")
|
|
|
public Envelop getMetadataList1(String categoryId, String filters) throws Exception {
|
|
|
String url = "/resource/api/v1.0/resources/integrated/metadata";
|
|
|
//标准分类
|
|
|
// long start = System.currentTimeMillis();
|
|
|
List<Map<String, Object>> list = resourcesIntegratedService.metadata(categoryId, filters);
|
|
|
// List<Map<String, Object>> list = resourcesIntegratedService.intMetadata(categoryId, "*", "*", "standard", filters);
|
|
|
// long end = System.currentTimeMillis();
|
|
|
// System.out.println("newTime:"+(end-start));
|
|
|
return ListEnvelop.getSuccess("查询成功",list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 综合查询档案数据资源列表 zuul
|
|
|
* @param filters
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/metadataOld")
|
|
|
public Envelop getMetadataList(String categoryId, String filters, HttpServletRequest request) throws Exception {
|
|
|
String url = "/resource/api/v1.0/resources/integrated/metadata";
|
|
|
//标准分类
|
|
|
long start = System.currentTimeMillis();
|
|
|
List<Map<String, Object>> list = resourcesIntegratedService.intMetadata(categoryId, "*", "*", "standard", filters);
|
|
|
long end = System.currentTimeMillis();
|
|
|
System.out.println("time:"+(end-start));
|
|
|
return ListEnvelop.getSuccess("查询成功",list);
|
|
|
}
|
|
|
|