From 01c4569811babd7251db8cf1767c2239cb4eed81 Mon Sep 17 00:00:00 2001 From: yangjie <1179743470@qq.com> Date: Fri, 4 Jun 2021 16:59:44 +0800 Subject: [PATCH] =?UTF-8?q?sql=E8=AF=AD=E5=8F=A5=E5=88=86=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yipin/liuwanr/mapper/ProjectManagementMapper.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java index 055b1d0..2159a55 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java @@ -121,7 +121,9 @@ public interface ProjectManagementMapper { * @param projectId * @return */ - @Select("select pattern,projectId,projectName,projectPermissions,experimentalGoal,caseDescription,experimentSuggests,state,isstartexperimental,isstartexperimentSuggests,userId,knowledgePoints,experimentIntroduction,knowledgePointsIsEnable,experimentIntroductionIsEnable from hr_project_management where isdel=0 and projectId=#{projectId}") + @Select("select pattern,projectId,projectName,projectPermissions,experimentalGoal,caseDescription,experimentSuggests,state,isstartexperimental,isstartexperimentSuggests,userId,knowledgePoints,experimentIntroduction,knowledgePointsIsEnable,experimentIntroductionIsEnable " + + "from hr_project_management" + + " where isdel=0 and projectId=#{projectId}") HrProjectManagement getProjectIdByKD(Integer projectId); /** @@ -297,7 +299,9 @@ public interface ProjectManagementMapper { @Select("select judgmentPointsId,judgmentPointsName,experimentalRequirements from hr_judgment_points where isdel=0 and FIND_IN_SET(#{projectId},projectId)>0") List getByProjectId(Integer projectId); - @Select("select hjp.id as judgmentPointsId,hjp.judgment_points_name as judgmentPointsName,si.score from hr_trading_judgment_points hjp,hr_score_index si where si.projectId =#{projectId} and hjp.system_id = 3 and si.judgmentPointsId = hjp.id ") + @Select("select hjp.id as judgmentPointsId,hjp.judgment_points_name as judgmentPointsName,si.score " + + "from hr_trading_judgment_points hjp,hr_score_index si " + + "where si.projectId =#{projectId} and hjp.system_id = 3 and si.judgmentPointsId = hjp.id ") List queryJudgmentPoints(Integer projectId);