提交 35df0567 作者: 张小凤

CategoryServiceImpl(update)

上级 c461414e
......@@ -75,7 +75,7 @@ public class CategoryServiceImpl implements CategoryService {
return ResultBody.error(ResultEnum.THE_NAME_OF_THE_SECONDARY_CLASS_MUST_BE_UNIQUE);
}
CategorySubDO subDO = new CategorySubDO(subVO);
int number = (int) (Math.random() * 90 + 10);
int number = (int) (Math.random() * 900000 + 10);
subDO.setId(subVO.getCategoryPrimaryId() + 1 + number);
categoryDao.addSubCategory(subDO);
return ResultBody.success();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论