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