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