Преглед на файлове

如果二级没有更改上级模块则不用更改前缀

limin преди 7 години
родител
ревизия
e062e0b8a6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java

+ 2 - 2
src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java

@@ -223,8 +223,8 @@ public class JtBusinessServiceImpl  extends BaseMybatisDao<JtBusinessProjectMapp
 		jtBusinessCategoryMapper.updateByPrimaryKeySelective(category);
 		//是否修改了模块类别
 		boolean moduleChange = null != jtBusinessCategory.getModule() ? !jtBusinessCategory.getModule().equals(jtBusinessCategory.getNextModule()) : false;
-		//是否有上级id
-		boolean existSuperId = StringUtils.isNotBlank(jtBusinessCategory.getSuperId());
+		//是否有上级id,并且改变了上级id
+		boolean existSuperId = StringUtils.isNotBlank(jtBusinessCategory.getSuperId()) ? !jtBusinessCategory.getSuperId().equals(jtBusinessCategory.getOldSuperId()) : false;
 		//获得更改前的自己的number
 		String oldNumber = jtBusinessCategoryMapper.selectByPrimaryKey(jtBusinessCategory.getId()).getNumber();
 		String number = null;