修复文章类目状态编辑问题

This commit is contained in:
TinyAnts 2022-09-16 10:04:44 +08:00
parent 0f55e3f808
commit 61eec8bb1c
1 changed files with 3 additions and 1 deletions

View File

@ -149,13 +149,14 @@ public class ArticleCategoryServiceImpl implements IArticleCategoryService {
model.setId(categoryParam.getId()); model.setId(categoryParam.getId());
model.setName(categoryParam.getName()); model.setName(categoryParam.getName());
model.setSort(categoryParam.getSort()); model.setSort(categoryParam.getSort());
model.setIsShow(model.getIsShow());
model.setCreateTime(TimeUtil.timestamp()); model.setCreateTime(TimeUtil.timestamp());
model.setUpdateTime(TimeUtil.timestamp()); model.setUpdateTime(TimeUtil.timestamp());
articleCategoryMapper.insert(model); articleCategoryMapper.insert(model);
} }
/** /**
* 文章编辑 * 分类编辑
* *
* @author fzr * @author fzr
* @param categoryParam 分类参数 * @param categoryParam 分类参数
@ -178,6 +179,7 @@ public class ArticleCategoryServiceImpl implements IArticleCategoryService {
model.setName(categoryParam.getName()); model.setName(categoryParam.getName());
model.setSort(categoryParam.getSort()); model.setSort(categoryParam.getSort());
model.setIsShow(categoryParam.getIsShow());
model.setUpdateTime(TimeUtil.timestamp()); model.setUpdateTime(TimeUtil.timestamp());
articleCategoryMapper.updateById(model); articleCategoryMapper.updateById(model);
} }