xiaoyong931011
2021-04-28 c8a8b556432849bda331f300d659e5f7055d67b2
zq-erp/src/main/java/com/matrix/system/hive/action/ArticleTypeController.java
@@ -7,6 +7,7 @@
import javax.annotation.Resource;
import com.matrix.core.constance.MatrixConstance;
import com.matrix.core.exception.GlobleException;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.pojo.PaginationVO;
import com.matrix.core.tools.StringUtils;
@@ -126,7 +127,10 @@
      articleType.setParentIds(CollectionUtils.isNotEmpty(ids) ? StringUtils.collToStr(ids, ",") : null);
      if (articleType.getId() != null) {
         // 自己不能是自己的父节点
         if (articleType.getParentId() != null && articleType.getParentId().equals(articleType.getId())) {
            throw new GlobleException("父级不能是自己");
         }
         return modify(currentService, articleType, "文章类型");
      } else {