|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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 { | 
|---|
|  |  |  |  | 
|---|