|
|
@@ -464,7 +464,7 @@ public class JtBusinessServiceImpl extends BaseMybatisDao<JtBusinessProjectMapp
|
|
|
@Override
|
|
|
public int updateProjectMoveUp(String id) {
|
|
|
JtBusinessCategory j1=jtBusinessCategoryMapper.selectByPrimaryKey(id);
|
|
|
- JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getLayer(),0);
|
|
|
+ JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getSuperId(),0);
|
|
|
if(null==j2){
|
|
|
return -1;
|
|
|
}
|
|
|
@@ -483,7 +483,7 @@ public class JtBusinessServiceImpl extends BaseMybatisDao<JtBusinessProjectMapp
|
|
|
@Override
|
|
|
public int updateProjectSetTop(String id) {
|
|
|
JtBusinessCategory j1=jtBusinessCategoryMapper.selectByPrimaryKey(id);
|
|
|
- JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getLayer(),1);
|
|
|
+ JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getSuperId(),1);
|
|
|
if(null==j2){
|
|
|
return -1;
|
|
|
}
|