|
|
@@ -111,7 +111,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
}
|
|
|
@Override
|
|
|
public int deleteProject(String id) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(id);
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(id);
|
|
|
if (bp.getDeleteSign()==0) {
|
|
|
bp.setDeleteSign(1);
|
|
|
}else {
|
|
|
@@ -122,7 +122,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
}
|
|
|
@Override
|
|
|
public int updateStopProject(String id) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(id);
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(id);
|
|
|
if (Integer.valueOf(bp.getStatus())==0) {
|
|
|
bp.setStatus("1");
|
|
|
}else {
|
|
|
@@ -133,7 +133,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
}
|
|
|
@Override
|
|
|
public BusinessProjectBo orgProjects(String id) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(id);
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(id);
|
|
|
BusinessProjectBo bpo=new BusinessProjectBo();
|
|
|
BeanUtils.copyProperties(bp,bpo);
|
|
|
String cname=getAllCname(bpo.getCid());
|
|
|
@@ -208,7 +208,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
|
|
|
@Override
|
|
|
public int updateProject(BusinessProject s) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(s.getId());
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(s.getId());
|
|
|
BeanUtils.copyProperties(s, bp);
|
|
|
return businessProjectMapper.update(bp);
|
|
|
}
|
|
|
@@ -307,7 +307,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
}
|
|
|
@Override
|
|
|
public boolean judgeStatus(BusinessProjectModel ps) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(ps.getPid());
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(ps.getPid());
|
|
|
if (Integer.valueOf(bp.getStatus())==1) {
|
|
|
return true;
|
|
|
}else {
|
|
|
@@ -317,7 +317,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
|
|
|
}
|
|
|
@Override
|
|
|
public boolean judgeBeing(BusinessProject s) {
|
|
|
- BusinessProject bp=businessProjectMapper.queryById(s.getId());
|
|
|
+ BusinessProject bp=businessProjectMapper.selectById(s.getId());
|
|
|
BusinessProject bp1=businessProjectMapper.selectByPrimaryBname(s.getBname());
|
|
|
if (null==bp||null==bp1||bp.getId().equals(bp1.getId())) {
|
|
|
return false;
|