From d73687bc6115007145b4aab050e4e29ff87fd8ae Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 01 三月 2021 18:44:36 +0800
Subject: [PATCH] 布丸代码优化

---
 src/main/java/com/yeshi/buwan/controller/admin/api/SystemController.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/admin/api/SystemController.java b/src/main/java/com/yeshi/buwan/controller/admin/api/SystemController.java
index cd79f2e..a1ec9fe 100644
--- a/src/main/java/com/yeshi/buwan/controller/admin/api/SystemController.java
+++ b/src/main/java/com/yeshi/buwan/controller/admin/api/SystemController.java
@@ -7,7 +7,9 @@
 
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
 
+import com.yeshi.buwan.util.SystemUtil;
 import net.sf.json.JSONObject;
 
 import org.springframework.stereotype.Controller;
@@ -37,10 +39,10 @@
 	 * @return
 	 */
 	@RequestMapping("detailSystemList")
-	public void detailSystemList(int pageIndex,String key,PrintWriter out) {
+	public void detailSystemList(int pageIndex, String key, HttpSession session, PrintWriter out) {
 		pageIndex = pageIndex <= 0 ? 1 : pageIndex;
-		List<DetailSystem> list = systemService.getDetailSystemList(key, pageIndex);
-		long count = systemService.getDetailSystemListCount(key);
+		List<DetailSystem> list = systemService.getDetailSystemList(key, SystemUtil.getAdminSelectedSystem(session).getId(), pageIndex);
+		long count = systemService.getDetailSystemListCount(key,SystemUtil.getAdminSelectedSystem(session).getId());
 		PageEntity pe = new PageEntity();
 		pe.setPageIndex(pageIndex);
 		pe.setPageSize(Constant.pageCount);

--
Gitblit v1.8.0