修复项目复制和查询项目名称是否存在

master
zhiyong.ning 4 years ago
parent c7cc76c799
commit f6329de514
  1. 2
      src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java
  2. 14
      src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java

@ -23,7 +23,7 @@ public interface ProjectManagementMapper {
* @param projectName * @param projectName
* @return * @return
*/ */
@Select("select count(*) from hr_project_management where projectName=#{projectName}") @Select("select count(*) from hr_project_management where projectName=#{projectName} and isdel = 1")
Integer getByprojectName(String projectName); Integer getByprojectName(String projectName);
/** /**

@ -444,19 +444,8 @@ public class ProjectManagementService {
List<ScoreIndex> scoreIndexList = null; List<ScoreIndex> scoreIndexList = null;
try { try {
//根据projectId查询判分点交易类型 //根据projectId查询判分点交易类型
//List<TradingJudgmentPoints> judgmentPointsList = mapper.getJudgmentPoints(projectId);
/*Integer size = judgmentPointsList.size();
for (int i = 0; i<size; i++){
TradingJudgmentPoints tradingJudgmentPoints = judgmentPointsList.get(i);
Integer judgmentPointsId = tradingJudgmentPoints.getId();
Integer systemId = tradingJudgmentPoints.getSystemId();
scoreIndexList = mapper.getScore(judgmentPointsId,systemId,projectId);
score.put("scoreIndexList"+i,scoreIndexList);
}*/
//根据projectId查询判分点信息
List<TradingJudgmentPoints> judgmentPointsList = mapper.getJudgmentPoints(projectId); List<TradingJudgmentPoints> judgmentPointsList = mapper.getJudgmentPoints(projectId);
Integer size = judgmentPointsList.size(); Integer size = judgmentPointsList.size();
for (int i = 0; i<size; i++){ for (int i = 0; i<size; i++){
TradingJudgmentPoints tradingJudgmentPoints = judgmentPointsList.get(i); TradingJudgmentPoints tradingJudgmentPoints = judgmentPointsList.get(i);
@ -465,7 +454,6 @@ public class ProjectManagementService {
scoreIndexList = mapper.getScore(judgmentPointsId,systemId,projectId); scoreIndexList = mapper.getScore(judgmentPointsId,systemId,projectId);
score.put("scoreIndexList"+i,scoreIndexList); score.put("scoreIndexList"+i,scoreIndexList);
} }
List<Role> roleList = mapper.queryProjectId(projectId); List<Role> roleList = mapper.queryProjectId(projectId);
obj.put("roleList",roleList); obj.put("roleList",roleList);
obj.put("judgmentPointsList", judgmentPointsList); obj.put("judgmentPointsList", judgmentPointsList);

Loading…
Cancel
Save