fix
Helius
2021-07-09 a7cec9de012ab0b49f5be9bc3acad746538e9cab
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 {