评分数据库设计
2023-08-08 09:37:39 28 举报
基于评分的数据模型设计
作者其他创作
大纲/内容
评分范围详情表(score_rangeinfo)
id int pkscoreId int 评分idscoreRangeId int 范围iduniqueCode varchar 唯一标识码rangeName varchar 范围标识rangeValue varchar 范围值workId int 操作人gmtCreated datetimegmtUpdated datetime
1=n
1=1
连锁评分汇总表(score_partner)
OrganizeBaseController类
+ syncadderp(SyncAddErpStruct):return OrganizeBase + edit(editStruct) return OrganizeBase+ list(PagingStruct) return Paging+listall(PagingStruct) return Paging+chainNum() return int num+storeNum() return int num+search() return int OrganizeBase+storeNum() return int num+chainPaging(PagingStruct) return Paging+listname(PagingStruct) return RowSmallAlls+listparentname(ListParentNameStruct) return RowSmallAlls+liststoresmall(InfoStruct) return RowSmallAlls+listRootIdName(ListRootIdNameStruct) return RowSmallAlls+citypaging(CityStruct) return Paging+pagingIds(CityStruct) return Paging+editdtp(O2oStatusStruct) return Paging+cityorderby(CityStruct) return Paging
1=n
评分范围表(score_range)
id int pkscoreId int 评分iduniqueCode varchar 唯一标识码dayType int 评分类型 1为天数2为自然周3为自然月areaType int 区域范围 1为全部2为部分merchantType int 连锁范围 1为全部2为部分dockType int 对接方式 1为全部2为部分businessType int 开通业务 1为全部2为部分workId int 操作人gmtCreated datetimegmtUpdated datetime
商户DTP绑定关系表(organize_dtp_bind)
id int pkorganization_id int 绑定DTP商户id virtual_id int 对应的虚拟商户idbind_status int 绑定状态 1为绑定0为解除gmt_created datetimegmt_updated datetime
门店评分记录表(score_store)
门店评分汇总表(score_store_sum)
评分详情表(score_templateinfo)
MapRuleController类
+ info(id):return MapRule+ edit(id) return MapRule+ mapHandle() return bool
评分规则表(score_template)
id int pkscoreId int 评分iduniqueCode varchar 唯一标识码isInterfaceType int 接口类型isInterfaceStability int 接口模式isLight int 点亮模式isRenew int 直付绑定换新isHome int 开通药联到家isSettlement int 结算扣率isDirectDay int 直付出单量isDirectMoney int 直付出单销售总额isDirectMoneyDay int 直付出单销售总额日均isClerk int 直付出单店员数isRenewDay int 换新服务销售量(日均)isAdderServiceFirst int 500元以下增值服务销售量(日均)isAdderServiceSecond int 500-1000元以下增值服务销售量(日均)isAdderServiceThird int 1001元以上增值服务销售量(日均)workId int 操作人gmtCreated datetimegmtUpdated datetime
组织基础表(organize_base)
organizationId int pk......isDTP int 是否开启dtp服务1为开启0为未开启isVirtual int 是否虚拟商户0为常规1为虚拟
评分表(score)
id int pkname stringuniqueCode varchar(pk) 唯一标识码 workId int 操作人struct int 状态storeNum int 门店数量gmtCreated datetimegmtUpdated datetime
评分预览记录表(score_preview)
id int pkscoreId int 评分表iduniqueCode varchar 唯一标识码status int 预览状态1等待2完成workId int 操作人gmtCreated datetimegmtUpdated datetime
0 条评论
下一页