yonge преди 3 месеца
родител
ревизия
befd7f6330
променени са 1 файла, в които са добавени 17 реда и са изтрити 5 реда
  1. 17 5
      mec-application/src/main/java/com/ym/mec/web/controller/ManagerDownloadController.java

+ 17 - 5
mec-application/src/main/java/com/ym/mec/web/controller/ManagerDownloadController.java

@@ -1,17 +1,24 @@
 package com.ym.mec.web.controller;
 
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.ym.mec.biz.dal.entity.ManagerDownload;
 import com.ym.mec.biz.dal.page.ManagerDownloadQueryInfo;
 import com.ym.mec.biz.service.ManagerDownloadService;
 import com.ym.mec.biz.service.SysUserService;
 import com.ym.mec.common.controller.BaseController;
 import com.ym.mec.common.exception.BizException;
+
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import org.apache.commons.lang3.StringUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.web.bind.annotation.*;
 
 @RequestMapping("${app-config.url.web:}/managerDownload")
 @Api(tags = "下载列表")
@@ -27,8 +34,13 @@ public class ManagerDownloadController extends BaseController {
     @GetMapping("/queryPage")
     //@PreAuthorize("@pcs.hasPermissions('managerDownload/queryPage')")
     public Object queryPage(ManagerDownloadQueryInfo queryInfo) {
+    	long start = System.currentTimeMillis();
         queryInfo.setUserId(sysUserService.getUserId());
-        return succeed(managerDownloadService.queryPage(queryInfo));
+        System.out.println("**************************** Feign Client 耗时:" + (System.currentTimeMillis() - start) +"ms ******************************");
+        start = System.currentTimeMillis();
+        com.ym.mec.common.page.PageInfo<ManagerDownload> r = managerDownloadService.queryPage(queryInfo);
+        System.out.println("**************************** 查询耗时:" + (System.currentTimeMillis() - start) +"ms ******************************");
+        return succeed(r);
     }
 
     @ApiOperation(value = "删除")