sql语句分段

master
yangjie 4 years ago
parent 3b1f9f4d62
commit 01c4569811
  1. 8
      src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java

@ -121,7 +121,9 @@ public interface ProjectManagementMapper {
* @param projectId * @param projectId
* @return * @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); 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") @Select("select judgmentPointsId,judgmentPointsName,experimentalRequirements from hr_judgment_points where isdel=0 and FIND_IN_SET(#{projectId},projectId)>0")
List<JudgmentPoints> getByProjectId(Integer projectId); List<JudgmentPoints> 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<JudgmentPoints> queryJudgmentPoints(Integer projectId); List<JudgmentPoints> queryJudgmentPoints(Integer projectId);

Loading…
Cancel
Save