Commit 3d15e1b0 by guojuxing

分组删除修改

parent deebc5a9
......@@ -283,6 +283,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
if (isContainStore(storeGroupId)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "该分组下存在门店,不能删除");
}
if (storeGroupService.isLeafNode(storeGroupId)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "下面有子分组,不能删除");
}
ServiceResponse<TabStoreGroup> authValid = validIsDefault(storeGroupId);
if (!authValid.isSuccess()) {
return ServiceResponse.failure(authValid.getCode(), authValid.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment