|
|
@@ -341,12 +341,11 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
public boolean WhetherRepeat(ProjectSize ps) {
|
|
|
List<ProjectSizeBo> list=projectSizeMapper.getgetPnamecount(ps.getPname());
|
|
|
|
|
|
- if (list.size()>0&&!(list.get(0).getPid().equals(ps.getPid()))) {
|
|
|
- System.out.println("true");
|
|
|
- return true;
|
|
|
-
|
|
|
+ for (ProjectSizeBo p : list) {
|
|
|
+ if (p.getPid().equals(ps.getPid())) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return false;
|
|
|
}
|
|
|
@Override
|