/** * 判断是否已经存在当前分类 * * @param commonlinkType 分类参数 * @return true:表示存在 false:表示不存在 */ private boolean hasExistCommonlinkType(CommonlinkType commonlinkType) { int count = commonlinkService.findCommonlinkTypeCountByName(commonlinkType); if (count > 0) { return true; } return false; }