From e0ca7c5e70d2a288a4fb0d02b97617a0eac343a8 Mon Sep 17 00:00:00 2001 From: User_cyk <1020691186@qq.com> Date: Mon, 3 Jul 2023 11:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/hellogithub/service/projectService.java | 14 ++++++++++++-- .../hellogithub/servlet/selectProByIdServlet.java | 12 ++++++------ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/com/hellogithub/service/projectService.java b/src/com/hellogithub/service/projectService.java index 171cf70..4299687 100644 --- a/src/com/hellogithub/service/projectService.java +++ b/src/com/hellogithub/service/projectService.java @@ -5,7 +5,10 @@ import com.hellogithub.dao.categoryDao; import com.hellogithub.dao.projectDao; import com.hellogithub.entity.categoryEntity; import com.hellogithub.entity.projectEntity; + +import java.util.HashMap; import java.util.List; +import java.util.Map; public class projectService { @@ -126,7 +129,14 @@ public class projectService { public int addProjectLookcount(String id ){ return projectDao.addProjectLookcount(id); } - public List retProjectLabel(String id ){ - return projectDao.retProjectLabel(id); + public String retProjectLabel(String id ){ + Map dataMap = new HashMap<>(); + List categoryEntityList = projectDao.retProjectLabel(id); + for(int i=0;i