jyy
2021-07-09 8287f743a1ac2fd5330f6dd7ca08255df193ae03
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 {