您的位置:首页 > 其它

statecode 与statuscode的匹配 STRINGMAP 和 EntityLogicalView表

2015-08-24 10:25 357 查看
STRINGMAP 和 EntityLogicalView表

需要介绍这两张表。

STRINGMAP :

表结构如下:




其中介绍几个关键字段的意义:

ObjectTypeCode: 是每个实体对应的值,具体查询方式可以在EntityLogicalView中取得。

AttributeName: 具体是哪个字段(架构名称)。

AttributeValue: 具体的哪个字段对应的值。

Value: 代表具体的意义。

EntityLogicalView:

具体表结构如下:



[code]
select new_aaaaId, statuscode,
(select Value from StringMap 
 where AttributeName='statuscode' 
        and ObjectTypeCode=(select ObjectTypeCode from EntityLogicalView where Name='new_aaaa') 
    and  AttributeValue=statuscode ) 名称,
statecode,
(select Value from StringMap where AttributeName='statecode' and ObjectTypeCode=(select ObjectTypeCode from EntityLogicalView where Name='new_flowapprovalcrf') and  AttributeValue=statecode )

from new_aaaa as A order by A.statuscode desc
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: