Helius
2021-04-06 997831bb8c314d781e6cc5533898ffbe077dd3b6
zq-erp/src/main/java/com/matrix/system/hive/action/GoodsTypeController.java
@@ -1,6 +1,7 @@
package com.matrix.system.hive.action;
import com.matrix.core.constance.MatrixConstance;
import com.matrix.core.exception.GlobleException;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.tools.WebUtil;
import com.matrix.system.common.bean.SysUsers;
@@ -47,7 +48,9 @@
   AjaxResult addOrModify(SysGoodsType sysGoodsType) {
         SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY);
      if (sysGoodsType.getId() != null) {
         if (sysGoodsType.getParentId() != null && sysGoodsType.getParentId().equals(sysGoodsType.getId())) {
            throw new GlobleException("父级不能是自己");
         }
         return modify(currentService, sysGoodsType, "产品分类");
      } else {