diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/PdfUtil.java b/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/PdfUtil.java index 62f3e2c..665c990 100644 --- a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/PdfUtil.java +++ b/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/PdfUtil.java @@ -8,6 +8,9 @@ import com.aspose.words.SaveFormat; import java.io.*; +/** + * @author Maosw + */ public class PdfUtil { diff --git a/ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/service/impl/TzCategoryServiceImpl.java b/ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/service/impl/TzCategoryServiceImpl.java index bc1e91d..ff54e64 100644 --- a/ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/service/impl/TzCategoryServiceImpl.java +++ b/ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/service/impl/TzCategoryServiceImpl.java @@ -78,11 +78,7 @@ public class TzCategoryServiceImpl implements ITzCategoryService { } bo.setRecTime(new Date()); TzCategory add = MapstructUtils.convert(bo, TzCategory.class); - boolean flag = baseMapper.insert(add) > 0; - if (flag) { - bo.setCategoryId(add.getCategoryId()); - } - return flag; + return baseMapper.insert(add) > 0; } /** @@ -115,6 +111,12 @@ public class TzCategoryServiceImpl implements ITzCategoryService { return baseMapper.deleteByIds(ids) > 0; } + /** + * 根据父级ID查询子类信息 + * + * @param parentId + * @return + */ @Override public List listByParentId(Long parentId) { return baseMapper.selectVoList(new LambdaQueryWrapper().eq(TzCategory::getParentId, parentId).eq(TzCategory::getStatus,1).eq(TzCategory::getSubset,1));