OFBiz(产品类别)模型设计分析

本篇文章只分析 org.ofbiz.product.category 包名下的模型,不分析catalog 因为catalog本身也是一种产品,或者说是的变种。扩展表暂不需要,所以不做分析。

1 ProductCategory 产品类别模型  

2 ProductCategoryMember 产品类别包含产品的关系

ProductCategoryRole  产品类别的数据级权限

4 ProductCategoryRollup 产品类别,父类、子类、兄弟类的层次关系

5 ProductCategoryType 产品分类的类型

5张模型表简单构建出一个无限强大产品类别系统。

视图

ProductAndCategoryMember 根据产品类别展示产品全部字段

ProductCategoryAndMember 根据产品id展示该类别全部信息

ProductCategoryMemberAndRole 根据角色查询产品id和产品类别id

ProductCategoryRollupAndChild 根据父类别显示子类别

ProductCategoryRollupAndRole 根据角色显示产品类别父子间的层次关系

有限简单无限强大的产品类别管理就这样花费15分钟集成实现到你的系统里面了。

体现在OFBiz的业务模型里面

主要为  产品目录 --产品大类--产品小类--产品

猜你喜欢

转载自jiasudu.iteye.com/blog/1171154